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 Link icon

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

Contracts Link icon

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 Link icon

    • LAYOUT Link icon

      public static final StructLayout LAYOUT
    • BYTES Link icon

      public static final long BYTES
    • PATH$aspectMask Link icon

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

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

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

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

      public static final StructLayout LAYOUT$imageGranularity
    • LAYOUT$flags Link icon

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

      public static final long SIZE$aspectMask
    • SIZE$imageGranularity Link icon

      public static final long SIZE$imageGranularity
    • SIZE$flags Link icon

      public static final long SIZE$flags
    • OFFSET$aspectMask Link icon

      public static final long OFFSET$aspectMask
    • OFFSET$imageGranularity Link icon

      public static final long OFFSET$imageGranularity
    • OFFSET$flags Link icon

      public static final long OFFSET$flags
  • Constructor Details Link icon

    • VkSparseImageFormatProperties Link icon

      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 Link icon