Package org.lwjgl.util.spvc
Class SpvcEntryPoint
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.spvc.SpvcEntryPoint
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class SpvcEntryPoint extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct spvc_entry_point { SpvExecutionModel execution_model; char const * name; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpvcEntryPoint.BufferAn array ofSpvcEntryPointstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intEXECUTION_MODEL
NAMEThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description SpvcEntryPoint(java.nio.ByteBuffer container)Creates aSpvcEntryPointinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SpvcEntryPointcalloc()Returns a newSpvcEntryPointinstance allocated withmemCalloc.static SpvcEntryPoint.Buffercalloc(int capacity)Returns a newSpvcEntryPoint.Bufferinstance allocated withmemCalloc.static SpvcEntryPoint.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSpvcEntryPoint.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcEntryPointcalloc(org.lwjgl.system.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 SpvcEntryPointcreateSafe(long address)static SpvcEntryPoint.BuffercreateSafe(long address, int capacity)intexecution_model()SpvcEntryPointexecution_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, org.lwjgl.system.MemoryStack stack)Returns a newSpvcEntryPoint.Bufferinstance allocated on the specifiedMemoryStack.static SpvcEntryPointmalloc(org.lwjgl.system.MemoryStack stack)Returns a newSpvcEntryPointinstance allocated on the specifiedMemoryStack.java.nio.ByteBuffername()SpvcEntryPointname(java.nio.ByteBuffer value)Sets the address of the specified encoded string to thenamefield.java.lang.StringnameString()static intnexecution_model(long struct)Unsafe version ofexecution_model().static voidnexecution_model(long struct, int value)Unsafe version ofexecution_model.static java.nio.ByteBuffernname(long struct)Unsafe version ofname().static voidnname(long struct, java.nio.ByteBuffer value)Unsafe version ofname.static java.lang.StringnnameString(long struct)Unsafe version ofnameString().SpvcEntryPointset(int execution_model, java.nio.ByteBuffer name)Initializes this struct with the specified values.SpvcEntryPointset(SpvcEntryPoint src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
SpvcEntryPoint
public SpvcEntryPoint(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
execution_model
public int execution_model()
- Returns:
- the value of the
execution_modelfield.
-
name
public java.nio.ByteBuffer name()
- Returns:
- a
ByteBufferview of the null-terminated string pointed to by thenamefield.
-
nameString
public java.lang.String nameString()
- Returns:
- the null-terminated string pointed to by the
namefield.
-
execution_model
public SpvcEntryPoint execution_model(int value)
Sets the specified value to theexecution_modelfield.
-
name
public SpvcEntryPoint name(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to thenamefield.
-
set
public SpvcEntryPoint set(int execution_model, java.nio.ByteBuffer name)
Initializes this struct with the specified values.
-
set
public SpvcEntryPoint set(SpvcEntryPoint src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static SpvcEntryPoint malloc()
Returns a newSpvcEntryPointinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static SpvcEntryPoint calloc()
Returns a newSpvcEntryPointinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static SpvcEntryPoint create()
Returns a newSpvcEntryPointinstance allocated withBufferUtils.
-
create
public static SpvcEntryPoint create(long address)
Returns a newSpvcEntryPointinstance for the specified memory address.
-
createSafe
@Nullable public static SpvcEntryPoint createSafe(long address)
-
malloc
public static SpvcEntryPoint.Buffer malloc(int capacity)
Returns a newSpvcEntryPoint.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static SpvcEntryPoint.Buffer calloc(int capacity)
Returns a newSpvcEntryPoint.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static SpvcEntryPoint.Buffer create(int capacity)
Returns a newSpvcEntryPoint.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static SpvcEntryPoint.Buffer create(long address, int capacity)
Create aSpvcEntryPoint.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static SpvcEntryPoint.Buffer createSafe(long address, int capacity)
-
malloc
public static SpvcEntryPoint malloc(org.lwjgl.system.MemoryStack stack)
Returns a newSpvcEntryPointinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static SpvcEntryPoint calloc(org.lwjgl.system.MemoryStack stack)
Returns a newSpvcEntryPointinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static SpvcEntryPoint.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSpvcEntryPoint.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static SpvcEntryPoint.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSpvcEntryPoint.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nexecution_model
public static int nexecution_model(long struct)
Unsafe version ofexecution_model().
-
nname
public static java.nio.ByteBuffer nname(long struct)
Unsafe version ofname().
-
nnameString
public static java.lang.String nnameString(long struct)
Unsafe version ofnameString().
-
nexecution_model
public static void nexecution_model(long struct, int value)Unsafe version ofexecution_model.
-
nname
public static void nname(long struct, java.nio.ByteBuffer value)Unsafe version ofname.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-