Package org.lwjgl.vulkan
Class VkSpecializationMapEntry
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkSpecializationMapEntry
extends Struct<VkSpecializationMapEntry>
implements NativeResource
struct VkSpecializationMapEntry {
uint32_t constantID;
uint32_t offset;
size_t size;
}-
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 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
ConstructorsConstructorDescriptionVkSpecializationMapEntry(ByteBuffer container) Creates aVkSpecializationMapEntryinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkSpecializationMapEntrycalloc()Returns a newVkSpecializationMapEntryinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkSpecializationMapEntry.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkSpecializationMapEntry.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSpecializationMapEntrycalloc(MemoryStack stack) Returns a newVkSpecializationMapEntryinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intconstantID(int value) Sets the specified value to theconstantIDfield.static VkSpecializationMapEntrycreate()Returns a newVkSpecializationMapEntryinstance allocated withBufferUtils.create(int capacity) Returns a newVkSpecializationMapEntry.Bufferinstance allocated withBufferUtils.static VkSpecializationMapEntrycreate(long address) Returns a newVkSpecializationMapEntryinstance for the specified memory address.create(long address, int capacity) Create aVkSpecializationMapEntry.Bufferinstance at the specified memory.static @Nullable VkSpecializationMapEntrycreateSafe(long address) static @Nullable VkSpecializationMapEntry.BuffercreateSafe(long address, int capacity) static VkSpecializationMapEntrymalloc()Returns a newVkSpecializationMapEntryinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkSpecializationMapEntry.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkSpecializationMapEntry.Bufferinstance allocated on the specifiedMemoryStack.static VkSpecializationMapEntrymalloc(MemoryStack stack) Returns a newVkSpecializationMapEntryinstance allocated on the specifiedMemoryStack.static intnconstantID(long struct) Unsafe version ofconstantID().static voidnconstantID(long struct, int value) Unsafe version ofconstantID.static intnoffset(long struct) Unsafe version ofoffset().static voidnoffset(long struct, int value) Unsafe version ofoffset.static longnsize(long struct) Unsafe version ofsize().static voidnsize(long struct, long value) Unsafe version ofsize.intoffset()offset(int value) Sets the specified value to theoffsetfield.set(int constantID, int offset, long size) Initializes this struct with the specified values.Copies the specified struct data to this struct.longsize()size(long value) Sets the specified value to thesizefield.intsizeof()Returnssizeof(struct).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. -
CONSTANTID
public static final int CONSTANTIDThe struct member offsets. -
OFFSET
public static final int OFFSETThe struct member offsets. -
SIZE
public static final int SIZEThe struct member offsets.
-
-
Constructor Details
-
VkSpecializationMapEntry
Creates aVkSpecializationMapEntryinstance 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<VkSpecializationMapEntry>
-
constantID
public int constantID()- Returns:
- the value of the
constantIDfield.
-
offset
public int offset()- Returns:
- the value of the
offsetfield.
-
size
public long size()- Returns:
- the value of the
sizefield.
-
constantID
Sets the specified value to theconstantIDfield. -
offset
Sets the specified value to theoffsetfield. -
size
Sets the specified value to thesizefield. -
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 newVkSpecializationMapEntryinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkSpecializationMapEntryinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkSpecializationMapEntryinstance allocated withBufferUtils. -
create
Returns a newVkSpecializationMapEntryinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkSpecializationMapEntry.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkSpecializationMapEntry.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkSpecializationMapEntry.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkSpecializationMapEntry.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkSpecializationMapEntryinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkSpecializationMapEntryinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkSpecializationMapEntry.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkSpecializationMapEntry.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nconstantID
public static int nconstantID(long struct) Unsafe version ofconstantID(). -
noffset
public static int noffset(long struct) Unsafe version ofoffset(). -
nsize
public static long nsize(long struct) Unsafe version ofsize(). -
nconstantID
public static void nconstantID(long struct, int value) Unsafe version ofconstantID. -
noffset
public static void noffset(long struct, int value) Unsafe version ofoffset. -
nsize
public static void nsize(long struct, long value) Unsafe version ofsize.
-