Package org.lwjgl.util.spvc
Class SpvcEntryPoint
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct spvc_entry_point {
SpvExecutionModel execution_model;
char const * name;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionSpvcEntryPoint(ByteBuffer container) Creates aSpvcEntryPointinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic SpvcEntryPointcalloc()Returns a newSpvcEntryPointinstance allocated withmemCalloc.static SpvcEntryPoint.Buffercalloc(int capacity) Returns a newSpvcEntryPoint.Bufferinstance allocated withmemCalloc.static SpvcEntryPoint.Buffercalloc(int capacity, MemoryStack stack) Returns a newSpvcEntryPoint.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcEntryPointcalloc(MemoryStack stack) Returns a newSpvcEntryPointinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcEntryPointcreate()Returns a newSpvcEntryPointinstance allocated withBufferUtils.static SpvcEntryPoint.Buffercreate(int capacity) Returns a newSpvcEntryPoint.Bufferinstance allocated withBufferUtils.static SpvcEntryPointcreate(long address) Returns a newSpvcEntryPointinstance for the specified memory address.static SpvcEntryPoint.Buffercreate(long address, int capacity) Create aSpvcEntryPoint.Bufferinstance at the specified memory.static @Nullable SpvcEntryPointcreateSafe(long address) static @Nullable SpvcEntryPoint.BuffercreateSafe(long address, int capacity) intexecution_model(int value) Sets the specified value to theexecution_modelfield.static SpvcEntryPointmalloc()Returns a newSpvcEntryPointinstance allocated withmemAlloc.static SpvcEntryPoint.Buffermalloc(int capacity) Returns a newSpvcEntryPoint.Bufferinstance allocated withmemAlloc.static SpvcEntryPoint.Buffermalloc(int capacity, MemoryStack stack) Returns a newSpvcEntryPoint.Bufferinstance allocated on the specifiedMemoryStack.static SpvcEntryPointmalloc(MemoryStack stack) Returns a newSpvcEntryPointinstance allocated on the specifiedMemoryStack.name()name(ByteBuffer value) Sets the address of the specified encoded string to thenamefield.static intnexecution_model(long struct) Unsafe version ofexecution_model().static voidnexecution_model(long struct, int value) Unsafe version ofexecution_model.static ByteBuffernname(long struct) Unsafe version ofname().static voidnname(long struct, ByteBuffer value) Unsafe version ofname.static StringnnameString(long struct) Unsafe version ofnameString().set(int execution_model, ByteBuffer name) Initializes this struct with the specified values.set(SpvcEntryPoint src) Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
EXECUTION_MODEL
public static final int EXECUTION_MODELThe struct member offsets. -
NAME
public static final int NAMEThe struct member offsets.
-
-
Constructor Details
-
SpvcEntryPoint
Creates aSpvcEntryPointinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<SpvcEntryPoint>
-
execution_model
public int execution_model()- Returns:
- the value of the
execution_modelfield.
-
name
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thenamefield.
-
nameString
- Returns:
- the null-terminated string pointed to by the
namefield.
-
execution_model
Sets the specified value to theexecution_modelfield. -
name
Sets the address of the specified encoded string to thenamefield. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newSpvcEntryPointinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newSpvcEntryPointinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newSpvcEntryPointinstance allocated withBufferUtils. -
create
Returns a newSpvcEntryPointinstance for the specified memory address. -
createSafe
-
malloc
Returns a newSpvcEntryPoint.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newSpvcEntryPoint.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newSpvcEntryPoint.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aSpvcEntryPoint.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newSpvcEntryPointinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newSpvcEntryPointinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newSpvcEntryPoint.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newSpvcEntryPoint.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nexecution_model
public static int nexecution_model(long struct) Unsafe version ofexecution_model(). -
nname
Unsafe version ofname(). -
nnameString
Unsafe version ofnameString(). -
nexecution_model
public static void nexecution_model(long struct, int value) Unsafe version ofexecution_model. -
nname
Unsafe version ofname. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-