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.NativeResource
Structure specifying a mesh tasks draw indirect command.Description
The members of
VkDrawMeshTasksIndirectCommandNV
have the same meaning as the similarly named parameters ofCmdDrawMeshTasksNV
.Valid Usage
taskCount
must 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 class
VkDrawMeshTasksIndirectCommandNV.Buffer
An array ofVkDrawMeshTasksIndirectCommandNV
structs.
-
Constructor Summary
Constructors Constructor Description VkDrawMeshTasksIndirectCommandNV(java.nio.ByteBuffer container)
Creates aVkDrawMeshTasksIndirectCommandNV
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkDrawMeshTasksIndirectCommandNV
calloc()
Returns a newVkDrawMeshTasksIndirectCommandNV
instance allocated withmemCalloc
.static VkDrawMeshTasksIndirectCommandNV.Buffer
calloc(int capacity)
Returns a newVkDrawMeshTasksIndirectCommandNV.Buffer
instance allocated withmemCalloc
.static VkDrawMeshTasksIndirectCommandNV
callocStack()
Returns a newVkDrawMeshTasksIndirectCommandNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDrawMeshTasksIndirectCommandNV.Buffer
callocStack(int capacity)
Returns a newVkDrawMeshTasksIndirectCommandNV.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkDrawMeshTasksIndirectCommandNV.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDrawMeshTasksIndirectCommandNV.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDrawMeshTasksIndirectCommandNV
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDrawMeshTasksIndirectCommandNV
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDrawMeshTasksIndirectCommandNV
create()
Returns a newVkDrawMeshTasksIndirectCommandNV
instance allocated withBufferUtils
.static VkDrawMeshTasksIndirectCommandNV.Buffer
create(int capacity)
Returns a newVkDrawMeshTasksIndirectCommandNV.Buffer
instance allocated withBufferUtils
.static VkDrawMeshTasksIndirectCommandNV
create(long address)
Returns a newVkDrawMeshTasksIndirectCommandNV
instance for the specified memory address.static VkDrawMeshTasksIndirectCommandNV.Buffer
create(long address, int capacity)
Create aVkDrawMeshTasksIndirectCommandNV.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 thefirstTask
field.VkDrawMeshTasksIndirectCommandNV
firstTask(int value)
Sets the specified value to thefirstTask
field.static VkDrawMeshTasksIndirectCommandNV
malloc()
Returns a newVkDrawMeshTasksIndirectCommandNV
instance allocated withmemAlloc
.static VkDrawMeshTasksIndirectCommandNV.Buffer
malloc(int capacity)
Returns a newVkDrawMeshTasksIndirectCommandNV.Buffer
instance allocated withmemAlloc
.static VkDrawMeshTasksIndirectCommandNV
mallocStack()
Returns a newVkDrawMeshTasksIndirectCommandNV
instance allocated on the thread-localMemoryStack
.static VkDrawMeshTasksIndirectCommandNV.Buffer
mallocStack(int capacity)
Returns a newVkDrawMeshTasksIndirectCommandNV.Buffer
instance allocated on the thread-localMemoryStack
.static VkDrawMeshTasksIndirectCommandNV.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkDrawMeshTasksIndirectCommandNV.Buffer
instance allocated on the specifiedMemoryStack
.static VkDrawMeshTasksIndirectCommandNV
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDrawMeshTasksIndirectCommandNV
instance allocated on the specifiedMemoryStack
.static int
nfirstTask(long struct)
Unsafe version offirstTask()
.static void
nfirstTask(long struct, int value)
Unsafe version offirstTask
.static int
ntaskCount(long struct)
Unsafe version oftaskCount()
.static void
ntaskCount(long struct, int value)
Unsafe version oftaskCount
.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 thetaskCount
field.VkDrawMeshTasksIndirectCommandNV
taskCount(int value)
Sets the specified value to thetaskCount
field.
-
-
-
Constructor Detail
-
VkDrawMeshTasksIndirectCommandNV
public VkDrawMeshTasksIndirectCommandNV(java.nio.ByteBuffer container)
Creates aVkDrawMeshTasksIndirectCommandNV
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
taskCount
public int taskCount()
Returns the value of thetaskCount
field.
-
firstTask
public int firstTask()
Returns the value of thefirstTask
field.
-
taskCount
public VkDrawMeshTasksIndirectCommandNV taskCount(int value)
Sets the specified value to thetaskCount
field.
-
firstTask
public VkDrawMeshTasksIndirectCommandNV firstTask(int value)
Sets the specified value to thefirstTask
field.
-
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 newVkDrawMeshTasksIndirectCommandNV
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkDrawMeshTasksIndirectCommandNV calloc()
Returns a newVkDrawMeshTasksIndirectCommandNV
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkDrawMeshTasksIndirectCommandNV create()
Returns a newVkDrawMeshTasksIndirectCommandNV
instance allocated withBufferUtils
.
-
create
public static VkDrawMeshTasksIndirectCommandNV create(long address)
Returns a newVkDrawMeshTasksIndirectCommandNV
instance for the specified memory address.
-
createSafe
@Nullable public static VkDrawMeshTasksIndirectCommandNV createSafe(long address)
-
malloc
public static VkDrawMeshTasksIndirectCommandNV.Buffer malloc(int capacity)
Returns a newVkDrawMeshTasksIndirectCommandNV.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkDrawMeshTasksIndirectCommandNV.Buffer calloc(int capacity)
Returns a newVkDrawMeshTasksIndirectCommandNV.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDrawMeshTasksIndirectCommandNV.Buffer create(int capacity)
Returns a newVkDrawMeshTasksIndirectCommandNV.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkDrawMeshTasksIndirectCommandNV.Buffer create(long address, int capacity)
Create aVkDrawMeshTasksIndirectCommandNV.Buffer
instance 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 newVkDrawMeshTasksIndirectCommandNV
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkDrawMeshTasksIndirectCommandNV callocStack()
Returns a newVkDrawMeshTasksIndirectCommandNV
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkDrawMeshTasksIndirectCommandNV mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDrawMeshTasksIndirectCommandNV
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkDrawMeshTasksIndirectCommandNV callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkDrawMeshTasksIndirectCommandNV
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkDrawMeshTasksIndirectCommandNV.Buffer callocStack(int capacity)
Returns a newVkDrawMeshTasksIndirectCommandNV.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-
-