Record Class VkSubpassSampleLocationsEXT

java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkSubpassSampleLocationsEXT
All Implemented Interfaces:
IPointer, IVkSubpassSampleLocationsEXT

@ValueBasedCandidate @UnsafeConstructor public record VkSubpassSampleLocationsEXT(@NotNull MemorySegment segment) extends Record implements IVkSubpassSampleLocationsEXT

Represents a pointer to a VkSubpassSampleLocationsEXT structure in native memory.

Structure

typedef struct VkSubpassSampleLocationsEXT {
    uint32_t subpassIndex;
    VkSampleLocationsInfoEXT sampleLocationsInfo;
} VkSubpassSampleLocationsEXT;

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

      public static final MemoryLayout.PathElement PATH$subpassIndex
    • PATH$sampleLocationsInfo

      public static final MemoryLayout.PathElement PATH$sampleLocationsInfo
    • LAYOUT$subpassIndex

      public static final ValueLayout.OfInt LAYOUT$subpassIndex
    • LAYOUT$sampleLocationsInfo

      public static final StructLayout LAYOUT$sampleLocationsInfo
    • SIZE$subpassIndex

      public static final long SIZE$subpassIndex
    • SIZE$sampleLocationsInfo

      public static final long SIZE$sampleLocationsInfo
    • OFFSET$subpassIndex

      public static final long OFFSET$subpassIndex
    • OFFSET$sampleLocationsInfo

      public static final long OFFSET$sampleLocationsInfo
  • Constructor Details

    • VkSubpassSampleLocationsEXT

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