Class VkPhysicalDeviceProperties
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkPhysicalDeviceProperties
- All Implemented Interfaces:
Addressable
- Direct Known Subclasses:
VkPhysicalDeviceProperties.Buffer
public sealed class VkPhysicalDeviceProperties
extends GroupType
permits VkPhysicalDeviceProperties.Buffer
Layout
struct VkPhysicalDeviceProperties {
uint32_t apiVersion;
uint32_t driverVersion;
uint32_t vendorID;
uint32_t deviceID;
(int) VkPhysicalDeviceType deviceType;
char deviceName[256];
uint8_t pipelineCacheUUID[16];
(struct VkPhysicalDeviceLimits) VkPhysicalDeviceLimits limits;
(struct VkPhysicalDeviceSparseProperties) VkPhysicalDeviceSparseProperties sparseProperties;
};
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The struct layout ofVkPhysicalDeviceProperties
.static final MemoryLayout
The memory layout ofapiVersion
.static final MemoryLayout
The memory layout ofdeviceID
.static final MemoryLayout
The memory layout ofdeviceName
.static final MemoryLayout
The memory layout ofdeviceType
.static final MemoryLayout
The memory layout ofdriverVersion
.static final MemoryLayout
The memory layout oflimits
.static final MemoryLayout
The memory layout ofpipelineCacheUUID
.static final MemoryLayout
The memory layout ofsparseProperties
.static final MemoryLayout
The memory layout ofvendorID
.static final long
The byte offset ofapiVersion
.static final long
The byte offset ofdeviceID
.static final long
The byte offset ofdeviceName
.static final long
The byte offset ofdeviceType
.static final long
The byte offset ofdriverVersion
.static final long
The byte offset oflimits
.static final long
The byte offset ofpipelineCacheUUID
.static final long
The byte offset ofsparseProperties
.static final long
The byte offset ofvendorID
.static final VarHandle
static final VarHandle
static final VarHandle
TheVarHandle
ofdeviceName
of type(MemorySegment base, long baseOffset, long index, long index0)MemorySegment
.static final VarHandle
static final VarHandle
TheVarHandle
ofdriverVersion
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
TheVarHandle
ofpipelineCacheUUID
of type(MemorySegment base, long baseOffset, long index, long index0)MemorySegment
.static final VarHandle
-
Constructor Summary
ConstructorsConstructorDescriptionVkPhysicalDeviceProperties
(MemorySegment segment) CreatesVkPhysicalDeviceProperties
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkPhysicalDeviceProperties
alloc
(SegmentAllocator allocator) Allocates aVkPhysicalDeviceProperties
with the given segment allocator.alloc
(SegmentAllocator allocator, long count) Allocates aVkPhysicalDeviceProperties
with the given segment allocator and count.int
ReturnsapiVersion
.apiVersion
(int value) SetsapiVersion
with the given value.static int
apiVersion
(MemorySegment segment, long index) ReturnsapiVersion
at the given index.static void
apiVersion
(MemorySegment segment, long index, int value) SetsapiVersion
with the given value at the given index.asBuffer()
Converts this instance to a buffer.Copies from the given source.int
deviceID()
ReturnsdeviceID
.deviceID
(int value) SetsdeviceID
with the given value.static int
deviceID
(MemorySegment segment, long index) ReturnsdeviceID
at the given index.static void
deviceID
(MemorySegment segment, long index, int value) SetsdeviceID
with the given value at the given index.ReturnsdeviceName
.byte
deviceName
(long index0) ReturnsdeviceName
.deviceName
(long index0, byte value) SetsdeviceName
with the given value.deviceName
(MemorySegment value) SetsdeviceName
with the given value.static MemorySegment
deviceName
(MemorySegment segment, long index) ReturnsdeviceName
at the given index.static byte
deviceName
(MemorySegment segment, long index, long index0) ReturnsdeviceName
at the given index.static void
deviceName
(MemorySegment segment, long index, long index0, byte value) SetsdeviceName
with the given value at the given index.static void
deviceName
(MemorySegment segment, long index, MemorySegment value) SetsdeviceName
with the given value at the given index.int
ReturnsdeviceType
.deviceType
(int value) SetsdeviceType
with the given value.static int
deviceType
(MemorySegment segment, long index) ReturnsdeviceType
at the given index.static void
deviceType
(MemorySegment segment, long index, int value) SetsdeviceType
with the given value at the given index.int
ReturnsdriverVersion
.driverVersion
(int value) SetsdriverVersion
with the given value.static int
driverVersion
(MemorySegment segment, long index) ReturnsdriverVersion
at the given index.static void
driverVersion
(MemorySegment segment, long index, int value) SetsdriverVersion
with the given value at the given index.limits()
Returnslimits
.limits
(MemorySegment value) Setslimits
with the given value.static MemorySegment
limits
(MemorySegment segment, long index) Returnslimits
at the given index.static void
limits
(MemorySegment segment, long index, MemorySegment value) Setslimits
with the given value at the given index.of
(MemorySegment segment) CreatesVkPhysicalDeviceProperties
with the given segment.static VkPhysicalDeviceProperties
ofNative
(MemorySegment segment) CreatesVkPhysicalDeviceProperties
with the given segment.ofNative
(MemorySegment segment, long count) CreatesVkPhysicalDeviceProperties
with the given segment.ReturnspipelineCacheUUID
.byte
pipelineCacheUUID
(long index0) ReturnspipelineCacheUUID
.pipelineCacheUUID
(long index0, byte value) SetspipelineCacheUUID
with the given value.pipelineCacheUUID
(MemorySegment value) SetspipelineCacheUUID
with the given value.static MemorySegment
pipelineCacheUUID
(MemorySegment segment, long index) ReturnspipelineCacheUUID
at the given index.static byte
pipelineCacheUUID
(MemorySegment segment, long index, long index0) ReturnspipelineCacheUUID
at the given index.static void
pipelineCacheUUID
(MemorySegment segment, long index, long index0, byte value) SetspipelineCacheUUID
with the given value at the given index.static void
pipelineCacheUUID
(MemorySegment segment, long index, MemorySegment value) SetspipelineCacheUUID
with the given value at the given index.ReturnssparseProperties
.sparseProperties
(MemorySegment value) SetssparseProperties
with the given value.static MemorySegment
sparseProperties
(MemorySegment segment, long index) ReturnssparseProperties
at the given index.static void
sparseProperties
(MemorySegment segment, long index, MemorySegment value) SetssparseProperties
with the given value at the given index.int
vendorID()
ReturnsvendorID
.vendorID
(int value) SetsvendorID
with the given value.static int
vendorID
(MemorySegment segment, long index) ReturnsvendorID
at the given index.static void
vendorID
(MemorySegment segment, long index, int value) SetsvendorID
with the given value at the given index.Methods inherited from class overrungl.struct.GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkPhysicalDeviceProperties
. -
OFFSET_apiVersion
public static final long OFFSET_apiVersionThe byte offset ofapiVersion
. -
LAYOUT_apiVersion
The memory layout ofapiVersion
. -
VH_apiVersion
-
OFFSET_driverVersion
public static final long OFFSET_driverVersionThe byte offset ofdriverVersion
. -
LAYOUT_driverVersion
The memory layout ofdriverVersion
. -
VH_driverVersion
-
OFFSET_vendorID
public static final long OFFSET_vendorIDThe byte offset ofvendorID
. -
LAYOUT_vendorID
The memory layout ofvendorID
. -
VH_vendorID
-
OFFSET_deviceID
public static final long OFFSET_deviceIDThe byte offset ofdeviceID
. -
LAYOUT_deviceID
The memory layout ofdeviceID
. -
VH_deviceID
-
OFFSET_deviceType
public static final long OFFSET_deviceTypeThe byte offset ofdeviceType
. -
LAYOUT_deviceType
The memory layout ofdeviceType
. -
VH_deviceType
-
OFFSET_deviceName
public static final long OFFSET_deviceNameThe byte offset ofdeviceName
. -
LAYOUT_deviceName
The memory layout ofdeviceName
. -
VH_deviceName
-
OFFSET_pipelineCacheUUID
public static final long OFFSET_pipelineCacheUUIDThe byte offset ofpipelineCacheUUID
. -
LAYOUT_pipelineCacheUUID
The memory layout ofpipelineCacheUUID
. -
VH_pipelineCacheUUID
-
OFFSET_limits
public static final long OFFSET_limitsThe byte offset oflimits
. -
LAYOUT_limits
The memory layout oflimits
. -
OFFSET_sparseProperties
public static final long OFFSET_sparsePropertiesThe byte offset ofsparseProperties
. -
LAYOUT_sparseProperties
The memory layout ofsparseProperties
.
-
-
Constructor Details
-
VkPhysicalDeviceProperties
CreatesVkPhysicalDeviceProperties
with the given segment.- Parameters:
segment
- the memory segment
-
-
Method Details
-
of
CreatesVkPhysicalDeviceProperties
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkPhysicalDeviceProperties
with the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkPhysicalDeviceProperties
with the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment
- the memory segmentcount
- the count of the buffer- Returns:
- the created instance or
null
if the segment isNULL
-
alloc
Allocates aVkPhysicalDeviceProperties
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
VkPhysicalDeviceProperties
-
alloc
Allocates aVkPhysicalDeviceProperties
with the given segment allocator and count.- Parameters:
allocator
- the segment allocatorcount
- the count- Returns:
- the allocated
VkPhysicalDeviceProperties
-
copyFrom
Copies from the given source.- Parameters:
src
- the source- Returns:
this
-
asBuffer
Converts this instance to a buffer.- Returns:
- the buffer
-
apiVersion
ReturnsapiVersion
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
apiVersion
at the given index
-
apiVersion
public int apiVersion()ReturnsapiVersion
.- Returns:
apiVersion
-
apiVersion
SetsapiVersion
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
apiVersion
SetsapiVersion
with the given value.- Parameters:
value
- the value- Returns:
this
-
driverVersion
ReturnsdriverVersion
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
driverVersion
at the given index
-
driverVersion
public int driverVersion()ReturnsdriverVersion
.- Returns:
driverVersion
-
driverVersion
SetsdriverVersion
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
driverVersion
SetsdriverVersion
with the given value.- Parameters:
value
- the value- Returns:
this
-
vendorID
ReturnsvendorID
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
vendorID
at the given index
-
vendorID
public int vendorID()ReturnsvendorID
.- Returns:
vendorID
-
vendorID
SetsvendorID
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
vendorID
SetsvendorID
with the given value.- Parameters:
value
- the value- Returns:
this
-
deviceID
ReturnsdeviceID
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
deviceID
at the given index
-
deviceID
public int deviceID()ReturnsdeviceID
.- Returns:
deviceID
-
deviceID
SetsdeviceID
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
deviceID
SetsdeviceID
with the given value.- Parameters:
value
- the value- Returns:
this
-
deviceType
ReturnsdeviceType
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
deviceType
at the given index
-
deviceType
public int deviceType()ReturnsdeviceType
.- Returns:
deviceType
-
deviceType
SetsdeviceType
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
deviceType
SetsdeviceType
with the given value.- Parameters:
value
- the value- Returns:
this
-
deviceName
ReturnsdeviceName
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
deviceName
at the given index
-
deviceName
ReturnsdeviceName
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct bufferindex0
- the Index 0 of the array- Returns:
deviceName
at the given index
-
deviceName
-
deviceName
public byte deviceName(long index0) ReturnsdeviceName
.- Parameters:
index0
- the Index 0 of the array- Returns:
deviceName
-
deviceName
SetsdeviceName
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
deviceName
SetsdeviceName
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct bufferindex0
- the Index 0 of the arrayvalue
- the value
-
deviceName
SetsdeviceName
with the given value.- Parameters:
value
- the value- Returns:
this
-
deviceName
SetsdeviceName
with the given value.- Parameters:
index0
- the Index 0 of the arrayvalue
- the value- Returns:
this
-
pipelineCacheUUID
ReturnspipelineCacheUUID
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
pipelineCacheUUID
at the given index
-
pipelineCacheUUID
ReturnspipelineCacheUUID
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct bufferindex0
- the Index 0 of the array- Returns:
pipelineCacheUUID
at the given index
-
pipelineCacheUUID
-
pipelineCacheUUID
public byte pipelineCacheUUID(long index0) ReturnspipelineCacheUUID
.- Parameters:
index0
- the Index 0 of the array- Returns:
pipelineCacheUUID
-
pipelineCacheUUID
SetspipelineCacheUUID
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
pipelineCacheUUID
SetspipelineCacheUUID
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct bufferindex0
- the Index 0 of the arrayvalue
- the value
-
pipelineCacheUUID
SetspipelineCacheUUID
with the given value.- Parameters:
value
- the value- Returns:
this
-
pipelineCacheUUID
SetspipelineCacheUUID
with the given value.- Parameters:
index0
- the Index 0 of the arrayvalue
- the value- Returns:
this
-
limits
Returnslimits
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
limits
at the given index
-
limits
-
limits
Setslimits
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
limits
Setslimits
with the given value.- Parameters:
value
- the value- Returns:
this
-
sparseProperties
ReturnssparseProperties
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
sparseProperties
at the given index
-
sparseProperties
-
sparseProperties
SetssparseProperties
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
sparseProperties
SetssparseProperties
with the given value.- Parameters:
value
- the value- Returns:
this
-