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 record
Represents a pointer to / an array ofVkPhysicalDeviceProperties
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 SequenceLayout
static final ValueLayout.OfInt
static final ValueLayout.OfInt
static final StructLayout
static final SequenceLayout
static final StructLayout
static final ValueLayout.OfInt
static final long
static final long
static final long
static final long
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 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
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkPhysicalDeviceProperties
(@NotNull MemorySegment segment) Creates an instance of aVkPhysicalDeviceProperties
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkPhysicalDeviceProperties
int
apiVersion
(int value) static VkPhysicalDeviceProperties
clone
(Arena arena, VkPhysicalDeviceProperties src) int
deviceID()
deviceID
(int value) deviceName
(BytePtr value) int
deviceType
(int value) int
driverVersion
(int value) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.@NotNull VkPhysicalDeviceLimits
limits()
limits
(@NotNull VkPhysicalDeviceLimits value) limits
(Consumer<@NotNull VkPhysicalDeviceLimits> consumer) pipelineCacheUUID
(BytePtr value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.@NotNull VkPhysicalDeviceSparseProperties
sparseProperties
(@NotNull VkPhysicalDeviceSparseProperties value) sparseProperties
(Consumer<@NotNull VkPhysicalDeviceSparseProperties> consumer) final String
toString()
Returns a string representation of this record class.int
vendorID()
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 aVkPhysicalDeviceProperties
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
apiVersion
-
apiVersion
-
driverVersion
-
driverVersion
-
vendorID
-
vendorID
-
deviceID
-
deviceID
-
deviceType
-
deviceType
-
deviceName
-
deviceName
-
deviceNameRaw
-
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 thesegment
record component.
-