Package org.lwjgl.vulkan
Class VkWriteIndirectExecutionSetShaderEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkWriteIndirectExecutionSetShaderEXT>
org.lwjgl.vulkan.VkWriteIndirectExecutionSetShaderEXT
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkWriteIndirectExecutionSetShaderEXT
extends org.lwjgl.system.Struct<VkWriteIndirectExecutionSetShaderEXT>
implements org.lwjgl.system.NativeResource
Struct specifying shader object update information for an indirect execution set.
Description
Shaders need not be stored in the Indirect Execution Set according to their stage. The only restriction for shader indices within a set is that the value of the index must be less than the maximum number of shaders in the set.
Valid Usage
indexmust be less thanVkIndirectExecutionSetShaderInfoEXT::maxShaderCountshadermust have been created withSHADER_CREATE_INDIRECT_BINDABLE_BIT_EXT- A shader created with the same
VkShaderStageFlagBitsmust have been passed in theVkIndirectExecutionSetShaderInfoEXT::pInitialShadersarray indexmust not be in use by submitted command buffers
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_WRITE_INDIRECT_EXECUTION_SET_SHADER_EXTshadermust be a validVkShaderEXThandle
See Also
UpdateIndirectExecutionSetShaderEXT
Layout
struct VkWriteIndirectExecutionSetShaderEXT {
VkStructureType sType();
void const * pNext();
uint32_t index();
VkShaderEXT shader();
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkWriteIndirectExecutionSetShaderEXTstructs.Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkWriteIndirectExecutionSetShaderEXT(ByteBuffer container) Creates aVkWriteIndirectExecutionSetShaderEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkWriteIndirectExecutionSetShaderEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkWriteIndirectExecutionSetShaderEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkWriteIndirectExecutionSetShaderEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newVkWriteIndirectExecutionSetShaderEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkWriteIndirectExecutionSetShaderEXTinstance allocated withBufferUtils.create(int capacity) Returns a newVkWriteIndirectExecutionSetShaderEXT.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkWriteIndirectExecutionSetShaderEXTinstance for the specified memory address.create(long address, int capacity) Create aVkWriteIndirectExecutionSetShaderEXT.Bufferinstance at the specified memory.static @Nullable VkWriteIndirectExecutionSetShaderEXTcreateSafe(long address) static @Nullable VkWriteIndirectExecutionSetShaderEXT.BuffercreateSafe(long address, int capacity) intindex()the element of the set to updateindex(int value) Sets the specified value to theindex()field.malloc()Returns a newVkWriteIndirectExecutionSetShaderEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkWriteIndirectExecutionSetShaderEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkWriteIndirectExecutionSetShaderEXT.Bufferinstance allocated on the specifiedMemoryStack.malloc(org.lwjgl.system.MemoryStack stack) Returns a newVkWriteIndirectExecutionSetShaderEXTinstance allocated on the specifiedMemoryStack.static intnindex(long struct) Unsafe version ofindex().static voidnindex(long struct, int value) Unsafe version ofindex.static longnpNext(long struct) Unsafe version ofpNext().static voidnpNext(long struct, long value) Unsafe version ofpNext.static longnshader(long struct) Unsafe version ofshader().static voidnshader(long struct, long value) Unsafe version ofshader.static intnsType(long struct) Unsafe version ofsType().static voidnsType(long struct, int value) Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.pNext(long value) Sets the specified value to thepNext()field.set(int sType, long pNext, int index, long shader) Initializes this struct with the specified values.Copies the specified struct data to this struct.longshader()the shader to store in the indirect execution setshader(long value) Sets the specified value to theshader()field.intsizeof()intsType()aVkStructureTypevalue identifying this structure.sType(int value) Sets the specified value to thesType()field.Sets theSTRUCTURE_TYPE_WRITE_INDIRECT_EXECUTION_SET_SHADER_EXTvalue to thesType()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
INDEX
public static final int INDEXThe struct member offsets. -
SHADER
public static final int SHADERThe struct member offsets.
-
-
Constructor Details
-
VkWriteIndirectExecutionSetShaderEXT
Creates aVkWriteIndirectExecutionSetShaderEXTinstance 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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkWriteIndirectExecutionSetShaderEXT>
-
sType
public int sType()aVkStructureTypevalue identifying this structure. -
pNext
public long pNext()NULLor a pointer to a structure extending this structure. -
index
public int index()the element of the set to update -
shader
public long shader()the shader to store in the indirect execution set -
sType
Sets the specified value to thesType()field. -
sType$Default
Sets theSTRUCTURE_TYPE_WRITE_INDIRECT_EXECUTION_SET_SHADER_EXTvalue to thesType()field. -
pNext
Sets the specified value to thepNext()field. -
index
Sets the specified value to theindex()field. -
shader
Sets the specified value to theshader()field. -
set
Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkWriteIndirectExecutionSetShaderEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkWriteIndirectExecutionSetShaderEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkWriteIndirectExecutionSetShaderEXTinstance allocated withBufferUtils. -
create
Returns a newVkWriteIndirectExecutionSetShaderEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkWriteIndirectExecutionSetShaderEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkWriteIndirectExecutionSetShaderEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkWriteIndirectExecutionSetShaderEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkWriteIndirectExecutionSetShaderEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkWriteIndirectExecutionSetShaderEXT.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkWriteIndirectExecutionSetShaderEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkWriteIndirectExecutionSetShaderEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkWriteIndirectExecutionSetShaderEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkWriteIndirectExecutionSetShaderEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkWriteIndirectExecutionSetShaderEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkWriteIndirectExecutionSetShaderEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType(). -
npNext
public static long npNext(long struct) Unsafe version ofpNext(). -
nindex
public static int nindex(long struct) Unsafe version ofindex(). -
nshader
public static long nshader(long struct) Unsafe version ofshader(). -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext. -
nindex
public static void nindex(long struct, int value) Unsafe version ofindex. -
nshader
public static void nshader(long struct, long value) Unsafe version ofshader.
-