Record Class VkDispatchIndirectCommand

java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkDispatchIndirectCommand
All Implemented Interfaces:
IPointer, IVkDispatchIndirectCommand

@ValueBasedCandidate @UnsafeConstructor public record VkDispatchIndirectCommand(@NotNull MemorySegment segment) extends Record implements IVkDispatchIndirectCommand

Represents a pointer to a VkDispatchIndirectCommand structure in native memory.

Structure

typedef struct VkDispatchIndirectCommand {
    uint32_t x;
    uint32_t y;
    uint32_t z;
} VkDispatchIndirectCommand;

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

      public static final MemoryLayout.PathElement PATH$x
    • PATH$y

      public static final MemoryLayout.PathElement PATH$y
    • PATH$z

      public static final MemoryLayout.PathElement PATH$z
    • LAYOUT$x

      public static final ValueLayout.OfInt LAYOUT$x
    • LAYOUT$y

      public static final ValueLayout.OfInt LAYOUT$y
    • LAYOUT$z

      public static final ValueLayout.OfInt LAYOUT$z
    • SIZE$x

      public static final long SIZE$x
    • SIZE$y

      public static final long SIZE$y
    • SIZE$z

      public static final long SIZE$z
    • OFFSET$x

      public static final long OFFSET$x
    • OFFSET$y

      public static final long OFFSET$y
    • OFFSET$z

      public static final long OFFSET$z
  • Constructor Details

    • VkDispatchIndirectCommand

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