Record Class VkBindIndexBufferIndirectCommandEXT

java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkBindIndexBufferIndirectCommandEXT
All Implemented Interfaces:
IPointer, IVkBindIndexBufferIndirectCommandEXT

@ValueBasedCandidate @UnsafeConstructor public record VkBindIndexBufferIndirectCommandEXT(@NotNull MemorySegment segment) extends Record implements IVkBindIndexBufferIndirectCommandEXT

Represents a pointer to a VkBindIndexBufferIndirectCommandEXT structure in native memory.

Structure

typedef struct VkBindIndexBufferIndirectCommandEXT {
    VkDeviceAddress bufferAddress;
    uint32_t size;
    VkIndexType indexType;
} VkBindIndexBufferIndirectCommandEXT;

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$bufferAddress

      public static final MemoryLayout.PathElement PATH$bufferAddress
    • PATH$size

      public static final MemoryLayout.PathElement PATH$size
    • PATH$indexType

      public static final MemoryLayout.PathElement PATH$indexType
    • LAYOUT$bufferAddress

      public static final ValueLayout.OfLong LAYOUT$bufferAddress
    • LAYOUT$size

      public static final ValueLayout.OfInt LAYOUT$size
    • LAYOUT$indexType

      public static final ValueLayout.OfInt LAYOUT$indexType
    • SIZE$bufferAddress

      public static final long SIZE$bufferAddress
    • SIZE$size

      public static final long SIZE$size
    • SIZE$indexType

      public static final long SIZE$indexType
    • OFFSET$bufferAddress

      public static final long OFFSET$bufferAddress
    • OFFSET$size

      public static final long OFFSET$size
    • OFFSET$indexType

      public static final long OFFSET$indexType
  • Constructor Details

    • VkBindIndexBufferIndirectCommandEXT

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