Record Class VkVertexInputBindingDescription

java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkVertexInputBindingDescription
All Implemented Interfaces:
IPointer, IVkVertexInputBindingDescription

@ValueBasedCandidate @UnsafeConstructor public record VkVertexInputBindingDescription(@NotNull MemorySegment segment) extends Record implements IVkVertexInputBindingDescription

Represents a pointer to a VkVertexInputBindingDescription structure in native memory.

Structure

typedef struct VkVertexInputBindingDescription {
    uint32_t binding;
    uint32_t stride;
    VkVertexInputRate inputRate;
} VkVertexInputBindingDescription;

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

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

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

      public static final MemoryLayout.PathElement PATH$inputRate
    • LAYOUT$binding

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

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

      public static final ValueLayout.OfInt LAYOUT$inputRate
    • SIZE$binding

      public static final long SIZE$binding
    • SIZE$stride

      public static final long SIZE$stride
    • SIZE$inputRate

      public static final long SIZE$inputRate
    • OFFSET$binding

      public static final long OFFSET$binding
    • OFFSET$stride

      public static final long OFFSET$stride
    • OFFSET$inputRate

      public static final long OFFSET$inputRate
  • Constructor Details

    • VkVertexInputBindingDescription

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