public class SpvcSpecializationConstant
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
id – the ID of the specialization constantconstant_id – the constant ID of the constant, used in Vulkan during pipeline creation
struct SpvcSpecializationConstant {
spvc_constant_id id;
unsigned int constant_id;
}| Modifier and Type | Class and Description |
|---|---|
static class |
SpvcSpecializationConstant.Buffer
An array of
SpvcSpecializationConstant structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
CONSTANT_ID
The struct member offsets.
|
static int |
ID
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
SpvcSpecializationConstant(java.nio.ByteBuffer container)
Creates a
SpvcSpecializationConstant instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static SpvcSpecializationConstant |
calloc()
Returns a new
SpvcSpecializationConstant instance allocated with memCalloc. |
static SpvcSpecializationConstant.Buffer |
calloc(int capacity)
Returns a new
SpvcSpecializationConstant.Buffer instance allocated with memCalloc. |
static SpvcSpecializationConstant |
callocStack()
Returns a new
SpvcSpecializationConstant instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static SpvcSpecializationConstant.Buffer |
callocStack(int capacity)
Returns a new
SpvcSpecializationConstant.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static SpvcSpecializationConstant.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcSpecializationConstant.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static SpvcSpecializationConstant |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcSpecializationConstant instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
constant_id()
Returns the value of the
constant_id field. |
SpvcSpecializationConstant |
constant_id(int value)
Sets the specified value to the
constant_id field. |
static SpvcSpecializationConstant |
create()
Returns a new
SpvcSpecializationConstant instance allocated with BufferUtils. |
static SpvcSpecializationConstant.Buffer |
create(int capacity)
Returns a new
SpvcSpecializationConstant.Buffer instance allocated with BufferUtils. |
static SpvcSpecializationConstant |
create(long address)
Returns a new
SpvcSpecializationConstant instance for the specified memory address. |
static SpvcSpecializationConstant.Buffer |
create(long address,
int capacity)
Create a
SpvcSpecializationConstant.Buffer instance at the specified memory. |
static SpvcSpecializationConstant |
createSafe(long address)
|
static SpvcSpecializationConstant.Buffer |
createSafe(long address,
int capacity)
|
int |
id()
Returns the value of the
id field. |
SpvcSpecializationConstant |
id(int value)
Sets the specified value to the
id field. |
static SpvcSpecializationConstant |
malloc()
Returns a new
SpvcSpecializationConstant instance allocated with memAlloc. |
static SpvcSpecializationConstant.Buffer |
malloc(int capacity)
Returns a new
SpvcSpecializationConstant.Buffer instance allocated with memAlloc. |
static SpvcSpecializationConstant |
mallocStack()
Returns a new
SpvcSpecializationConstant instance allocated on the thread-local MemoryStack. |
static SpvcSpecializationConstant.Buffer |
mallocStack(int capacity)
Returns a new
SpvcSpecializationConstant.Buffer instance allocated on the thread-local MemoryStack. |
static SpvcSpecializationConstant.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcSpecializationConstant.Buffer instance allocated on the specified MemoryStack. |
static SpvcSpecializationConstant |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
SpvcSpecializationConstant instance allocated on the specified MemoryStack. |
static int |
nconstant_id(long struct)
Unsafe version of
constant_id(). |
static void |
nconstant_id(long struct,
int value)
Unsafe version of
constant_id. |
static int |
nid(long struct)
Unsafe version of
id(). |
static void |
nid(long struct,
int value)
Unsafe version of
id. |
SpvcSpecializationConstant |
set(int id,
int constant_id)
Initializes this struct with the specified values.
|
SpvcSpecializationConstant |
set(SpvcSpecializationConstant src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int ID
public static final int CONSTANT_ID
public SpvcSpecializationConstant(java.nio.ByteBuffer container)
SpvcSpecializationConstant 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 id()
id field.public int constant_id()
constant_id field.public SpvcSpecializationConstant id(int value)
id field.public SpvcSpecializationConstant constant_id(int value)
constant_id field.public SpvcSpecializationConstant set(int id, int constant_id)
public SpvcSpecializationConstant set(SpvcSpecializationConstant src)
src - the source structpublic static SpvcSpecializationConstant malloc()
SpvcSpecializationConstant instance allocated with memAlloc. The instance must be explicitly freed.public static SpvcSpecializationConstant calloc()
SpvcSpecializationConstant instance allocated with memCalloc. The instance must be explicitly freed.public static SpvcSpecializationConstant create()
SpvcSpecializationConstant instance allocated with BufferUtils.public static SpvcSpecializationConstant create(long address)
SpvcSpecializationConstant instance for the specified memory address.@Nullable public static SpvcSpecializationConstant createSafe(long address)
public static SpvcSpecializationConstant.Buffer malloc(int capacity)
SpvcSpecializationConstant.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static SpvcSpecializationConstant.Buffer calloc(int capacity)
SpvcSpecializationConstant.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static SpvcSpecializationConstant.Buffer create(int capacity)
SpvcSpecializationConstant.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static SpvcSpecializationConstant.Buffer create(long address, int capacity)
SpvcSpecializationConstant.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static SpvcSpecializationConstant.Buffer createSafe(long address, int capacity)
public static SpvcSpecializationConstant mallocStack()
SpvcSpecializationConstant instance allocated on the thread-local MemoryStack.public static SpvcSpecializationConstant callocStack()
SpvcSpecializationConstant instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static SpvcSpecializationConstant mallocStack(org.lwjgl.system.MemoryStack stack)
SpvcSpecializationConstant instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static SpvcSpecializationConstant callocStack(org.lwjgl.system.MemoryStack stack)
SpvcSpecializationConstant instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static SpvcSpecializationConstant.Buffer mallocStack(int capacity)
SpvcSpecializationConstant.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static SpvcSpecializationConstant.Buffer callocStack(int capacity)
SpvcSpecializationConstant.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static SpvcSpecializationConstant.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
SpvcSpecializationConstant.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static SpvcSpecializationConstant.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
SpvcSpecializationConstant.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 nid(long struct)
id().public static int nconstant_id(long struct)
constant_id().public static void nid(long struct,
int value)
id.public static void nconstant_id(long struct,
int value)
constant_id.Copyright LWJGL. All Rights Reserved. License terms.