Record Class VkPhysicalDeviceSparseProperties

java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkPhysicalDeviceSparseProperties
All Implemented Interfaces:
IPointer, IVkPhysicalDeviceSparseProperties

@ValueBasedCandidate @UnsafeConstructor public record VkPhysicalDeviceSparseProperties(@NotNull MemorySegment segment) extends Record implements IVkPhysicalDeviceSparseProperties

Represents a pointer to a VkPhysicalDeviceSparseProperties structure in native memory.

Structure

typedef struct VkPhysicalDeviceSparseProperties {
    VkBool32 residencyStandard2DBlockShape;
    VkBool32 residencyStandard2DMultisampleBlockShape;
    VkBool32 residencyStandard3DBlockShape;
    VkBool32 residencyAlignedMipSize;
    VkBool32 residencyNonResidentStrict;
} VkPhysicalDeviceSparseProperties;

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

      public static final MemoryLayout.PathElement PATH$residencyStandard2DBlockShape
    • PATH$residencyStandard2DMultisampleBlockShape

      public static final MemoryLayout.PathElement PATH$residencyStandard2DMultisampleBlockShape
    • PATH$residencyStandard3DBlockShape

      public static final MemoryLayout.PathElement PATH$residencyStandard3DBlockShape
    • PATH$residencyAlignedMipSize

      public static final MemoryLayout.PathElement PATH$residencyAlignedMipSize
    • PATH$residencyNonResidentStrict

      public static final MemoryLayout.PathElement PATH$residencyNonResidentStrict
    • LAYOUT$residencyStandard2DBlockShape

      public static final ValueLayout.OfInt LAYOUT$residencyStandard2DBlockShape
    • LAYOUT$residencyStandard2DMultisampleBlockShape

      public static final ValueLayout.OfInt LAYOUT$residencyStandard2DMultisampleBlockShape
    • LAYOUT$residencyStandard3DBlockShape

      public static final ValueLayout.OfInt LAYOUT$residencyStandard3DBlockShape
    • LAYOUT$residencyAlignedMipSize

      public static final ValueLayout.OfInt LAYOUT$residencyAlignedMipSize
    • LAYOUT$residencyNonResidentStrict

      public static final ValueLayout.OfInt LAYOUT$residencyNonResidentStrict
    • SIZE$residencyStandard2DBlockShape

      public static final long SIZE$residencyStandard2DBlockShape
    • SIZE$residencyStandard2DMultisampleBlockShape

      public static final long SIZE$residencyStandard2DMultisampleBlockShape
    • SIZE$residencyStandard3DBlockShape

      public static final long SIZE$residencyStandard3DBlockShape
    • SIZE$residencyAlignedMipSize

      public static final long SIZE$residencyAlignedMipSize
    • SIZE$residencyNonResidentStrict

      public static final long SIZE$residencyNonResidentStrict
    • OFFSET$residencyStandard2DBlockShape

      public static final long OFFSET$residencyStandard2DBlockShape
    • OFFSET$residencyStandard2DMultisampleBlockShape

      public static final long OFFSET$residencyStandard2DMultisampleBlockShape
    • OFFSET$residencyStandard3DBlockShape

      public static final long OFFSET$residencyStandard3DBlockShape
    • OFFSET$residencyAlignedMipSize

      public static final long OFFSET$residencyAlignedMipSize
    • OFFSET$residencyNonResidentStrict

      public static final long OFFSET$residencyNonResidentStrict
  • Constructor Details

    • VkPhysicalDeviceSparseProperties

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