Package org.lwjgl.vulkan
Class VkDrawMeshTasksIndirectCommandNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkDrawMeshTasksIndirectCommandNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDrawMeshTasksIndirectCommandNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying a mesh tasks draw indirect command.Description
The members of
VkDrawMeshTasksIndirectCommandNVhave the same meaning as the similarly named parameters ofCmdDrawMeshTasksNV.Valid Usage
taskCountmust be less than or equal toVkPhysicalDeviceMeshShaderPropertiesNV::maxDrawMeshTasksCount
See Also
Member documentation
taskCount– 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.
Layout
struct VkDrawMeshTasksIndirectCommandNV { uint32_t taskCount; uint32_t firstTask; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkDrawMeshTasksIndirectCommandNV.BufferAn array ofVkDrawMeshTasksIndirectCommandNVstructs.
-
Constructor Summary
Constructors Constructor Description VkDrawMeshTasksIndirectCommandNV(java.nio.ByteBuffer container)Creates aVkDrawMeshTasksIndirectCommandNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDrawMeshTasksIndirectCommandNVcalloc()Returns a newVkDrawMeshTasksIndirectCommandNVinstance allocated withmemCalloc.static VkDrawMeshTasksIndirectCommandNV.Buffercalloc(int capacity)Returns a newVkDrawMeshTasksIndirectCommandNV.Bufferinstance allocated withmemCalloc.static VkDrawMeshTasksIndirectCommandNVcallocStack()Returns a newVkDrawMeshTasksIndirectCommandNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDrawMeshTasksIndirectCommandNV.BuffercallocStack(int capacity)Returns a newVkDrawMeshTasksIndirectCommandNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkDrawMeshTasksIndirectCommandNV.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDrawMeshTasksIndirectCommandNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDrawMeshTasksIndirectCommandNVcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDrawMeshTasksIndirectCommandNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDrawMeshTasksIndirectCommandNVcreate()Returns a newVkDrawMeshTasksIndirectCommandNVinstance allocated withBufferUtils.static VkDrawMeshTasksIndirectCommandNV.Buffercreate(int capacity)Returns a newVkDrawMeshTasksIndirectCommandNV.Bufferinstance allocated withBufferUtils.static VkDrawMeshTasksIndirectCommandNVcreate(long address)Returns a newVkDrawMeshTasksIndirectCommandNVinstance for the specified memory address.static VkDrawMeshTasksIndirectCommandNV.Buffercreate(long address, int capacity)Create aVkDrawMeshTasksIndirectCommandNV.Bufferinstance at the specified memory.static VkDrawMeshTasksIndirectCommandNVcreateSafe(long address)static VkDrawMeshTasksIndirectCommandNV.BuffercreateSafe(long address, int capacity)intfirstTask()Returns the value of thefirstTaskfield.VkDrawMeshTasksIndirectCommandNVfirstTask(int value)Sets the specified value to thefirstTaskfield.static VkDrawMeshTasksIndirectCommandNVmalloc()Returns a newVkDrawMeshTasksIndirectCommandNVinstance allocated withmemAlloc.static VkDrawMeshTasksIndirectCommandNV.Buffermalloc(int capacity)Returns a newVkDrawMeshTasksIndirectCommandNV.Bufferinstance allocated withmemAlloc.static VkDrawMeshTasksIndirectCommandNVmallocStack()Returns a newVkDrawMeshTasksIndirectCommandNVinstance allocated on the thread-localMemoryStack.static VkDrawMeshTasksIndirectCommandNV.BuffermallocStack(int capacity)Returns a newVkDrawMeshTasksIndirectCommandNV.Bufferinstance allocated on the thread-localMemoryStack.static VkDrawMeshTasksIndirectCommandNV.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkDrawMeshTasksIndirectCommandNV.Bufferinstance allocated on the specifiedMemoryStack.static VkDrawMeshTasksIndirectCommandNVmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkDrawMeshTasksIndirectCommandNVinstance allocated on the specifiedMemoryStack.static intnfirstTask(long struct)Unsafe version offirstTask().static voidnfirstTask(long struct, int value)Unsafe version offirstTask.static intntaskCount(long struct)Unsafe version oftaskCount().static voidntaskCount(long struct, int value)Unsafe version oftaskCount.VkDrawMeshTasksIndirectCommandNVset(int taskCount, int firstTask)Initializes this struct with the specified values.VkDrawMeshTasksIndirectCommandNVset(VkDrawMeshTasksIndirectCommandNV src)Copies the specified struct data to this struct.intsizeof()inttaskCount()Returns the value of thetaskCountfield.VkDrawMeshTasksIndirectCommandNVtaskCount(int value)Sets the specified value to thetaskCountfield.
-
-
-
Constructor Detail
-
VkDrawMeshTasksIndirectCommandNV
public VkDrawMeshTasksIndirectCommandNV(java.nio.ByteBuffer container)
Creates aVkDrawMeshTasksIndirectCommandNVinstance 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
taskCount
public int taskCount()
Returns the value of thetaskCountfield.
-
firstTask
public int firstTask()
Returns the value of thefirstTaskfield.
-
taskCount
public VkDrawMeshTasksIndirectCommandNV taskCount(int value)
Sets the specified value to thetaskCountfield.
-
firstTask
public VkDrawMeshTasksIndirectCommandNV firstTask(int value)
Sets the specified value to thefirstTaskfield.
-
set
public VkDrawMeshTasksIndirectCommandNV set(int taskCount, int firstTask)
Initializes this struct with the specified values.
-
set
public VkDrawMeshTasksIndirectCommandNV set(VkDrawMeshTasksIndirectCommandNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkDrawMeshTasksIndirectCommandNV malloc()
Returns a newVkDrawMeshTasksIndirectCommandNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkDrawMeshTasksIndirectCommandNV calloc()
Returns a newVkDrawMeshTasksIndirectCommandNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkDrawMeshTasksIndirectCommandNV create()
Returns a newVkDrawMeshTasksIndirectCommandNVinstance allocated withBufferUtils.
-
create
public static VkDrawMeshTasksIndirectCommandNV create(long address)
Returns a newVkDrawMeshTasksIndirectCommandNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkDrawMeshTasksIndirectCommandNV createSafe(long address)
-
malloc
public static VkDrawMeshTasksIndirectCommandNV.Buffer malloc(int capacity)
Returns a newVkDrawMeshTasksIndirectCommandNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkDrawMeshTasksIndirectCommandNV.Buffer calloc(int capacity)
Returns a newVkDrawMeshTasksIndirectCommandNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkDrawMeshTasksIndirectCommandNV.Buffer create(int capacity)
Returns a newVkDrawMeshTasksIndirectCommandNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkDrawMeshTasksIndirectCommandNV.Buffer create(long address, int capacity)
Create aVkDrawMeshTasksIndirectCommandNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkDrawMeshTasksIndirectCommandNV.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkDrawMeshTasksIndirectCommandNV mallocStack()
Returns a newVkDrawMeshTasksIndirectCommandNVinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkDrawMeshTasksIndirectCommandNV callocStack()
Returns a newVkDrawMeshTasksIndirectCommandNVinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkDrawMeshTasksIndirectCommandNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDrawMeshTasksIndirectCommandNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkDrawMeshTasksIndirectCommandNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDrawMeshTasksIndirectCommandNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkDrawMeshTasksIndirectCommandNV.Buffer mallocStack(int capacity)
Returns a newVkDrawMeshTasksIndirectCommandNV.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkDrawMeshTasksIndirectCommandNV.Buffer callocStack(int capacity)
Returns a newVkDrawMeshTasksIndirectCommandNV.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkDrawMeshTasksIndirectCommandNV.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDrawMeshTasksIndirectCommandNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkDrawMeshTasksIndirectCommandNV.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDrawMeshTasksIndirectCommandNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ntaskCount
public static int ntaskCount(long struct)
Unsafe version oftaskCount().
-
nfirstTask
public static int nfirstTask(long struct)
Unsafe version offirstTask().
-
ntaskCount
public static void ntaskCount(long struct, int value)Unsafe version oftaskCount.
-
nfirstTask
public static void nfirstTask(long struct, int value)Unsafe version offirstTask.
-
-