public class VkDrawIndexedIndirectCommand
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The members of VkDrawIndexedIndirectCommand have the same meaning as the similarly named parameters of CmdDrawIndexed.
(indexSize * (firstIndex + indexCount) offset) must be less than or equal to the size of the bound index buffer, with indexSize being based on the type specified by indexType, where the index buffer, indexType, and offset are specified via vkCmdBindIndexBufferfirstInstance must be 0indexCount – the number of vertices to draw.instanceCount – the number of instances to draw.firstIndex – the base index within the index buffer.vertexOffset – the value added to the vertex index before indexing into the vertex buffer.firstInstance – the instance ID of the first instance to draw.
struct VkDrawIndexedIndirectCommand {
uint32_t indexCount;
uint32_t instanceCount;
uint32_t firstIndex;
int32_t vertexOffset;
uint32_t firstInstance;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDrawIndexedIndirectCommand.Buffer
An array of
VkDrawIndexedIndirectCommand structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FIRSTINDEX
The struct member offsets.
|
static int |
FIRSTINSTANCE
The struct member offsets.
|
static int |
INDEXCOUNT
The struct member offsets.
|
static int |
INSTANCECOUNT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
VERTEXOFFSET
The struct member offsets.
|
| Constructor and Description |
|---|
VkDrawIndexedIndirectCommand(java.nio.ByteBuffer container)
Creates a
VkDrawIndexedIndirectCommand instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDrawIndexedIndirectCommand |
calloc()
Returns a new
VkDrawIndexedIndirectCommand instance allocated with memCalloc. |
static VkDrawIndexedIndirectCommand.Buffer |
calloc(int capacity)
Returns a new
VkDrawIndexedIndirectCommand.Buffer instance allocated with memCalloc. |
static VkDrawIndexedIndirectCommand |
callocStack()
Returns a new
VkDrawIndexedIndirectCommand instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDrawIndexedIndirectCommand.Buffer |
callocStack(int capacity)
Returns a new
VkDrawIndexedIndirectCommand.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDrawIndexedIndirectCommand.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDrawIndexedIndirectCommand.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDrawIndexedIndirectCommand |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDrawIndexedIndirectCommand instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDrawIndexedIndirectCommand |
create()
Returns a new
VkDrawIndexedIndirectCommand instance allocated with BufferUtils. |
static VkDrawIndexedIndirectCommand.Buffer |
create(int capacity)
Returns a new
VkDrawIndexedIndirectCommand.Buffer instance allocated with BufferUtils. |
static VkDrawIndexedIndirectCommand |
create(long address)
Returns a new
VkDrawIndexedIndirectCommand instance for the specified memory address. |
static VkDrawIndexedIndirectCommand.Buffer |
create(long address,
int capacity)
Create a
VkDrawIndexedIndirectCommand.Buffer instance at the specified memory. |
static VkDrawIndexedIndirectCommand |
createSafe(long address)
|
static VkDrawIndexedIndirectCommand.Buffer |
createSafe(long address,
int capacity)
|
int |
firstIndex()
Returns the value of the
firstIndex field. |
VkDrawIndexedIndirectCommand |
firstIndex(int value)
Sets the specified value to the
firstIndex field. |
int |
firstInstance()
Returns the value of the
firstInstance field. |
VkDrawIndexedIndirectCommand |
firstInstance(int value)
Sets the specified value to the
firstInstance field. |
int |
indexCount()
Returns the value of the
indexCount field. |
VkDrawIndexedIndirectCommand |
indexCount(int value)
Sets the specified value to the
indexCount field. |
int |
instanceCount()
Returns the value of the
instanceCount field. |
VkDrawIndexedIndirectCommand |
instanceCount(int value)
Sets the specified value to the
instanceCount field. |
static VkDrawIndexedIndirectCommand |
malloc()
Returns a new
VkDrawIndexedIndirectCommand instance allocated with memAlloc. |
static VkDrawIndexedIndirectCommand.Buffer |
malloc(int capacity)
Returns a new
VkDrawIndexedIndirectCommand.Buffer instance allocated with memAlloc. |
static VkDrawIndexedIndirectCommand |
mallocStack()
Returns a new
VkDrawIndexedIndirectCommand instance allocated on the thread-local MemoryStack. |
static VkDrawIndexedIndirectCommand.Buffer |
mallocStack(int capacity)
Returns a new
VkDrawIndexedIndirectCommand.Buffer instance allocated on the thread-local MemoryStack. |
static VkDrawIndexedIndirectCommand.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDrawIndexedIndirectCommand.Buffer instance allocated on the specified MemoryStack. |
static VkDrawIndexedIndirectCommand |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDrawIndexedIndirectCommand instance allocated on the specified MemoryStack. |
static int |
nfirstIndex(long struct)
Unsafe version of
firstIndex(). |
static void |
nfirstIndex(long struct,
int value)
Unsafe version of
firstIndex. |
static int |
nfirstInstance(long struct)
Unsafe version of
firstInstance(). |
static void |
nfirstInstance(long struct,
int value)
Unsafe version of
firstInstance. |
static int |
nindexCount(long struct)
Unsafe version of
indexCount(). |
static void |
nindexCount(long struct,
int value)
Unsafe version of
indexCount. |
static int |
ninstanceCount(long struct)
Unsafe version of
instanceCount(). |
static void |
ninstanceCount(long struct,
int value)
Unsafe version of
instanceCount. |
static int |
nvertexOffset(long struct)
Unsafe version of
vertexOffset(). |
static void |
nvertexOffset(long struct,
int value)
Unsafe version of
vertexOffset. |
VkDrawIndexedIndirectCommand |
set(int indexCount,
int instanceCount,
int firstIndex,
int vertexOffset,
int firstInstance)
Initializes this struct with the specified values.
|
VkDrawIndexedIndirectCommand |
set(VkDrawIndexedIndirectCommand src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
vertexOffset()
Returns the value of the
vertexOffset field. |
VkDrawIndexedIndirectCommand |
vertexOffset(int value)
Sets the specified value to the
vertexOffset field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int INDEXCOUNT
public static final int INSTANCECOUNT
public static final int FIRSTINDEX
public static final int VERTEXOFFSET
public static final int FIRSTINSTANCE
public VkDrawIndexedIndirectCommand(java.nio.ByteBuffer container)
VkDrawIndexedIndirectCommand 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 indexCount()
indexCount field.public int instanceCount()
instanceCount field.public int firstIndex()
firstIndex field.public int vertexOffset()
vertexOffset field.public int firstInstance()
firstInstance field.public VkDrawIndexedIndirectCommand indexCount(int value)
indexCount field.public VkDrawIndexedIndirectCommand instanceCount(int value)
instanceCount field.public VkDrawIndexedIndirectCommand firstIndex(int value)
firstIndex field.public VkDrawIndexedIndirectCommand vertexOffset(int value)
vertexOffset field.public VkDrawIndexedIndirectCommand firstInstance(int value)
firstInstance field.public VkDrawIndexedIndirectCommand set(int indexCount, int instanceCount, int firstIndex, int vertexOffset, int firstInstance)
public VkDrawIndexedIndirectCommand set(VkDrawIndexedIndirectCommand src)
src - the source structpublic static VkDrawIndexedIndirectCommand malloc()
VkDrawIndexedIndirectCommand instance allocated with memAlloc. The instance must be explicitly freed.public static VkDrawIndexedIndirectCommand calloc()
VkDrawIndexedIndirectCommand instance allocated with memCalloc. The instance must be explicitly freed.public static VkDrawIndexedIndirectCommand create()
VkDrawIndexedIndirectCommand instance allocated with BufferUtils.public static VkDrawIndexedIndirectCommand create(long address)
VkDrawIndexedIndirectCommand instance for the specified memory address.@Nullable public static VkDrawIndexedIndirectCommand createSafe(long address)
public static VkDrawIndexedIndirectCommand.Buffer malloc(int capacity)
VkDrawIndexedIndirectCommand.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDrawIndexedIndirectCommand.Buffer calloc(int capacity)
VkDrawIndexedIndirectCommand.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDrawIndexedIndirectCommand.Buffer create(int capacity)
VkDrawIndexedIndirectCommand.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDrawIndexedIndirectCommand.Buffer create(long address, int capacity)
VkDrawIndexedIndirectCommand.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDrawIndexedIndirectCommand.Buffer createSafe(long address, int capacity)
public static VkDrawIndexedIndirectCommand mallocStack()
VkDrawIndexedIndirectCommand instance allocated on the thread-local MemoryStack.public static VkDrawIndexedIndirectCommand callocStack()
VkDrawIndexedIndirectCommand instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDrawIndexedIndirectCommand mallocStack(org.lwjgl.system.MemoryStack stack)
VkDrawIndexedIndirectCommand instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDrawIndexedIndirectCommand callocStack(org.lwjgl.system.MemoryStack stack)
VkDrawIndexedIndirectCommand instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDrawIndexedIndirectCommand.Buffer mallocStack(int capacity)
VkDrawIndexedIndirectCommand.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDrawIndexedIndirectCommand.Buffer callocStack(int capacity)
VkDrawIndexedIndirectCommand.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDrawIndexedIndirectCommand.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDrawIndexedIndirectCommand.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDrawIndexedIndirectCommand.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDrawIndexedIndirectCommand.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 nindexCount(long struct)
indexCount().public static int ninstanceCount(long struct)
instanceCount().public static int nfirstIndex(long struct)
firstIndex().public static int nvertexOffset(long struct)
vertexOffset().public static int nfirstInstance(long struct)
firstInstance().public static void nindexCount(long struct,
int value)
indexCount.public static void ninstanceCount(long struct,
int value)
instanceCount.public static void nfirstIndex(long struct,
int value)
firstIndex.public static void nvertexOffset(long struct,
int value)
vertexOffset.public static void nfirstInstance(long struct,
int value)
firstInstance.Copyright LWJGL. All Rights Reserved. License terms.