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 recordRepresents a pointer to / an array ofVkPhysicalDeviceMemoryPropertiesstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final SequenceLayoutstatic final ValueLayout.OfIntstatic final SequenceLayoutstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVkPhysicalDeviceMemoryProperties(@NotNull MemorySegment segment) Creates an instance of aVkPhysicalDeviceMemoryPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclone(Arena arena, VkPhysicalDeviceMemoryProperties src) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intmemoryHeapCount(int value) memoryHeaps(VkMemoryHeap.Ptr value) memoryHeaps(@NotNull Consumer<VkMemoryHeap.Ptr> consumer) memoryHeapsAt(int index) voidmemoryHeapsAt(int index, VkMemoryHeap value) @NotNull MemorySegmentintmemoryTypeCount(int value) memoryTypes(VkMemoryType.Ptr value) memoryTypes(@NotNull Consumer<VkMemoryType.Ptr> consumer) memoryTypesAt(int index) voidmemoryTypesAt(int index, VkMemoryType value) @NotNull MemorySegment@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$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 aVkPhysicalDeviceMemoryPropertiesrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
public static VkPhysicalDeviceMemoryProperties clone(Arena arena, VkPhysicalDeviceMemoryProperties src) -
memoryTypeCount
-
memoryTypeCount
-
memoryTypes
-
memoryTypes
public VkPhysicalDeviceMemoryProperties memoryTypes(@NotNull @NotNull Consumer<VkMemoryType.Ptr> consumer) -
memoryTypes
-
memoryTypesAt
-
memoryTypesAt
-
memoryTypesRaw
-
memoryHeapCount
-
memoryHeapCount
-
memoryHeaps
-
memoryHeaps
public VkPhysicalDeviceMemoryProperties memoryHeaps(@NotNull @NotNull Consumer<VkMemoryHeap.Ptr> consumer) -
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 thesegmentrecord component.
-