Package org.lwjgl.vulkan
Class VkDispatchGraphInfoAMDX
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
public class VkDispatchGraphInfoAMDX
extends Struct<VkDispatchGraphInfoAMDX>
implements NativeResource
struct VkDispatchGraphInfoAMDX {
uint32_t nodeIndex;
uint32_t payloadCount;
{@link VkDeviceOrHostAddressConstAMDX VkDeviceOrHostAddressConstAMDX} payloads;
uint64_t payloadStride;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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, MemoryStack stack) Returns a newVkDispatchGraphInfoAMDX.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkDispatchGraphInfoAMDXcalloc(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, MemoryStack stack) Returns a newVkDispatchGraphInfoAMDX.Bufferinstance allocated on the specifiedMemoryStack.static VkDispatchGraphInfoAMDXmalloc(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.intnodeIndex(int value) Sets the specified value to thenodeIndexfield.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.intpayloadCount(int value) Sets the specified value to thepayloadCountfield.payloads()payloads(Consumer<VkDeviceOrHostAddressConstAMDX> consumer) Passes thepayloadsfield to the specifiedConsumer.Copies the specifiedVkDeviceOrHostAddressConstAMDXto thepayloadsfield.longpayloadStride(long value) Sets the specified value to thepayloadStridefield.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()Returnssizeof(struct).Methods 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkDispatchGraphInfoAMDX>
-
nodeIndex
public int nodeIndex()- Returns:
- the value of the
nodeIndexfield.
-
payloadCount
public int payloadCount()- Returns:
- the value of the
payloadCountfield.
-
payloads
- Returns:
- a
VkDeviceOrHostAddressConstAMDXview of thepayloadsfield.
-
payloadStride
public long payloadStride()- Returns:
- the value of the
payloadStridefield.
-
nodeIndex
Sets the specified value to thenodeIndexfield. -
payloadCount
Sets the specified value to thepayloadCountfield. -
payloads
Copies the specifiedVkDeviceOrHostAddressConstAMDXto thepayloadsfield. -
payloads
Passes thepayloadsfield to the specifiedConsumer. -
payloadStride
Sets the specified value to thepayloadStridefield. -
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
Returns a newVkDispatchGraphInfoAMDX.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
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.
-