Record Class VkAttachmentSampleLocationsEXT

java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkAttachmentSampleLocationsEXT
All Implemented Interfaces:
IPointer, IVkAttachmentSampleLocationsEXT

@ValueBasedCandidate @UnsafeConstructor public record VkAttachmentSampleLocationsEXT(@NotNull MemorySegment segment) extends Record implements IVkAttachmentSampleLocationsEXT

Represents a pointer to a VkAttachmentSampleLocationsEXT structure in native memory.

Structure

typedef struct VkAttachmentSampleLocationsEXT {
    uint32_t attachmentIndex;
    VkSampleLocationsInfoEXT sampleLocationsInfo;
} VkAttachmentSampleLocationsEXT;

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

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

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

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

      public static final StructLayout LAYOUT$sampleLocationsInfo
    • SIZE$attachmentIndex

      public static final long SIZE$attachmentIndex
    • SIZE$sampleLocationsInfo

      public static final long SIZE$sampleLocationsInfo
    • OFFSET$attachmentIndex

      public static final long OFFSET$attachmentIndex
    • OFFSET$sampleLocationsInfo

      public static final long OFFSET$sampleLocationsInfo
  • Constructor Details

    • VkAttachmentSampleLocationsEXT

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