Package org.lwjgl.util.spvc
Class SpvcSpecializationConstant
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.util.spvc.SpvcSpecializationConstant
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class SpvcSpecializationConstant extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceLayout
struct spvc_specialization_constant { spvc_constant_idid(); unsigned intconstant_id(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpvcSpecializationConstant.BufferAn array ofSpvcSpecializationConstantstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCONSTANT_ID
IDThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description SpvcSpecializationConstant(java.nio.ByteBuffer container)Creates aSpvcSpecializationConstantinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SpvcSpecializationConstantcalloc()Returns a newSpvcSpecializationConstantinstance allocated withmemCalloc.static SpvcSpecializationConstant.Buffercalloc(int capacity)Returns a newSpvcSpecializationConstant.Bufferinstance allocated withmemCalloc.static SpvcSpecializationConstant.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSpvcSpecializationConstant.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static SpvcSpecializationConstantcalloc(org.lwjgl.system.MemoryStack stack)Returns a newSpvcSpecializationConstantinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intconstant_id()the constant ID of the constant, used in Vulkan during pipeline creationSpvcSpecializationConstantconstant_id(int value)Sets the specified value to theconstant_id()field.static SpvcSpecializationConstantcreate()Returns a newSpvcSpecializationConstantinstance allocated withBufferUtils.static SpvcSpecializationConstant.Buffercreate(int capacity)Returns a newSpvcSpecializationConstant.Bufferinstance allocated withBufferUtils.static SpvcSpecializationConstantcreate(long address)Returns a newSpvcSpecializationConstantinstance for the specified memory address.static SpvcSpecializationConstant.Buffercreate(long address, int capacity)Create aSpvcSpecializationConstant.Bufferinstance at the specified memory.static SpvcSpecializationConstantcreateSafe(long address)static SpvcSpecializationConstant.BuffercreateSafe(long address, int capacity)intid()the ID of the specialization constantSpvcSpecializationConstantid(int value)Sets the specified value to theid()field.static SpvcSpecializationConstantmalloc()Returns a newSpvcSpecializationConstantinstance allocated withmemAlloc.static SpvcSpecializationConstant.Buffermalloc(int capacity)Returns a newSpvcSpecializationConstant.Bufferinstance allocated withmemAlloc.static SpvcSpecializationConstant.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newSpvcSpecializationConstant.Bufferinstance allocated on the specifiedMemoryStack.static SpvcSpecializationConstantmalloc(org.lwjgl.system.MemoryStack stack)Returns a newSpvcSpecializationConstantinstance allocated on the specifiedMemoryStack.static intnconstant_id(long struct)Unsafe version ofconstant_id().static voidnconstant_id(long struct, int value)Unsafe version ofconstant_id.static intnid(long struct)Unsafe version ofid().static voidnid(long struct, int value)Unsafe version ofid.SpvcSpecializationConstantset(int id, int constant_id)Initializes this struct with the specified values.SpvcSpecializationConstantset(SpvcSpecializationConstant src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
SpvcSpecializationConstant
public SpvcSpecializationConstant(java.nio.ByteBuffer container)
Creates aSpvcSpecializationConstantinstance 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
-
id
public int id()
the ID of the specialization constant
-
constant_id
public int constant_id()
the constant ID of the constant, used in Vulkan during pipeline creation
-
id
public SpvcSpecializationConstant id(int value)
Sets the specified value to theid()field.
-
constant_id
public SpvcSpecializationConstant constant_id(int value)
Sets the specified value to theconstant_id()field.
-
set
public SpvcSpecializationConstant set(int id, int constant_id)
Initializes this struct with the specified values.
-
set
public SpvcSpecializationConstant set(SpvcSpecializationConstant src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static SpvcSpecializationConstant malloc()
Returns a newSpvcSpecializationConstantinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static SpvcSpecializationConstant calloc()
Returns a newSpvcSpecializationConstantinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static SpvcSpecializationConstant create()
Returns a newSpvcSpecializationConstantinstance allocated withBufferUtils.
-
create
public static SpvcSpecializationConstant create(long address)
Returns a newSpvcSpecializationConstantinstance for the specified memory address.
-
createSafe
@Nullable public static SpvcSpecializationConstant createSafe(long address)
-
malloc
public static SpvcSpecializationConstant.Buffer malloc(int capacity)
Returns a newSpvcSpecializationConstant.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static SpvcSpecializationConstant.Buffer calloc(int capacity)
Returns a newSpvcSpecializationConstant.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static SpvcSpecializationConstant.Buffer create(int capacity)
Returns a newSpvcSpecializationConstant.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static SpvcSpecializationConstant.Buffer create(long address, int capacity)
Create aSpvcSpecializationConstant.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static SpvcSpecializationConstant.Buffer createSafe(long address, int capacity)
-
malloc
public static SpvcSpecializationConstant malloc(org.lwjgl.system.MemoryStack stack)
Returns a newSpvcSpecializationConstantinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static SpvcSpecializationConstant calloc(org.lwjgl.system.MemoryStack stack)
Returns a newSpvcSpecializationConstantinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static SpvcSpecializationConstant.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSpvcSpecializationConstant.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static SpvcSpecializationConstant.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newSpvcSpecializationConstant.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nid
public static int nid(long struct)
Unsafe version ofid().
-
nconstant_id
public static int nconstant_id(long struct)
Unsafe version ofconstant_id().
-
nid
public static void nid(long struct, int value)Unsafe version ofid.
-
nconstant_id
public static void nconstant_id(long struct, int value)Unsafe version ofconstant_id.
-
-