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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordRepresents a pointer to / an array ofVkPhysicalDeviceSparsePropertiesstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVkPhysicalDeviceSparseProperties(@NotNull MemorySegment segment) Creates an instance of aVkPhysicalDeviceSparsePropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclone(Arena arena, VkPhysicalDeviceSparseProperties src) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intresidencyAlignedMipSize(int value) intresidencyNonResidentStrict(int value) intresidencyStandard2DBlockShape(int value) intresidencyStandard2DMultisampleBlockShape(int value) intresidencyStandard3DBlockShape(int value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$residencyStandard2DBlockShape
-
PATH$residencyStandard2DMultisampleBlockShape
-
PATH$residencyStandard3DBlockShape
-
PATH$residencyAlignedMipSize
-
PATH$residencyNonResidentStrict
-
LAYOUT$residencyStandard2DBlockShape
-
LAYOUT$residencyStandard2DMultisampleBlockShape
-
LAYOUT$residencyStandard3DBlockShape
-
LAYOUT$residencyAlignedMipSize
-
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
Creates an instance of aVkPhysicalDeviceSparsePropertiesrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static VkPhysicalDeviceSparseProperties clone(Arena arena, VkPhysicalDeviceSparseProperties src) -
residencyStandard2DBlockShape
-
residencyStandard2DBlockShape
public VkPhysicalDeviceSparseProperties residencyStandard2DBlockShape(@NativeType("VkBool32") @Unsigned int value) -
residencyStandard2DMultisampleBlockShape
-
residencyStandard2DMultisampleBlockShape
public VkPhysicalDeviceSparseProperties residencyStandard2DMultisampleBlockShape(@NativeType("VkBool32") @Unsigned int value) -
residencyStandard3DBlockShape
-
residencyStandard3DBlockShape
public VkPhysicalDeviceSparseProperties residencyStandard3DBlockShape(@NativeType("VkBool32") @Unsigned int value) -
residencyAlignedMipSize
-
residencyAlignedMipSize
public VkPhysicalDeviceSparseProperties residencyAlignedMipSize(@NativeType("VkBool32") @Unsigned int value) -
residencyNonResidentStrict
-
residencyNonResidentStrict
public VkPhysicalDeviceSparseProperties residencyNonResidentStrict(@NativeType("VkBool32") @Unsigned int value) -
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
segment
Returns the value of thesegmentrecord component.
-