Package org.lwjgl.vulkan
Class VkBindShaderGroupIndirectCommandNV
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkBindShaderGroupIndirectCommandNV
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkBindShaderGroupIndirectCommandNV extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying input data for a single shader group command token.Valid Usage
- The current bound graphics pipeline, as well as the pipelines it may reference, must have been created with
PIPELINE_CREATE_INDIRECT_BINDABLE_BIT_NV - The
indexmust be within range of the accessible shader groups of the current bound graphics pipeline. SeeCmdBindPipelineShaderGroupNVfor further details
Layout
struct VkBindShaderGroupIndirectCommandNV { uint32_t groupIndex; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkBindShaderGroupIndirectCommandNV.BufferAn array ofVkBindShaderGroupIndirectCommandNVstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intGROUPINDEXThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VkBindShaderGroupIndirectCommandNV(java.nio.ByteBuffer container)Creates aVkBindShaderGroupIndirectCommandNVinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkBindShaderGroupIndirectCommandNVcalloc()Returns a newVkBindShaderGroupIndirectCommandNVinstance allocated withmemCalloc.static VkBindShaderGroupIndirectCommandNV.Buffercalloc(int capacity)Returns a newVkBindShaderGroupIndirectCommandNV.Bufferinstance allocated withmemCalloc.static VkBindShaderGroupIndirectCommandNV.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBindShaderGroupIndirectCommandNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBindShaderGroupIndirectCommandNVcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBindShaderGroupIndirectCommandNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBindShaderGroupIndirectCommandNVcreate()Returns a newVkBindShaderGroupIndirectCommandNVinstance allocated withBufferUtils.static VkBindShaderGroupIndirectCommandNV.Buffercreate(int capacity)Returns a newVkBindShaderGroupIndirectCommandNV.Bufferinstance allocated withBufferUtils.static VkBindShaderGroupIndirectCommandNVcreate(long address)Returns a newVkBindShaderGroupIndirectCommandNVinstance for the specified memory address.static VkBindShaderGroupIndirectCommandNV.Buffercreate(long address, int capacity)Create aVkBindShaderGroupIndirectCommandNV.Bufferinstance at the specified memory.static VkBindShaderGroupIndirectCommandNVcreateSafe(long address)static VkBindShaderGroupIndirectCommandNV.BuffercreateSafe(long address, int capacity)intgroupIndex()VkBindShaderGroupIndirectCommandNVgroupIndex(int value)Sets the specified value to thegroupIndexfield.static VkBindShaderGroupIndirectCommandNVmalloc()Returns a newVkBindShaderGroupIndirectCommandNVinstance allocated withmemAlloc.static VkBindShaderGroupIndirectCommandNV.Buffermalloc(int capacity)Returns a newVkBindShaderGroupIndirectCommandNV.Bufferinstance allocated withmemAlloc.static VkBindShaderGroupIndirectCommandNV.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBindShaderGroupIndirectCommandNV.Bufferinstance allocated on the specifiedMemoryStack.static VkBindShaderGroupIndirectCommandNVmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBindShaderGroupIndirectCommandNVinstance allocated on the specifiedMemoryStack.static intngroupIndex(long struct)Unsafe version ofgroupIndex().static voidngroupIndex(long struct, int value)Unsafe version ofgroupIndex.VkBindShaderGroupIndirectCommandNVset(VkBindShaderGroupIndirectCommandNV src)Copies the specified struct data to this struct.intsizeof()
-
-
-
Constructor Detail
-
VkBindShaderGroupIndirectCommandNV
public VkBindShaderGroupIndirectCommandNV(java.nio.ByteBuffer container)
Creates aVkBindShaderGroupIndirectCommandNVinstance 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
-
groupIndex
public int groupIndex()
- Returns:
- the value of the
groupIndexfield.
-
groupIndex
public VkBindShaderGroupIndirectCommandNV groupIndex(int value)
Sets the specified value to thegroupIndexfield.
-
set
public VkBindShaderGroupIndirectCommandNV set(VkBindShaderGroupIndirectCommandNV src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkBindShaderGroupIndirectCommandNV malloc()
Returns a newVkBindShaderGroupIndirectCommandNVinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkBindShaderGroupIndirectCommandNV calloc()
Returns a newVkBindShaderGroupIndirectCommandNVinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkBindShaderGroupIndirectCommandNV create()
Returns a newVkBindShaderGroupIndirectCommandNVinstance allocated withBufferUtils.
-
create
public static VkBindShaderGroupIndirectCommandNV create(long address)
Returns a newVkBindShaderGroupIndirectCommandNVinstance for the specified memory address.
-
createSafe
@Nullable public static VkBindShaderGroupIndirectCommandNV createSafe(long address)
-
malloc
public static VkBindShaderGroupIndirectCommandNV.Buffer malloc(int capacity)
Returns a newVkBindShaderGroupIndirectCommandNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkBindShaderGroupIndirectCommandNV.Buffer calloc(int capacity)
Returns a newVkBindShaderGroupIndirectCommandNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkBindShaderGroupIndirectCommandNV.Buffer create(int capacity)
Returns a newVkBindShaderGroupIndirectCommandNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkBindShaderGroupIndirectCommandNV.Buffer create(long address, int capacity)
Create aVkBindShaderGroupIndirectCommandNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkBindShaderGroupIndirectCommandNV.Buffer createSafe(long address, int capacity)
-
malloc
public static VkBindShaderGroupIndirectCommandNV malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindShaderGroupIndirectCommandNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkBindShaderGroupIndirectCommandNV calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBindShaderGroupIndirectCommandNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkBindShaderGroupIndirectCommandNV.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBindShaderGroupIndirectCommandNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkBindShaderGroupIndirectCommandNV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBindShaderGroupIndirectCommandNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ngroupIndex
public static int ngroupIndex(long struct)
Unsafe version ofgroupIndex().
-
ngroupIndex
public static void ngroupIndex(long struct, int value)Unsafe version ofgroupIndex.
-
-