public class SpvcEntryPoint
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
struct SpvcEntryPoint {
SpvExecutionModel execution_model;
char const * name;
}| Modifier and Type | Class and Description |
|---|---|
static class |
SpvcEntryPoint.Buffer
An array of
SpvcEntryPoint structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
EXECUTION_MODEL
The struct member offsets.
|
static int |
NAME
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
SpvcEntryPoint(java.nio.ByteBuffer container)
Creates a
SpvcEntryPoint instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static SpvcEntryPoint |
calloc()
Returns a new
SpvcEntryPoint instance allocated with memCalloc. |
static SpvcEntryPoint.Buffer |
calloc(int capacity)
Returns a new
SpvcEntryPoint.Buffer instance allocated with memCalloc. |
static SpvcEntryPoint |
callocStack()
Returns a new
SpvcEntryPoint instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static SpvcEntryPoint.Buffer |
callocStack(int capacity)
Returns a new
SpvcEntryPoint.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static SpvcEntryPoint.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcEntryPoint.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static SpvcEntryPoint |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcEntryPoint instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static SpvcEntryPoint |
create()
Returns a new
SpvcEntryPoint instance allocated with BufferUtils. |
static SpvcEntryPoint.Buffer |
create(int capacity)
Returns a new
SpvcEntryPoint.Buffer instance allocated with BufferUtils. |
static SpvcEntryPoint |
create(long address)
Returns a new
SpvcEntryPoint instance for the specified memory address. |
static SpvcEntryPoint.Buffer |
create(long address,
int capacity)
Create a
SpvcEntryPoint.Buffer instance at the specified memory. |
static SpvcEntryPoint |
createSafe(long address)
|
static SpvcEntryPoint.Buffer |
createSafe(long address,
int capacity)
|
int |
execution_model()
Returns the value of the
execution_model field. |
SpvcEntryPoint |
execution_model(int value)
Sets the specified value to the
execution_model field. |
static SpvcEntryPoint |
malloc()
Returns a new
SpvcEntryPoint instance allocated with memAlloc. |
static SpvcEntryPoint.Buffer |
malloc(int capacity)
Returns a new
SpvcEntryPoint.Buffer instance allocated with memAlloc. |
static SpvcEntryPoint |
mallocStack()
Returns a new
SpvcEntryPoint instance allocated on the thread-local MemoryStack. |
static SpvcEntryPoint.Buffer |
mallocStack(int capacity)
Returns a new
SpvcEntryPoint.Buffer instance allocated on the thread-local MemoryStack. |
static SpvcEntryPoint.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcEntryPoint.Buffer instance allocated on the specified MemoryStack. |
static SpvcEntryPoint |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcEntryPoint instance allocated on the specified MemoryStack. |
java.nio.ByteBuffer |
name()
Returns a
ByteBuffer view of the null-terminated string pointed to by the name field. |
SpvcEntryPoint |
name(java.nio.ByteBuffer value)
Sets the address of the specified encoded string to the
name field. |
java.lang.String |
nameString()
Decodes the null-terminated string pointed to by the
name field. |
static int |
nexecution_model(long struct)
Unsafe version of
execution_model(). |
static void |
nexecution_model(long struct,
int value)
Unsafe version of
execution_model. |
static java.nio.ByteBuffer |
nname(long struct)
Unsafe version of
name(). |
static void |
nname(long struct,
java.nio.ByteBuffer value)
Unsafe version of
name. |
static java.lang.String |
nnameString(long struct)
Unsafe version of
nameString(). |
SpvcEntryPoint |
set(int execution_model,
java.nio.ByteBuffer name)
Initializes this struct with the specified values.
|
SpvcEntryPoint |
set(SpvcEntryPoint src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int EXECUTION_MODEL
public static final int NAME
public SpvcEntryPoint(java.nio.ByteBuffer container)
SpvcEntryPoint instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int execution_model()
execution_model field.public java.nio.ByteBuffer name()
ByteBuffer view of the null-terminated string pointed to by the name field.public java.lang.String nameString()
name field.public SpvcEntryPoint execution_model(int value)
execution_model field.public SpvcEntryPoint name(java.nio.ByteBuffer value)
name field.public SpvcEntryPoint set(int execution_model, java.nio.ByteBuffer name)
public SpvcEntryPoint set(SpvcEntryPoint src)
src - the source structpublic static SpvcEntryPoint malloc()
SpvcEntryPoint instance allocated with memAlloc. The instance must be explicitly freed.public static SpvcEntryPoint calloc()
SpvcEntryPoint instance allocated with memCalloc. The instance must be explicitly freed.public static SpvcEntryPoint create()
SpvcEntryPoint instance allocated with BufferUtils.public static SpvcEntryPoint create(long address)
SpvcEntryPoint instance for the specified memory address.@Nullable public static SpvcEntryPoint createSafe(long address)
public static SpvcEntryPoint.Buffer malloc(int capacity)
SpvcEntryPoint.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static SpvcEntryPoint.Buffer calloc(int capacity)
SpvcEntryPoint.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static SpvcEntryPoint.Buffer create(int capacity)
SpvcEntryPoint.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static SpvcEntryPoint.Buffer create(long address, int capacity)
SpvcEntryPoint.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static SpvcEntryPoint.Buffer createSafe(long address, int capacity)
public static SpvcEntryPoint mallocStack()
SpvcEntryPoint instance allocated on the thread-local MemoryStack.public static SpvcEntryPoint callocStack()
SpvcEntryPoint instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static SpvcEntryPoint mallocStack(org.lwjgl.system.MemoryStack stack)
SpvcEntryPoint instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static SpvcEntryPoint callocStack(org.lwjgl.system.MemoryStack stack)
SpvcEntryPoint instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static SpvcEntryPoint.Buffer mallocStack(int capacity)
SpvcEntryPoint.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static SpvcEntryPoint.Buffer callocStack(int capacity)
SpvcEntryPoint.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static SpvcEntryPoint.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
SpvcEntryPoint.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static SpvcEntryPoint.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
SpvcEntryPoint.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nexecution_model(long struct)
execution_model().public static java.nio.ByteBuffer nname(long struct)
name().public static java.lang.String nnameString(long struct)
nameString().public static void nexecution_model(long struct,
int value)
execution_model.public static void nname(long struct,
java.nio.ByteBuffer value)
name.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.