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