Record Class VkImageFormatProperties

java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkImageFormatProperties
All Implemented Interfaces:
IPointer, IVkImageFormatProperties

@ValueBasedCandidate @UnsafeConstructor public record VkImageFormatProperties(@NotNull MemorySegment segment) extends Record implements IVkImageFormatProperties

Represents a pointer to a VkImageFormatProperties structure in native memory.

Structure

typedef struct VkImageFormatProperties {
    VkExtent3D maxExtent;
    uint32_t maxMipLevels;
    uint32_t maxArrayLayers;
    VkSampleCountFlags sampleCounts; // optional
    VkDeviceSize maxResourceSize;
} VkImageFormatProperties;

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

      public static final MemoryLayout.PathElement PATH$maxExtent
    • PATH$maxMipLevels

      public static final MemoryLayout.PathElement PATH$maxMipLevels
    • PATH$maxArrayLayers

      public static final MemoryLayout.PathElement PATH$maxArrayLayers
    • PATH$sampleCounts

      public static final MemoryLayout.PathElement PATH$sampleCounts
    • PATH$maxResourceSize

      public static final MemoryLayout.PathElement PATH$maxResourceSize
    • LAYOUT$maxExtent

      public static final StructLayout LAYOUT$maxExtent
    • LAYOUT$maxMipLevels

      public static final ValueLayout.OfInt LAYOUT$maxMipLevels
    • LAYOUT$maxArrayLayers

      public static final ValueLayout.OfInt LAYOUT$maxArrayLayers
    • LAYOUT$sampleCounts

      public static final ValueLayout.OfInt LAYOUT$sampleCounts
    • LAYOUT$maxResourceSize

      public static final ValueLayout.OfLong LAYOUT$maxResourceSize
    • SIZE$maxExtent

      public static final long SIZE$maxExtent
    • SIZE$maxMipLevels

      public static final long SIZE$maxMipLevels
    • SIZE$maxArrayLayers

      public static final long SIZE$maxArrayLayers
    • SIZE$sampleCounts

      public static final long SIZE$sampleCounts
    • SIZE$maxResourceSize

      public static final long SIZE$maxResourceSize
    • OFFSET$maxExtent

      public static final long OFFSET$maxExtent
    • OFFSET$maxMipLevels

      public static final long OFFSET$maxMipLevels
    • OFFSET$maxArrayLayers

      public static final long OFFSET$maxArrayLayers
    • OFFSET$sampleCounts

      public static final long OFFSET$sampleCounts
    • OFFSET$maxResourceSize

      public static final long OFFSET$maxResourceSize
  • Constructor Details

    • VkImageFormatProperties

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