Record Class VkDispatchGraphInfoAMDX

java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkDispatchGraphInfoAMDX
All Implemented Interfaces:
IPointer, IVkDispatchGraphInfoAMDX

@ValueBasedCandidate @UnsafeConstructor public record VkDispatchGraphInfoAMDX(@NotNull MemorySegment segment) extends Record implements IVkDispatchGraphInfoAMDX

Represents a pointer to a VkDispatchGraphInfoAMDX structure in native memory.

Structure

typedef struct VkDispatchGraphInfoAMDX {
    uint32_t nodeIndex;
    uint32_t payloadCount; // optional
    VkDeviceOrHostAddressConstAMDX payloads;
    uint64_t payloadStride;
} VkDispatchGraphInfoAMDX;

Contracts

The property segment() should always be not-null (segment != NULL && !segment.equals(MemorySegment.NULL)), and properly aligned to LAYOUT.byteAlignment() bytes. To represent null pointer, you may use a Java null instead. See the documentation of IPointer.segment() for more details.

The constructor of this class is marked as UnsafeConstructor, because it does not perform any runtime check. The constructor can be useful for automatic code generators.

See Also:
  • Field Details

    • LAYOUT

      public static final StructLayout LAYOUT
    • BYTES

      public static final long BYTES
    • PATH$nodeIndex

      public static final MemoryLayout.PathElement PATH$nodeIndex
    • PATH$payloadCount

      public static final MemoryLayout.PathElement PATH$payloadCount
    • PATH$payloads

      public static final MemoryLayout.PathElement PATH$payloads
    • PATH$payloadStride

      public static final MemoryLayout.PathElement PATH$payloadStride
    • LAYOUT$nodeIndex

      public static final ValueLayout.OfInt LAYOUT$nodeIndex
    • LAYOUT$payloadCount

      public static final ValueLayout.OfInt LAYOUT$payloadCount
    • LAYOUT$payloads

      public static final UnionLayout LAYOUT$payloads
    • LAYOUT$payloadStride

      public static final ValueLayout.OfLong LAYOUT$payloadStride
    • SIZE$nodeIndex

      public static final long SIZE$nodeIndex
    • SIZE$payloadCount

      public static final long SIZE$payloadCount
    • SIZE$payloads

      public static final long SIZE$payloads
    • SIZE$payloadStride

      public static final long SIZE$payloadStride
    • OFFSET$nodeIndex

      public static final long OFFSET$nodeIndex
    • OFFSET$payloadCount

      public static final long OFFSET$payloadCount
    • OFFSET$payloads

      public static final long OFFSET$payloads
    • OFFSET$payloadStride

      public static final long OFFSET$payloadStride
  • Constructor Details

    • VkDispatchGraphInfoAMDX

      public VkDispatchGraphInfoAMDX(@NotNull @NotNull MemorySegment segment)
      Creates an instance of a VkDispatchGraphInfoAMDX record class.
      Parameters:
      segment - the value for the segment record component
  • Method Details