Record Class VkInputAttachmentAspectReference

java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkInputAttachmentAspectReference
All Implemented Interfaces:
IPointer, IVkInputAttachmentAspectReference

@ValueBasedCandidate @UnsafeConstructor public record VkInputAttachmentAspectReference(@NotNull MemorySegment segment) extends Record implements IVkInputAttachmentAspectReference

Represents a pointer to a VkInputAttachmentAspectReference structure in native memory.

Structure

typedef struct VkInputAttachmentAspectReference {
    uint32_t subpass;
    uint32_t inputAttachmentIndex;
    VkImageAspectFlags aspectMask;
} VkInputAttachmentAspectReference;

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

      public static final MemoryLayout.PathElement PATH$subpass
    • PATH$inputAttachmentIndex

      public static final MemoryLayout.PathElement PATH$inputAttachmentIndex
    • PATH$aspectMask

      public static final MemoryLayout.PathElement PATH$aspectMask
    • LAYOUT$subpass

      public static final ValueLayout.OfInt LAYOUT$subpass
    • LAYOUT$inputAttachmentIndex

      public static final ValueLayout.OfInt LAYOUT$inputAttachmentIndex
    • LAYOUT$aspectMask

      public static final ValueLayout.OfInt LAYOUT$aspectMask
    • SIZE$subpass

      public static final long SIZE$subpass
    • SIZE$inputAttachmentIndex

      public static final long SIZE$inputAttachmentIndex
    • SIZE$aspectMask

      public static final long SIZE$aspectMask
    • OFFSET$subpass

      public static final long OFFSET$subpass
    • OFFSET$inputAttachmentIndex

      public static final long OFFSET$inputAttachmentIndex
    • OFFSET$aspectMask

      public static final long OFFSET$aspectMask
  • Constructor Details

    • VkInputAttachmentAspectReference

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