public class VkDrawMeshTasksIndirectCommandNV
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
The members of VkDrawMeshTasksIndirectCommandNV have the same meaning as the similarly named parameters of CmdDrawMeshTasksNV.
taskCount must be less than or equal to VkPhysicalDeviceMeshShaderPropertiesNV::maxDrawMeshTasksCounttaskCount – the number of local workgroups to dispatch in the X dimension. Y and Z dimension are implicitly set to one.firstTask – the X component of the first workgroup ID.
struct VkDrawMeshTasksIndirectCommandNV {
uint32_t taskCount;
uint32_t firstTask;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkDrawMeshTasksIndirectCommandNV.Buffer
An array of
VkDrawMeshTasksIndirectCommandNV structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
FIRSTTASK
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
TASKCOUNT
The struct member offsets.
|
| Constructor and Description |
|---|
VkDrawMeshTasksIndirectCommandNV(java.nio.ByteBuffer container)
Creates a
VkDrawMeshTasksIndirectCommandNV instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkDrawMeshTasksIndirectCommandNV |
calloc()
Returns a new
VkDrawMeshTasksIndirectCommandNV instance allocated with memCalloc. |
static VkDrawMeshTasksIndirectCommandNV.Buffer |
calloc(int capacity)
Returns a new
VkDrawMeshTasksIndirectCommandNV.Buffer instance allocated with memCalloc. |
static VkDrawMeshTasksIndirectCommandNV |
callocStack()
Returns a new
VkDrawMeshTasksIndirectCommandNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDrawMeshTasksIndirectCommandNV.Buffer |
callocStack(int capacity)
Returns a new
VkDrawMeshTasksIndirectCommandNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkDrawMeshTasksIndirectCommandNV.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDrawMeshTasksIndirectCommandNV.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDrawMeshTasksIndirectCommandNV |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDrawMeshTasksIndirectCommandNV instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkDrawMeshTasksIndirectCommandNV |
create()
Returns a new
VkDrawMeshTasksIndirectCommandNV instance allocated with BufferUtils. |
static VkDrawMeshTasksIndirectCommandNV.Buffer |
create(int capacity)
Returns a new
VkDrawMeshTasksIndirectCommandNV.Buffer instance allocated with BufferUtils. |
static VkDrawMeshTasksIndirectCommandNV |
create(long address)
Returns a new
VkDrawMeshTasksIndirectCommandNV instance for the specified memory address. |
static VkDrawMeshTasksIndirectCommandNV.Buffer |
create(long address,
int capacity)
Create a
VkDrawMeshTasksIndirectCommandNV.Buffer instance at the specified memory. |
static VkDrawMeshTasksIndirectCommandNV |
createSafe(long address)
|
static VkDrawMeshTasksIndirectCommandNV.Buffer |
createSafe(long address,
int capacity)
|
int |
firstTask()
Returns the value of the
firstTask field. |
VkDrawMeshTasksIndirectCommandNV |
firstTask(int value)
Sets the specified value to the
firstTask field. |
static VkDrawMeshTasksIndirectCommandNV |
malloc()
Returns a new
VkDrawMeshTasksIndirectCommandNV instance allocated with memAlloc. |
static VkDrawMeshTasksIndirectCommandNV.Buffer |
malloc(int capacity)
Returns a new
VkDrawMeshTasksIndirectCommandNV.Buffer instance allocated with memAlloc. |
static VkDrawMeshTasksIndirectCommandNV |
mallocStack()
Returns a new
VkDrawMeshTasksIndirectCommandNV instance allocated on the thread-local MemoryStack. |
static VkDrawMeshTasksIndirectCommandNV.Buffer |
mallocStack(int capacity)
Returns a new
VkDrawMeshTasksIndirectCommandNV.Buffer instance allocated on the thread-local MemoryStack. |
static VkDrawMeshTasksIndirectCommandNV.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkDrawMeshTasksIndirectCommandNV.Buffer instance allocated on the specified MemoryStack. |
static VkDrawMeshTasksIndirectCommandNV |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkDrawMeshTasksIndirectCommandNV instance allocated on the specified MemoryStack. |
static int |
nfirstTask(long struct)
Unsafe version of
firstTask(). |
static void |
nfirstTask(long struct,
int value)
Unsafe version of
firstTask. |
static int |
ntaskCount(long struct)
Unsafe version of
taskCount(). |
static void |
ntaskCount(long struct,
int value)
Unsafe version of
taskCount. |
VkDrawMeshTasksIndirectCommandNV |
set(int taskCount,
int firstTask)
Initializes this struct with the specified values.
|
VkDrawMeshTasksIndirectCommandNV |
set(VkDrawMeshTasksIndirectCommandNV src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
taskCount()
Returns the value of the
taskCount field. |
VkDrawMeshTasksIndirectCommandNV |
taskCount(int value)
Sets the specified value to the
taskCount field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int TASKCOUNT
public static final int FIRSTTASK
public VkDrawMeshTasksIndirectCommandNV(java.nio.ByteBuffer container)
VkDrawMeshTasksIndirectCommandNV 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 taskCount()
taskCount field.public int firstTask()
firstTask field.public VkDrawMeshTasksIndirectCommandNV taskCount(int value)
taskCount field.public VkDrawMeshTasksIndirectCommandNV firstTask(int value)
firstTask field.public VkDrawMeshTasksIndirectCommandNV set(int taskCount, int firstTask)
public VkDrawMeshTasksIndirectCommandNV set(VkDrawMeshTasksIndirectCommandNV src)
src - the source structpublic static VkDrawMeshTasksIndirectCommandNV malloc()
VkDrawMeshTasksIndirectCommandNV instance allocated with memAlloc. The instance must be explicitly freed.public static VkDrawMeshTasksIndirectCommandNV calloc()
VkDrawMeshTasksIndirectCommandNV instance allocated with memCalloc. The instance must be explicitly freed.public static VkDrawMeshTasksIndirectCommandNV create()
VkDrawMeshTasksIndirectCommandNV instance allocated with BufferUtils.public static VkDrawMeshTasksIndirectCommandNV create(long address)
VkDrawMeshTasksIndirectCommandNV instance for the specified memory address.@Nullable public static VkDrawMeshTasksIndirectCommandNV createSafe(long address)
public static VkDrawMeshTasksIndirectCommandNV.Buffer malloc(int capacity)
VkDrawMeshTasksIndirectCommandNV.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDrawMeshTasksIndirectCommandNV.Buffer calloc(int capacity)
VkDrawMeshTasksIndirectCommandNV.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkDrawMeshTasksIndirectCommandNV.Buffer create(int capacity)
VkDrawMeshTasksIndirectCommandNV.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkDrawMeshTasksIndirectCommandNV.Buffer create(long address, int capacity)
VkDrawMeshTasksIndirectCommandNV.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkDrawMeshTasksIndirectCommandNV.Buffer createSafe(long address, int capacity)
public static VkDrawMeshTasksIndirectCommandNV mallocStack()
VkDrawMeshTasksIndirectCommandNV instance allocated on the thread-local MemoryStack.public static VkDrawMeshTasksIndirectCommandNV callocStack()
VkDrawMeshTasksIndirectCommandNV instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkDrawMeshTasksIndirectCommandNV mallocStack(org.lwjgl.system.MemoryStack stack)
VkDrawMeshTasksIndirectCommandNV instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkDrawMeshTasksIndirectCommandNV callocStack(org.lwjgl.system.MemoryStack stack)
VkDrawMeshTasksIndirectCommandNV instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkDrawMeshTasksIndirectCommandNV.Buffer mallocStack(int capacity)
VkDrawMeshTasksIndirectCommandNV.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkDrawMeshTasksIndirectCommandNV.Buffer callocStack(int capacity)
VkDrawMeshTasksIndirectCommandNV.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkDrawMeshTasksIndirectCommandNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDrawMeshTasksIndirectCommandNV.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkDrawMeshTasksIndirectCommandNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkDrawMeshTasksIndirectCommandNV.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 ntaskCount(long struct)
taskCount().public static int nfirstTask(long struct)
firstTask().public static void ntaskCount(long struct,
int value)
taskCount.public static void nfirstTask(long struct,
int value)
firstTask.Copyright LWJGL. All Rights Reserved. License terms.