Package org.lwjgl.vulkan
Class VkDrawIndexedIndirectCommand
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkDrawIndexedIndirectCommand
extends Struct<VkDrawIndexedIndirectCommand>
implements NativeResource
struct VkDrawIndexedIndirectCommand {
uint32_t indexCount;
uint32_t instanceCount;
uint32_t firstIndex;
int32_t vertexOffset;
uint32_t firstInstance;
}-
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 member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkDrawIndexedIndirectCommand(ByteBuffer container) Creates aVkDrawIndexedIndirectCommandinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDrawIndexedIndirectCommandcalloc()Returns a newVkDrawIndexedIndirectCommandinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkDrawIndexedIndirectCommand.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkDrawIndexedIndirectCommand.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDrawIndexedIndirectCommandcalloc(MemoryStack stack) Returns a newVkDrawIndexedIndirectCommandinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDrawIndexedIndirectCommandcreate()Returns a newVkDrawIndexedIndirectCommandinstance allocated withBufferUtils.create(int capacity) Returns a newVkDrawIndexedIndirectCommand.Bufferinstance allocated withBufferUtils.static VkDrawIndexedIndirectCommandcreate(long address) Returns a newVkDrawIndexedIndirectCommandinstance for the specified memory address.create(long address, int capacity) Create aVkDrawIndexedIndirectCommand.Bufferinstance at the specified memory.static @Nullable VkDrawIndexedIndirectCommandcreateSafe(long address) static @Nullable VkDrawIndexedIndirectCommand.BuffercreateSafe(long address, int capacity) intfirstIndex(int value) Sets the specified value to thefirstIndexfield.intfirstInstance(int value) Sets the specified value to thefirstInstancefield.intindexCount(int value) Sets the specified value to theindexCountfield.intinstanceCount(int value) Sets the specified value to theinstanceCountfield.static VkDrawIndexedIndirectCommandmalloc()Returns a newVkDrawIndexedIndirectCommandinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkDrawIndexedIndirectCommand.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkDrawIndexedIndirectCommand.Bufferinstance allocated on the specifiedMemoryStack.static VkDrawIndexedIndirectCommandmalloc(MemoryStack stack) Returns a newVkDrawIndexedIndirectCommandinstance allocated on the specifiedMemoryStack.static intnfirstIndex(long struct) Unsafe version offirstIndex().static voidnfirstIndex(long struct, int value) Unsafe version offirstIndex.static intnfirstInstance(long struct) Unsafe version offirstInstance().static voidnfirstInstance(long struct, int value) Unsafe version offirstInstance.static intnindexCount(long struct) Unsafe version ofindexCount().static voidnindexCount(long struct, int value) Unsafe version ofindexCount.static intninstanceCount(long struct) Unsafe version ofinstanceCount().static voidninstanceCount(long struct, int value) Unsafe version ofinstanceCount.static intnvertexOffset(long struct) Unsafe version ofvertexOffset().static voidnvertexOffset(long struct, int value) Unsafe version ofvertexOffset.set(int indexCount, int instanceCount, int firstIndex, int vertexOffset, int firstInstance) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).intvertexOffset(int value) Sets the specified value to thevertexOffsetfield.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. -
INDEXCOUNT
public static final int INDEXCOUNTThe struct member offsets. -
INSTANCECOUNT
public static final int INSTANCECOUNTThe struct member offsets. -
FIRSTINDEX
public static final int FIRSTINDEXThe struct member offsets. -
VERTEXOFFSET
public static final int VERTEXOFFSETThe struct member offsets. -
FIRSTINSTANCE
public static final int FIRSTINSTANCEThe struct member offsets.
-
-
Constructor Details
-
VkDrawIndexedIndirectCommand
Creates aVkDrawIndexedIndirectCommandinstance 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<VkDrawIndexedIndirectCommand>
-
indexCount
public int indexCount()- Returns:
- the value of the
indexCountfield.
-
instanceCount
public int instanceCount()- Returns:
- the value of the
instanceCountfield.
-
firstIndex
public int firstIndex()- Returns:
- the value of the
firstIndexfield.
-
vertexOffset
public int vertexOffset()- Returns:
- the value of the
vertexOffsetfield.
-
firstInstance
public int firstInstance()- Returns:
- the value of the
firstInstancefield.
-
indexCount
Sets the specified value to theindexCountfield. -
instanceCount
Sets the specified value to theinstanceCountfield. -
firstIndex
Sets the specified value to thefirstIndexfield. -
vertexOffset
Sets the specified value to thevertexOffsetfield. -
firstInstance
Sets the specified value to thefirstInstancefield. -
set
public VkDrawIndexedIndirectCommand set(int indexCount, int instanceCount, int firstIndex, int vertexOffset, int firstInstance) 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 newVkDrawIndexedIndirectCommandinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkDrawIndexedIndirectCommandinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkDrawIndexedIndirectCommandinstance allocated withBufferUtils. -
create
Returns a newVkDrawIndexedIndirectCommandinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDrawIndexedIndirectCommand.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkDrawIndexedIndirectCommand.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkDrawIndexedIndirectCommand.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkDrawIndexedIndirectCommand.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkDrawIndexedIndirectCommandinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkDrawIndexedIndirectCommandinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkDrawIndexedIndirectCommand.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkDrawIndexedIndirectCommand.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nindexCount
public static int nindexCount(long struct) Unsafe version ofindexCount(). -
ninstanceCount
public static int ninstanceCount(long struct) Unsafe version ofinstanceCount(). -
nfirstIndex
public static int nfirstIndex(long struct) Unsafe version offirstIndex(). -
nvertexOffset
public static int nvertexOffset(long struct) Unsafe version ofvertexOffset(). -
nfirstInstance
public static int nfirstInstance(long struct) Unsafe version offirstInstance(). -
nindexCount
public static void nindexCount(long struct, int value) Unsafe version ofindexCount. -
ninstanceCount
public static void ninstanceCount(long struct, int value) Unsafe version ofinstanceCount. -
nfirstIndex
public static void nfirstIndex(long struct, int value) Unsafe version offirstIndex. -
nvertexOffset
public static void nvertexOffset(long struct, int value) Unsafe version ofvertexOffset. -
nfirstInstance
public static void nfirstInstance(long struct, int value) Unsafe version offirstInstance.
-