Record Class VkPhysicalDeviceMemoryProperties
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkPhysicalDeviceMemoryProperties
- All Implemented Interfaces:
IPointer
,IVkPhysicalDeviceMemoryProperties
@ValueBasedCandidate
@UnsafeConstructor
public record VkPhysicalDeviceMemoryProperties(@NotNull MemorySegment segment)
extends Record
implements IVkPhysicalDeviceMemoryProperties
Represents a pointer to a VkPhysicalDeviceMemoryProperties
structure in native memory.
Structure
typedef struct VkPhysicalDeviceMemoryProperties {
uint32_t memoryTypeCount
;
VkMemoryType
[VK_MAX_MEMORY_TYPES] memoryTypes
;
uint32_t memoryHeapCount
;
VkMemoryHeap
[VK_MAX_MEMORY_HEAPS] memoryHeaps
;
} VkPhysicalDeviceMemoryProperties;
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 ofVkPhysicalDeviceMemoryProperties
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final ValueLayout.OfInt
static final SequenceLayout
static final ValueLayout.OfInt
static final SequenceLayout
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 long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkPhysicalDeviceMemoryProperties
(@NotNull MemorySegment segment) Creates an instance of aVkPhysicalDeviceMemoryProperties
record class. -
Method Summary
Modifier and TypeMethodDescriptionclone
(Arena arena, VkPhysicalDeviceMemoryProperties 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
memoryHeapCount
(int value) memoryHeaps
(VkMemoryHeap.Ptr value) memoryHeapsAt
(int index) void
memoryHeapsAt
(int index, VkMemoryHeap value) int
memoryTypeCount
(int value) memoryTypes
(VkMemoryType.Ptr value) memoryTypesAt
(int index) void
memoryTypesAt
(int index, VkMemoryType 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$memoryTypeCount
-
PATH$memoryTypes
-
PATH$memoryHeapCount
-
PATH$memoryHeaps
-
LAYOUT$memoryTypeCount
-
LAYOUT$memoryTypes
-
LAYOUT$memoryHeapCount
-
LAYOUT$memoryHeaps
-
SIZE$memoryTypeCount
public static final long SIZE$memoryTypeCount -
SIZE$memoryTypes
public static final long SIZE$memoryTypes -
SIZE$memoryHeapCount
public static final long SIZE$memoryHeapCount -
SIZE$memoryHeaps
public static final long SIZE$memoryHeaps -
OFFSET$memoryTypeCount
public static final long OFFSET$memoryTypeCount -
OFFSET$memoryTypes
public static final long OFFSET$memoryTypes -
OFFSET$memoryHeapCount
public static final long OFFSET$memoryHeapCount -
OFFSET$memoryHeaps
public static final long OFFSET$memoryHeaps
-
-
Constructor Details
-
VkPhysicalDeviceMemoryProperties
Creates an instance of aVkPhysicalDeviceMemoryProperties
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static VkPhysicalDeviceMemoryProperties clone(Arena arena, VkPhysicalDeviceMemoryProperties src) -
memoryTypeCount
-
memoryTypeCount
-
memoryTypes
-
memoryTypes
-
memoryTypesAt
-
memoryTypesAt
-
memoryTypesRaw
-
memoryHeapCount
-
memoryHeapCount
-
memoryHeaps
-
memoryHeaps
-
memoryHeapsAt
-
memoryHeapsAt
-
memoryHeapsRaw
-
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.
-