Class VkPhysicalDeviceProperties
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkPhysicalDeviceProperties
- All Implemented Interfaces:
Addressable
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;
};
-
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, long elementCount) CreatesVkPhysicalDeviceProperties
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkPhysicalDeviceProperties
alloc
(SegmentAllocator allocator) Allocates aVkPhysicalDeviceProperties
with the given segment allocator.static VkPhysicalDeviceProperties
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.int
apiVersionAt
(long index) ReturnsapiVersion
at the given index.apiVersionAt
(long index, int value) SetsapiVersion
with the given value at the given index.asSlice
(long index) Creates a slice ofVkPhysicalDeviceProperties
.asSlice
(long index, long count) Creates a slice ofVkPhysicalDeviceProperties
.at
(long index, Consumer<VkPhysicalDeviceProperties> func) VisitsVkPhysicalDeviceProperties
buffer at the given index.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.int
deviceIDAt
(long index) ReturnsdeviceID
at the given index.deviceIDAt
(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.deviceNameAt
(long index) ReturnsdeviceName
at the given index.byte
deviceNameAt
(long index, long index0) ReturnsdeviceName
at the given index.deviceNameAt
(long index, long index0, byte value) SetsdeviceName
with the given value at the given index.deviceNameAt
(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
deviceTypeAt
(long index) ReturnsdeviceType
at the given index.deviceTypeAt
(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.int
driverVersionAt
(long index) ReturnsdriverVersion
at the given index.driverVersionAt
(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.limits
(Consumer<VkPhysicalDeviceLimits> func) Acceptslimits
with the given function.limitsAt
(long index) Returnslimits
at the given index.limitsAt
(long index, MemorySegment value) Setslimits
with the given value at the given index.limitsAt
(long index, Consumer<VkPhysicalDeviceLimits> func) Acceptslimits
with the given function.static VkPhysicalDeviceProperties
of
(MemorySegment segment) CreatesVkPhysicalDeviceProperties
with the given segment.static VkPhysicalDeviceProperties
ofNative
(MemorySegment segment) CreatesVkPhysicalDeviceProperties
with the given segment.static VkPhysicalDeviceProperties
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.pipelineCacheUUIDAt
(long index) ReturnspipelineCacheUUID
at the given index.byte
pipelineCacheUUIDAt
(long index, long index0) ReturnspipelineCacheUUID
at the given index.pipelineCacheUUIDAt
(long index, long index0, byte value) SetspipelineCacheUUID
with the given value at the given index.pipelineCacheUUIDAt
(long index, MemorySegment value) SetspipelineCacheUUID
with the given value at the given index.reinterpret
(long count) Reinterprets this buffer with the given count.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.AcceptssparseProperties
with the given function.sparsePropertiesAt
(long index) ReturnssparseProperties
at the given index.sparsePropertiesAt
(long index, MemorySegment value) SetssparseProperties
with the given value at the given index.sparsePropertiesAt
(long index, Consumer<VkPhysicalDeviceSparseProperties> func) AcceptssparseProperties
with the given function.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.int
vendorIDAt
(long index) ReturnsvendorID
at the given index.vendorIDAt
(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 segmentelementCount
- the element count of this struct buffer
-
-
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
-
reinterpret
Reinterprets this buffer with the given count.- Parameters:
count
- the new count- Returns:
- the reinterpreted 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
-
limits
Acceptslimits
with the given function.- Parameters:
func
- the function- 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
-
sparseProperties
AcceptssparseProperties
with the given function.- Parameters:
func
- the function- Returns:
this
-
asSlice
Creates a slice ofVkPhysicalDeviceProperties
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
VkPhysicalDeviceProperties
-
asSlice
Creates a slice ofVkPhysicalDeviceProperties
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
VkPhysicalDeviceProperties
-
at
VisitsVkPhysicalDeviceProperties
buffer at the given index.- Parameters:
index
- the index of this bufferfunc
- the function to run with the slice of this buffer- Returns:
this
-
apiVersionAt
public int apiVersionAt(long index) ReturnsapiVersion
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
apiVersion
at the given index
-
apiVersionAt
SetsapiVersion
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
driverVersionAt
public int driverVersionAt(long index) ReturnsdriverVersion
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
driverVersion
at the given index
-
driverVersionAt
SetsdriverVersion
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
vendorIDAt
public int vendorIDAt(long index) ReturnsvendorID
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
vendorID
at the given index
-
vendorIDAt
SetsvendorID
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
deviceIDAt
public int deviceIDAt(long index) ReturnsdeviceID
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
deviceID
at the given index
-
deviceIDAt
SetsdeviceID
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
deviceTypeAt
public int deviceTypeAt(long index) ReturnsdeviceType
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
deviceType
at the given index
-
deviceTypeAt
SetsdeviceType
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
deviceNameAt
ReturnsdeviceName
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
deviceName
at the given index
-
deviceNameAt
public byte deviceNameAt(long index, long index0) ReturnsdeviceName
at the given index.- Parameters:
index
- the index of the struct bufferindex0
- the Index 0 of the array- Returns:
deviceName
at the given index
-
deviceNameAt
SetsdeviceName
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
deviceNameAt
SetsdeviceName
with the given value at the given index.- Parameters:
index
- the index of the struct bufferindex0
- the Index 0 of the arrayvalue
- the value- Returns:
this
-
pipelineCacheUUIDAt
ReturnspipelineCacheUUID
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
pipelineCacheUUID
at the given index
-
pipelineCacheUUIDAt
public byte pipelineCacheUUIDAt(long index, long index0) ReturnspipelineCacheUUID
at the given index.- Parameters:
index
- the index of the struct bufferindex0
- the Index 0 of the array- Returns:
pipelineCacheUUID
at the given index
-
pipelineCacheUUIDAt
SetspipelineCacheUUID
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
pipelineCacheUUIDAt
SetspipelineCacheUUID
with the given value at the given index.- Parameters:
index
- the index of the struct bufferindex0
- the Index 0 of the arrayvalue
- the value- Returns:
this
-
limitsAt
Returnslimits
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
limits
at the given index
-
limitsAt
Setslimits
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
limitsAt
Acceptslimits
with the given function.- Parameters:
index
- the index of the struct bufferfunc
- the function- Returns:
this
-
sparsePropertiesAt
ReturnssparseProperties
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
sparseProperties
at the given index
-
sparsePropertiesAt
SetssparseProperties
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
sparsePropertiesAt
public VkPhysicalDeviceProperties sparsePropertiesAt(long index, Consumer<VkPhysicalDeviceSparseProperties> func) AcceptssparseProperties
with the given function.- Parameters:
index
- the index of the struct bufferfunc
- the function- Returns:
this
-