Record Class VkSparseImageFormatProperties

java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkSparseImageFormatProperties
All Implemented Interfaces:
IPointer, IVkSparseImageFormatProperties

@ValueBasedCandidate @UnsafeConstructor public record VkSparseImageFormatProperties(@NotNull MemorySegment segment) extends Record implements IVkSparseImageFormatProperties

Represents a pointer to a VkSparseImageFormatProperties structure in native memory.

Structure

typedef struct VkSparseImageFormatProperties {
    VkImageAspectFlags aspectMask; // optional
    VkExtent3D imageGranularity;
    VkSparseImageFormatFlags flags; // optional
} VkSparseImageFormatProperties;

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

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

      public static final MemoryLayout.PathElement PATH$imageGranularity
    • PATH$flags

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

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

      public static final StructLayout LAYOUT$imageGranularity
    • LAYOUT$flags

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

      public static final long SIZE$aspectMask
    • SIZE$imageGranularity

      public static final long SIZE$imageGranularity
    • SIZE$flags

      public static final long SIZE$flags
    • OFFSET$aspectMask

      public static final long OFFSET$aspectMask
    • OFFSET$imageGranularity

      public static final long OFFSET$imageGranularity
    • OFFSET$flags

      public static final long OFFSET$flags
  • Constructor Details

    • VkSparseImageFormatProperties

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