public class VkDrawIndirectCommand
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The members of VkDrawIndirectCommand have the same meaning as the similarly named parameters of CmdDraw.
firstInstance must be 0vertexCount – the number of vertices to draw.instanceCount – the number of instances to draw.firstVertex – the index of the first vertex to draw.firstInstance – the instance ID of the first instance to draw.
struct VkDrawIndirectCommand {
uint32_t vertexCount;
uint32_t instanceCount;
uint32_t firstVertex;
uint32_t firstInstance;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDrawIndirectCommand.Buffer
An array of
VkDrawIndirectCommand structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FIRSTINSTANCE
The struct member offsets.
|
static int |
FIRSTVERTEX
The struct member offsets.
|
static int |
INSTANCECOUNT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
VERTEXCOUNT
The struct member offsets.
|
| Constructor and Description |
|---|
VkDrawIndirectCommand(java.nio.ByteBuffer container)
Creates a
VkDrawIndirectCommand instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDrawIndirectCommand |
calloc()
Returns a new
VkDrawIndirectCommand instance allocated with memCalloc. |
static VkDrawIndirectCommand.Buffer |
calloc(int capacity)
Returns a new
VkDrawIndirectCommand.Buffer instance allocated with memCalloc. |
static VkDrawIndirectCommand |
callocStack()
Returns a new
VkDrawIndirectCommand instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDrawIndirectCommand.Buffer |
callocStack(int capacity)
Returns a new
VkDrawIndirectCommand.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDrawIndirectCommand.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDrawIndirectCommand.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDrawIndirectCommand |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDrawIndirectCommand instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDrawIndirectCommand |
create()
Returns a new
VkDrawIndirectCommand instance allocated with BufferUtils. |
static VkDrawIndirectCommand.Buffer |
create(int capacity)
Returns a new
VkDrawIndirectCommand.Buffer instance allocated with BufferUtils. |
static VkDrawIndirectCommand |
create(long address)
Returns a new
VkDrawIndirectCommand instance for the specified memory address. |
static VkDrawIndirectCommand.Buffer |
create(long address,
int capacity)
Create a
VkDrawIndirectCommand.Buffer instance at the specified memory. |
static VkDrawIndirectCommand |
createSafe(long address)
|
static VkDrawIndirectCommand.Buffer |
createSafe(long address,
int capacity)
|
int |
firstInstance()
Returns the value of the
firstInstance field. |
VkDrawIndirectCommand |
firstInstance(int value)
Sets the specified value to the
firstInstance field. |
int |
firstVertex()
Returns the value of the
firstVertex field. |
VkDrawIndirectCommand |
firstVertex(int value)
Sets the specified value to the
firstVertex field. |
int |
instanceCount()
Returns the value of the
instanceCount field. |
VkDrawIndirectCommand |
instanceCount(int value)
Sets the specified value to the
instanceCount field. |
static VkDrawIndirectCommand |
malloc()
Returns a new
VkDrawIndirectCommand instance allocated with memAlloc. |
static VkDrawIndirectCommand.Buffer |
malloc(int capacity)
Returns a new
VkDrawIndirectCommand.Buffer instance allocated with memAlloc. |
static VkDrawIndirectCommand |
mallocStack()
Returns a new
VkDrawIndirectCommand instance allocated on the thread-local MemoryStack. |
static VkDrawIndirectCommand.Buffer |
mallocStack(int capacity)
Returns a new
VkDrawIndirectCommand.Buffer instance allocated on the thread-local MemoryStack. |
static VkDrawIndirectCommand.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDrawIndirectCommand.Buffer instance allocated on the specified MemoryStack. |
static VkDrawIndirectCommand |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDrawIndirectCommand instance allocated on the specified MemoryStack. |
static int |
nfirstInstance(long struct)
Unsafe version of
firstInstance(). |
static void |
nfirstInstance(long struct,
int value)
Unsafe version of
firstInstance. |
static int |
nfirstVertex(long struct)
Unsafe version of
firstVertex(). |
static void |
nfirstVertex(long struct,
int value)
Unsafe version of
firstVertex. |
static int |
ninstanceCount(long struct)
Unsafe version of
instanceCount(). |
static void |
ninstanceCount(long struct,
int value)
Unsafe version of
instanceCount. |
static int |
nvertexCount(long struct)
Unsafe version of
vertexCount(). |
static void |
nvertexCount(long struct,
int value)
Unsafe version of
vertexCount. |
VkDrawIndirectCommand |
set(int vertexCount,
int instanceCount,
int firstVertex,
int firstInstance)
Initializes this struct with the specified values.
|
VkDrawIndirectCommand |
set(VkDrawIndirectCommand src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
vertexCount()
Returns the value of the
vertexCount field. |
VkDrawIndirectCommand |
vertexCount(int value)
Sets the specified value to the
vertexCount field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int VERTEXCOUNT
public static final int INSTANCECOUNT
public static final int FIRSTVERTEX
public static final int FIRSTINSTANCE
public VkDrawIndirectCommand(java.nio.ByteBuffer container)
VkDrawIndirectCommand 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 vertexCount()
vertexCount field.public int instanceCount()
instanceCount field.public int firstVertex()
firstVertex field.public int firstInstance()
firstInstance field.public VkDrawIndirectCommand vertexCount(int value)
vertexCount field.public VkDrawIndirectCommand instanceCount(int value)
instanceCount field.public VkDrawIndirectCommand firstVertex(int value)
firstVertex field.public VkDrawIndirectCommand firstInstance(int value)
firstInstance field.public VkDrawIndirectCommand set(int vertexCount, int instanceCount, int firstVertex, int firstInstance)
public VkDrawIndirectCommand set(VkDrawIndirectCommand src)
src - the source structpublic static VkDrawIndirectCommand malloc()
VkDrawIndirectCommand instance allocated with memAlloc. The instance must be explicitly freed.public static VkDrawIndirectCommand calloc()
VkDrawIndirectCommand instance allocated with memCalloc. The instance must be explicitly freed.public static VkDrawIndirectCommand create()
VkDrawIndirectCommand instance allocated with BufferUtils.public static VkDrawIndirectCommand create(long address)
VkDrawIndirectCommand instance for the specified memory address.@Nullable public static VkDrawIndirectCommand createSafe(long address)
public static VkDrawIndirectCommand.Buffer malloc(int capacity)
VkDrawIndirectCommand.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDrawIndirectCommand.Buffer calloc(int capacity)
VkDrawIndirectCommand.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDrawIndirectCommand.Buffer create(int capacity)
VkDrawIndirectCommand.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDrawIndirectCommand.Buffer create(long address, int capacity)
VkDrawIndirectCommand.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDrawIndirectCommand.Buffer createSafe(long address, int capacity)
public static VkDrawIndirectCommand mallocStack()
VkDrawIndirectCommand instance allocated on the thread-local MemoryStack.public static VkDrawIndirectCommand callocStack()
VkDrawIndirectCommand instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDrawIndirectCommand mallocStack(org.lwjgl.system.MemoryStack stack)
VkDrawIndirectCommand instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDrawIndirectCommand callocStack(org.lwjgl.system.MemoryStack stack)
VkDrawIndirectCommand instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDrawIndirectCommand.Buffer mallocStack(int capacity)
VkDrawIndirectCommand.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDrawIndirectCommand.Buffer callocStack(int capacity)
VkDrawIndirectCommand.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDrawIndirectCommand.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDrawIndirectCommand.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDrawIndirectCommand.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDrawIndirectCommand.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 nvertexCount(long struct)
vertexCount().public static int ninstanceCount(long struct)
instanceCount().public static int nfirstVertex(long struct)
firstVertex().public static int nfirstInstance(long struct)
firstInstance().public static void nvertexCount(long struct,
int value)
vertexCount.public static void ninstanceCount(long struct,
int value)
instanceCount.public static void nfirstVertex(long struct,
int value)
firstVertex.public static void nfirstInstance(long struct,
int value)
firstInstance.Copyright LWJGL. All Rights Reserved. License terms.