Package org.lwjgl.vulkan
Class VkDispatchGraphInfoAMDX
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkDispatchGraphInfoAMDX>
org.lwjgl.vulkan.VkDispatchGraphInfoAMDX
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkDispatchGraphInfoAMDX
extends org.lwjgl.system.Struct<VkDispatchGraphInfoAMDX>
implements org.lwjgl.system.NativeResource
Structure specifying node parameters for execution graph dispatch.
Description
Whether payloads is consumed as a device or host pointer is defined by the command this structure is used in.
Valid Usage
payloadCountmust be no greater thanmaxExecutionGraphShaderPayloadCount
See Also
VkDeviceOrHostAddressConstAMDX, VkDispatchGraphCountInfoAMDX
Layout
struct VkDispatchGraphInfoAMDX {
uint32_t nodeIndex();
uint32_t payloadCount();
VkDeviceOrHostAddressConstAMDX payloads();
uint64_t payloadStride();
}-
Nested Class Summary
Nested ClassesNested 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 member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkDispatchGraphInfoAMDX(ByteBuffer container) Creates aVkDispatchGraphInfoAMDXinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDispatchGraphInfoAMDXcalloc()Returns a newVkDispatchGraphInfoAMDXinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkDispatchGraphInfoAMDX.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkDispatchGraphInfoAMDX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDispatchGraphInfoAMDXcalloc(org.lwjgl.system.MemoryStack stack) Returns a newVkDispatchGraphInfoAMDXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDispatchGraphInfoAMDXcreate()Returns a newVkDispatchGraphInfoAMDXinstance allocated withBufferUtils.create(int capacity) Returns a newVkDispatchGraphInfoAMDX.Bufferinstance allocated withBufferUtils.static VkDispatchGraphInfoAMDXcreate(long address) Returns a newVkDispatchGraphInfoAMDXinstance for the specified memory address.create(long address, int capacity) Create aVkDispatchGraphInfoAMDX.Bufferinstance at the specified memory.static @Nullable VkDispatchGraphInfoAMDXcreateSafe(long address) static @Nullable VkDispatchGraphInfoAMDX.BuffercreateSafe(long address, int capacity) static VkDispatchGraphInfoAMDXmalloc()Returns a newVkDispatchGraphInfoAMDXinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkDispatchGraphInfoAMDX.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkDispatchGraphInfoAMDX.Bufferinstance allocated on the specifiedMemoryStack.static VkDispatchGraphInfoAMDXmalloc(org.lwjgl.system.MemoryStack stack) Returns a newVkDispatchGraphInfoAMDXinstance allocated on the specifiedMemoryStack.static intnnodeIndex(long struct) Unsafe version ofnodeIndex().static voidnnodeIndex(long struct, int value) Unsafe version ofnodeIndex.intthe index of a node in an execution graph to be dispatched.nodeIndex(int value) Sets the specified value to thenodeIndex()field.static intnpayloadCount(long struct) Unsafe version ofpayloadCount().static voidnpayloadCount(long struct, int value) Unsafe version ofpayloadCount.npayloads(long struct) Unsafe version ofpayloads().static voidnpayloads(long struct, VkDeviceOrHostAddressConstAMDX value) Unsafe version ofpayloads.static longnpayloadStride(long struct) Unsafe version ofpayloadStride().static voidnpayloadStride(long struct, long value) Unsafe version ofpayloadStride.intthe number of payloads to dispatch for the specified node.payloadCount(int value) Sets the specified value to thepayloadCount()field.payloads()a device or host address pointer to a flat array of payloads with size equal to the product ofpayloadCountandpayloadStridepayloads(Consumer<VkDeviceOrHostAddressConstAMDX> consumer) Passes thepayloads()field to the specifiedConsumer.Copies the specifiedVkDeviceOrHostAddressConstAMDXto thepayloads()field.longthe byte stride between successive payloads inpayloadspayloadStride(long value) Sets the specified value to thepayloadStride()field.set(int nodeIndex, int payloadCount, VkDeviceOrHostAddressConstAMDX payloads, long payloadStride) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()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. -
NODEINDEX
public static final int NODEINDEXThe struct member offsets. -
PAYLOADCOUNT
public static final int PAYLOADCOUNTThe struct member offsets. -
PAYLOADS
public static final int PAYLOADSThe struct member offsets. -
PAYLOADSTRIDE
public static final int PAYLOADSTRIDEThe struct member offsets.
-
-
Constructor Details
-
VkDispatchGraphInfoAMDX
Creates aVkDispatchGraphInfoAMDXinstance 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<VkDispatchGraphInfoAMDX>
-
nodeIndex
public int nodeIndex()the index of a node in an execution graph to be dispatched. -
payloadCount
public int payloadCount()the number of payloads to dispatch for the specified node. -
payloads
a device or host address pointer to a flat array of payloads with size equal to the product ofpayloadCountandpayloadStride -
payloadStride
public long payloadStride()the byte stride between successive payloads inpayloads -
nodeIndex
Sets the specified value to thenodeIndex()field. -
payloadCount
Sets the specified value to thepayloadCount()field. -
payloads
Copies the specifiedVkDeviceOrHostAddressConstAMDXto thepayloads()field. -
payloads
Passes thepayloads()field to the specifiedConsumer. -
payloadStride
Sets the specified value to thepayloadStride()field. -
set
public VkDispatchGraphInfoAMDX set(int nodeIndex, int payloadCount, VkDeviceOrHostAddressConstAMDX payloads, long payloadStride) 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 newVkDispatchGraphInfoAMDXinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkDispatchGraphInfoAMDXinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkDispatchGraphInfoAMDXinstance allocated withBufferUtils. -
create
Returns a newVkDispatchGraphInfoAMDXinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDispatchGraphInfoAMDX.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkDispatchGraphInfoAMDX.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkDispatchGraphInfoAMDX.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkDispatchGraphInfoAMDX.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkDispatchGraphInfoAMDXinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkDispatchGraphInfoAMDXinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkDispatchGraphInfoAMDX.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkDispatchGraphInfoAMDX.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkDispatchGraphInfoAMDX.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkDispatchGraphInfoAMDX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nnodeIndex
public static int nnodeIndex(long struct) Unsafe version ofnodeIndex(). -
npayloadCount
public static int npayloadCount(long struct) Unsafe version ofpayloadCount(). -
npayloads
Unsafe version ofpayloads(). -
npayloadStride
public static long npayloadStride(long struct) Unsafe version ofpayloadStride(). -
nnodeIndex
public static void nnodeIndex(long struct, int value) Unsafe version ofnodeIndex. -
npayloadCount
public static void npayloadCount(long struct, int value) Unsafe version ofpayloadCount. -
npayloads
Unsafe version ofpayloads. -
npayloadStride
public static void npayloadStride(long struct, long value) Unsafe version ofpayloadStride.
-