Record Class VkPhysicalDeviceProperties
java.lang.Object
java.lang.Record
club.doki7.vulkan.datatype.VkPhysicalDeviceProperties
- All Implemented Interfaces:
IPointer,IVkPhysicalDeviceProperties
@ValueBasedCandidate
@UnsafeConstructor
public record VkPhysicalDeviceProperties(@NotNull MemorySegment segment)
extends Record
implements IVkPhysicalDeviceProperties
Represents a pointer to a VkPhysicalDeviceProperties structure in native memory.
Structure
typedef struct VkPhysicalDeviceProperties {
uint32_t apiVersion;
uint32_t driverVersion;
uint32_t vendorID;
uint32_t deviceID;
VkPhysicalDeviceType deviceType;
char[VK_MAX_PHYSICAL_DEVICE_NAME_SIZE] deviceName;
uint8_t[VK_UUID_SIZE] pipelineCacheUUID;
VkPhysicalDeviceLimits limits;
VkPhysicalDeviceSparseProperties sparseProperties;
} VkPhysicalDeviceProperties;
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 ofVkPhysicalDevicePropertiesstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final SequenceLayoutstatic final ValueLayout.OfIntstatic final ValueLayout.OfIntstatic final StructLayoutstatic final SequenceLayoutstatic final StructLayoutstatic final ValueLayout.OfIntstatic final longstatic final longstatic final longstatic final longstatic 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 MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVkPhysicalDeviceProperties(@NotNull MemorySegment segment) Creates an instance of aVkPhysicalDevicePropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkPhysicalDevicePropertiesintapiVersion(int value) static VkPhysicalDevicePropertiesclone(Arena arena, VkPhysicalDeviceProperties src) intdeviceID()deviceID(int value) deviceName(BytePtr value) deviceName(@NotNull Consumer<BytePtr> consumer) @NotNull MemorySegmentintdeviceType(int value) intdriverVersion(int value) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@NotNull VkPhysicalDeviceLimitslimits()limits(@NotNull VkPhysicalDeviceLimits value) limits(Consumer<@NotNull VkPhysicalDeviceLimits> consumer) pipelineCacheUUID(BytePtr value) pipelineCacheUUID(@NotNull Consumer<BytePtr> consumer) @NotNull MemorySegment@NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.@NotNull VkPhysicalDeviceSparsePropertiessparseProperties(@NotNull VkPhysicalDeviceSparseProperties value) sparseProperties(Consumer<@NotNull VkPhysicalDeviceSparseProperties> consumer) final StringtoString()Returns a string representation of this record class.intvendorID()vendorID(int value)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$apiVersion
-
PATH$driverVersion
-
PATH$vendorID
-
PATH$deviceID
-
PATH$deviceType
-
PATH$deviceName
-
PATH$pipelineCacheUUID
-
PATH$limits
-
PATH$sparseProperties
-
LAYOUT$apiVersion
-
LAYOUT$driverVersion
-
LAYOUT$vendorID
-
LAYOUT$deviceID
-
LAYOUT$deviceType
-
LAYOUT$deviceName
-
LAYOUT$pipelineCacheUUID
-
LAYOUT$limits
-
LAYOUT$sparseProperties
-
SIZE$apiVersion
public static final long SIZE$apiVersion -
SIZE$driverVersion
public static final long SIZE$driverVersion -
SIZE$vendorID
public static final long SIZE$vendorID -
SIZE$deviceID
public static final long SIZE$deviceID -
SIZE$deviceType
public static final long SIZE$deviceType -
SIZE$deviceName
public static final long SIZE$deviceName -
SIZE$pipelineCacheUUID
public static final long SIZE$pipelineCacheUUID -
SIZE$limits
public static final long SIZE$limits -
SIZE$sparseProperties
public static final long SIZE$sparseProperties -
OFFSET$apiVersion
public static final long OFFSET$apiVersion -
OFFSET$driverVersion
public static final long OFFSET$driverVersion -
OFFSET$vendorID
public static final long OFFSET$vendorID -
OFFSET$deviceID
public static final long OFFSET$deviceID -
OFFSET$deviceType
public static final long OFFSET$deviceType -
OFFSET$deviceName
public static final long OFFSET$deviceName -
OFFSET$pipelineCacheUUID
public static final long OFFSET$pipelineCacheUUID -
OFFSET$limits
public static final long OFFSET$limits -
OFFSET$sparseProperties
public static final long OFFSET$sparseProperties
-
-
Constructor Details
-
VkPhysicalDeviceProperties
Creates an instance of aVkPhysicalDevicePropertiesrecord class.- Parameters:
segment- the value for thesegmentrecord component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
apiVersion
-
apiVersion
-
driverVersion
-
driverVersion
-
vendorID
-
vendorID
-
deviceID
-
deviceID
-
deviceType
-
deviceType
-
deviceName
-
deviceName
-
deviceName
-
deviceNameRaw
-
pipelineCacheUUID
-
pipelineCacheUUID
-
pipelineCacheUUID
-
pipelineCacheUUIDRaw
-
limits
-
limits
-
limits
-
sparseProperties
-
sparseProperties
public VkPhysicalDeviceProperties sparseProperties(@NotNull @NotNull VkPhysicalDeviceSparseProperties value) -
sparseProperties
public VkPhysicalDeviceProperties sparseProperties(Consumer<@NotNull VkPhysicalDeviceSparseProperties> consumer) -
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.
-