Record Class VkVertexInputBindingDivisorDescription

java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkVertexInputBindingDivisorDescription
All Implemented Interfaces:
IPointer, IVkVertexInputBindingDivisorDescription

@ValueBasedCandidate @UnsafeConstructor public record VkVertexInputBindingDivisorDescription(@NotNull MemorySegment segment) extends Record implements IVkVertexInputBindingDivisorDescription

Represents a pointer to a VkVertexInputBindingDivisorDescription structure in native memory.

Structure

typedef struct VkVertexInputBindingDivisorDescription {
    uint32_t binding;
    uint32_t divisor;
} VkVertexInputBindingDivisorDescription;

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

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

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

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

      public static final long SIZE$binding
    • SIZE$divisor

      public static final long SIZE$divisor
    • OFFSET$binding

      public static final long OFFSET$binding
    • OFFSET$divisor

      public static final long OFFSET$divisor
  • Constructor Details

    • VkVertexInputBindingDivisorDescription

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