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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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 aVkDispatchGraphInfoAMDX
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDispatchGraphInfoAMDX
calloc()
Returns a newVkDispatchGraphInfoAMDX
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkDispatchGraphInfoAMDX.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkDispatchGraphInfoAMDX.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDispatchGraphInfoAMDX
calloc
(MemoryStack stack) Returns a newVkDispatchGraphInfoAMDX
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkDispatchGraphInfoAMDX
create()
Returns a newVkDispatchGraphInfoAMDX
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkDispatchGraphInfoAMDX.Buffer
instance allocated withBufferUtils
.static VkDispatchGraphInfoAMDX
create
(long address) Returns a newVkDispatchGraphInfoAMDX
instance for the specified memory address.create
(long address, int capacity) Create aVkDispatchGraphInfoAMDX.Buffer
instance at the specified memory.static @Nullable VkDispatchGraphInfoAMDX
createSafe
(long address) static @Nullable VkDispatchGraphInfoAMDX.Buffer
createSafe
(long address, int capacity) static VkDispatchGraphInfoAMDX
malloc()
Returns a newVkDispatchGraphInfoAMDX
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkDispatchGraphInfoAMDX.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkDispatchGraphInfoAMDX.Buffer
instance allocated on the specifiedMemoryStack
.static VkDispatchGraphInfoAMDX
malloc
(MemoryStack stack) Returns a newVkDispatchGraphInfoAMDX
instance allocated on the specifiedMemoryStack
.static int
nnodeIndex
(long struct) Unsafe version ofnodeIndex()
.static void
nnodeIndex
(long struct, int value) Unsafe version ofnodeIndex
.int
nodeIndex
(int value) Sets the specified value to thenodeIndex
field.static int
npayloadCount
(long struct) Unsafe version ofpayloadCount()
.static void
npayloadCount
(long struct, int value) Unsafe version ofpayloadCount
.npayloads
(long struct) Unsafe version ofpayloads()
.static void
npayloads
(long struct, VkDeviceOrHostAddressConstAMDX value) Unsafe version ofpayloads
.static long
npayloadStride
(long struct) Unsafe version ofpayloadStride()
.static void
npayloadStride
(long struct, long value) Unsafe version ofpayloadStride
.int
payloadCount
(int value) Sets the specified value to thepayloadCount
field.payloads()
payloads
(Consumer<VkDeviceOrHostAddressConstAMDX> consumer) Passes thepayloads
field to the specifiedConsumer
.Copies the specifiedVkDeviceOrHostAddressConstAMDX
to thepayloads
field.long
payloadStride
(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.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aVkDispatchGraphInfoAMDX
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkDispatchGraphInfoAMDX>
-
nodeIndex
public int nodeIndex()- Returns:
- the value of the
nodeIndex
field.
-
payloadCount
public int payloadCount()- Returns:
- the value of the
payloadCount
field.
-
payloads
- Returns:
- a
VkDeviceOrHostAddressConstAMDX
view of thepayloads
field.
-
payloadStride
public long payloadStride()- Returns:
- the value of the
payloadStride
field.
-
nodeIndex
Sets the specified value to thenodeIndex
field. -
payloadCount
Sets the specified value to thepayloadCount
field. -
payloads
Copies the specifiedVkDeviceOrHostAddressConstAMDX
to 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 newVkDispatchGraphInfoAMDX
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkDispatchGraphInfoAMDX
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkDispatchGraphInfoAMDX
instance allocated withBufferUtils
. -
create
Returns a newVkDispatchGraphInfoAMDX
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkDispatchGraphInfoAMDX.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkDispatchGraphInfoAMDX.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkDispatchGraphInfoAMDX.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkDispatchGraphInfoAMDX.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkDispatchGraphInfoAMDX
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkDispatchGraphInfoAMDX
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkDispatchGraphInfoAMDX.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkDispatchGraphInfoAMDX.Buffer
instance allocated on the specifiedMemoryStack
and 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
.
-