Record Class VkDrawIndirectCountIndirectCommandEXT

java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkDrawIndirectCountIndirectCommandEXT
All Implemented Interfaces:
IPointer, IVkDrawIndirectCountIndirectCommandEXT

@ValueBasedCandidate @UnsafeConstructor public record VkDrawIndirectCountIndirectCommandEXT(@NotNull MemorySegment segment) extends Record implements IVkDrawIndirectCountIndirectCommandEXT

Represents a pointer to a VkDrawIndirectCountIndirectCommandEXT structure in native memory.

Structure

typedef struct VkDrawIndirectCountIndirectCommandEXT {
    VkDeviceAddress bufferAddress;
    uint32_t stride;
    uint32_t commandCount;
} VkDrawIndirectCountIndirectCommandEXT;

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

      public static final MemoryLayout.PathElement PATH$stride
    • PATH$commandCount

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

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

      public static final ValueLayout.OfInt LAYOUT$stride
    • LAYOUT$commandCount

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

      public static final long SIZE$bufferAddress
    • SIZE$stride

      public static final long SIZE$stride
    • SIZE$commandCount

      public static final long SIZE$commandCount
    • OFFSET$bufferAddress

      public static final long OFFSET$bufferAddress
    • OFFSET$stride

      public static final long OFFSET$stride
    • OFFSET$commandCount

      public static final long OFFSET$commandCount
  • Constructor Details

    • VkDrawIndirectCountIndirectCommandEXT

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