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 record
Represents a pointer to / an array ofVkPhysicalDeviceSparseProperties
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final long
static final long
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkPhysicalDeviceSparseProperties
(@NotNull MemorySegment segment) Creates an instance of aVkPhysicalDeviceSparseProperties
record class. -
Method Summary
Modifier and TypeMethodDescriptionclone
(Arena arena, VkPhysicalDeviceSparseProperties src) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.int
residencyAlignedMipSize
(int value) int
residencyNonResidentStrict
(int value) int
residencyStandard2DBlockShape
(int value) int
residencyStandard2DMultisampleBlockShape
(int value) int
residencyStandard3DBlockShape
(int value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.final String
toString()
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 aVkPhysicalDeviceSparseProperties
record class.- Parameters:
segment
- the value for thesegment
record 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 thesegment
record component.
-