Class VkPhysicalDeviceProperties
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkPhysicalDeviceProperties
- All Implemented Interfaces:
Addressable
Represents VkPhysicalDeviceProperties.
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 StructLayoutThe struct layout ofVkPhysicalDeviceProperties.static final MemoryLayoutThe memory layout ofapiVersion.static final MemoryLayoutThe memory layout ofdeviceID.static final MemoryLayoutThe memory layout ofdeviceName.static final MemoryLayoutThe memory layout ofdeviceType.static final MemoryLayoutThe memory layout ofdriverVersion.static final MemoryLayoutThe memory layout oflimits.static final MemoryLayoutThe memory layout ofpipelineCacheUUID.static final MemoryLayoutThe memory layout ofsparseProperties.static final MemoryLayoutThe memory layout ofvendorID.static final longThe byte offset ofapiVersion.static final longThe byte offset ofdeviceID.static final longThe byte offset ofdeviceName.static final longThe byte offset ofdeviceType.static final longThe byte offset ofdriverVersion.static final longThe byte offset oflimits.static final longThe byte offset ofpipelineCacheUUID.static final longThe byte offset ofsparseProperties.static final longThe byte offset ofvendorID.static final VarHandlestatic final VarHandlestatic final VarHandleTheVarHandleofdeviceNameof type(MemorySegment base, long baseOffset, long index, long index0)MemorySegment.static final VarHandlestatic final VarHandleTheVarHandleofdriverVersionof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofpipelineCacheUUIDof type(MemorySegment base, long baseOffset, long index, long index0)MemorySegment.static final VarHandle -
Constructor Summary
ConstructorsConstructorDescriptionVkPhysicalDeviceProperties(MemorySegment segment, long elementCount) CreatesVkPhysicalDevicePropertieswith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkPhysicalDevicePropertiesalloc(SegmentAllocator allocator) Allocates aVkPhysicalDevicePropertieswith the given segment allocator.static VkPhysicalDevicePropertiesalloc(SegmentAllocator allocator, long count) Allocates aVkPhysicalDevicePropertieswith the given segment allocator and count.intReturnsapiVersion.apiVersion(int value) SetsapiVersionwith the given value.static intapiVersion(MemorySegment segment, long index) ReturnsapiVersionat the given index.static voidapiVersion(MemorySegment segment, long index, int value) SetsapiVersionwith the given value at the given index.intapiVersionAt(long index) ReturnsapiVersionat the given index.apiVersionAt(long index, int value) SetsapiVersionwith 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) VisitsVkPhysicalDevicePropertiesbuffer at the given index.Copies from the given source.intdeviceID()ReturnsdeviceID.deviceID(int value) SetsdeviceIDwith the given value.static intdeviceID(MemorySegment segment, long index) ReturnsdeviceIDat the given index.static voiddeviceID(MemorySegment segment, long index, int value) SetsdeviceIDwith the given value at the given index.intdeviceIDAt(long index) ReturnsdeviceIDat the given index.deviceIDAt(long index, int value) SetsdeviceIDwith the given value at the given index.ReturnsdeviceName.bytedeviceName(long index0) ReturnsdeviceName.deviceName(long index0, byte value) SetsdeviceNamewith the given value.deviceName(MemorySegment value) SetsdeviceNamewith the given value.static MemorySegmentdeviceName(MemorySegment segment, long index) ReturnsdeviceNameat the given index.static bytedeviceName(MemorySegment segment, long index, long index0) ReturnsdeviceNameat the given index.static voiddeviceName(MemorySegment segment, long index, long index0, byte value) SetsdeviceNamewith the given value at the given index.static voiddeviceName(MemorySegment segment, long index, MemorySegment value) SetsdeviceNamewith the given value at the given index.deviceNameAt(long index) ReturnsdeviceNameat the given index.bytedeviceNameAt(long index, long index0) ReturnsdeviceNameat the given index.deviceNameAt(long index, long index0, byte value) SetsdeviceNamewith the given value at the given index.deviceNameAt(long index, MemorySegment value) SetsdeviceNamewith the given value at the given index.intReturnsdeviceType.deviceType(int value) SetsdeviceTypewith the given value.static intdeviceType(MemorySegment segment, long index) ReturnsdeviceTypeat the given index.static voiddeviceType(MemorySegment segment, long index, int value) SetsdeviceTypewith the given value at the given index.intdeviceTypeAt(long index) ReturnsdeviceTypeat the given index.deviceTypeAt(long index, int value) SetsdeviceTypewith the given value at the given index.intReturnsdriverVersion.driverVersion(int value) SetsdriverVersionwith the given value.static intdriverVersion(MemorySegment segment, long index) ReturnsdriverVersionat the given index.static voiddriverVersion(MemorySegment segment, long index, int value) SetsdriverVersionwith the given value at the given index.intdriverVersionAt(long index) ReturnsdriverVersionat the given index.driverVersionAt(long index, int value) SetsdriverVersionwith the given value at the given index.limits()Returnslimits.limits(MemorySegment value) Setslimitswith the given value.static MemorySegmentlimits(MemorySegment segment, long index) Returnslimitsat the given index.static voidlimits(MemorySegment segment, long index, MemorySegment value) Setslimitswith the given value at the given index.limits(Consumer<VkPhysicalDeviceLimits> func) Acceptslimitswith the given function.limitsAt(long index) Returnslimitsat the given index.limitsAt(long index, MemorySegment value) Setslimitswith the given value at the given index.limitsAt(long index, Consumer<VkPhysicalDeviceLimits> func) Acceptslimitswith the given function.static VkPhysicalDevicePropertiesof(MemorySegment segment) CreatesVkPhysicalDevicePropertieswith the given segment.static VkPhysicalDevicePropertiesofNative(MemorySegment segment) CreatesVkPhysicalDevicePropertieswith the given segment.static VkPhysicalDevicePropertiesofNative(MemorySegment segment, long count) CreatesVkPhysicalDevicePropertieswith the given segment.ReturnspipelineCacheUUID.bytepipelineCacheUUID(long index0) ReturnspipelineCacheUUID.pipelineCacheUUID(long index0, byte value) SetspipelineCacheUUIDwith the given value.pipelineCacheUUID(MemorySegment value) SetspipelineCacheUUIDwith the given value.static MemorySegmentpipelineCacheUUID(MemorySegment segment, long index) ReturnspipelineCacheUUIDat the given index.static bytepipelineCacheUUID(MemorySegment segment, long index, long index0) ReturnspipelineCacheUUIDat the given index.static voidpipelineCacheUUID(MemorySegment segment, long index, long index0, byte value) SetspipelineCacheUUIDwith the given value at the given index.static voidpipelineCacheUUID(MemorySegment segment, long index, MemorySegment value) SetspipelineCacheUUIDwith the given value at the given index.pipelineCacheUUIDAt(long index) ReturnspipelineCacheUUIDat the given index.bytepipelineCacheUUIDAt(long index, long index0) ReturnspipelineCacheUUIDat the given index.pipelineCacheUUIDAt(long index, long index0, byte value) SetspipelineCacheUUIDwith the given value at the given index.pipelineCacheUUIDAt(long index, MemorySegment value) SetspipelineCacheUUIDwith the given value at the given index.reinterpret(long count) Reinterprets this buffer with the given count.ReturnssparseProperties.sparseProperties(MemorySegment value) SetssparsePropertieswith the given value.static MemorySegmentsparseProperties(MemorySegment segment, long index) ReturnssparsePropertiesat the given index.static voidsparseProperties(MemorySegment segment, long index, MemorySegment value) SetssparsePropertieswith the given value at the given index.AcceptssparsePropertieswith the given function.sparsePropertiesAt(long index) ReturnssparsePropertiesat the given index.sparsePropertiesAt(long index, MemorySegment value) SetssparsePropertieswith the given value at the given index.sparsePropertiesAt(long index, Consumer<VkPhysicalDeviceSparseProperties> func) AcceptssparsePropertieswith the given function.intvendorID()ReturnsvendorID.vendorID(int value) SetsvendorIDwith the given value.static intvendorID(MemorySegment segment, long index) ReturnsvendorIDat the given index.static voidvendorID(MemorySegment segment, long index, int value) SetsvendorIDwith the given value at the given index.intvendorIDAt(long index) ReturnsvendorIDat the given index.vendorIDAt(long index, int value) SetsvendorIDwith the given value at the given index.Methods inherited from class 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
CreatesVkPhysicalDevicePropertieswith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkPhysicalDevicePropertieswith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkPhysicalDevicePropertieswith the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkPhysicalDevicePropertieswith the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment- the memory segmentcount- the count of the buffer- Returns:
- the created instance or
nullif the segment isNULL
-
alloc
Allocates aVkPhysicalDevicePropertieswith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkPhysicalDeviceProperties
-
alloc
Allocates aVkPhysicalDevicePropertieswith 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
ReturnsapiVersionat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
apiVersionat the given index
-
apiVersion
public int apiVersion()ReturnsapiVersion.- Returns:
apiVersion
-
apiVersion
SetsapiVersionwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
apiVersion
SetsapiVersionwith the given value.- Parameters:
value- the value- Returns:
this
-
driverVersion
ReturnsdriverVersionat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
driverVersionat the given index
-
driverVersion
public int driverVersion()ReturnsdriverVersion.- Returns:
driverVersion
-
driverVersion
SetsdriverVersionwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
driverVersion
SetsdriverVersionwith the given value.- Parameters:
value- the value- Returns:
this
-
vendorID
ReturnsvendorIDat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
vendorIDat the given index
-
vendorID
public int vendorID()ReturnsvendorID.- Returns:
vendorID
-
vendorID
SetsvendorIDwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
vendorID
SetsvendorIDwith the given value.- Parameters:
value- the value- Returns:
this
-
deviceID
ReturnsdeviceIDat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
deviceIDat the given index
-
deviceID
public int deviceID()ReturnsdeviceID.- Returns:
deviceID
-
deviceID
SetsdeviceIDwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
deviceID
SetsdeviceIDwith the given value.- Parameters:
value- the value- Returns:
this
-
deviceType
ReturnsdeviceTypeat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
deviceTypeat the given index
-
deviceType
public int deviceType()ReturnsdeviceType.- Returns:
deviceType
-
deviceType
SetsdeviceTypewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
deviceType
SetsdeviceTypewith the given value.- Parameters:
value- the value- Returns:
this
-
deviceName
ReturnsdeviceNameat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
deviceNameat the given index
-
deviceName
ReturnsdeviceNameat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct bufferindex0- the Index 0 of the array- Returns:
deviceNameat the given index
-
deviceName
-
deviceName
public byte deviceName(long index0) ReturnsdeviceName.- Parameters:
index0- the Index 0 of the array- Returns:
deviceName
-
deviceName
SetsdeviceNamewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
deviceName
SetsdeviceNamewith 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
SetsdeviceNamewith the given value.- Parameters:
value- the value- Returns:
this
-
deviceName
SetsdeviceNamewith the given value.- Parameters:
index0- the Index 0 of the arrayvalue- the value- Returns:
this
-
pipelineCacheUUID
ReturnspipelineCacheUUIDat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
pipelineCacheUUIDat the given index
-
pipelineCacheUUID
ReturnspipelineCacheUUIDat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct bufferindex0- the Index 0 of the array- Returns:
pipelineCacheUUIDat the given index
-
pipelineCacheUUID
-
pipelineCacheUUID
public byte pipelineCacheUUID(long index0) ReturnspipelineCacheUUID.- Parameters:
index0- the Index 0 of the array- Returns:
pipelineCacheUUID
-
pipelineCacheUUID
SetspipelineCacheUUIDwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
pipelineCacheUUID
SetspipelineCacheUUIDwith 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
SetspipelineCacheUUIDwith the given value.- Parameters:
value- the value- Returns:
this
-
pipelineCacheUUID
SetspipelineCacheUUIDwith the given value.- Parameters:
index0- the Index 0 of the arrayvalue- the value- Returns:
this
-
limits
Returnslimitsat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
limitsat the given index
-
limits
-
limits
Setslimitswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
limits
Setslimitswith the given value.- Parameters:
value- the value- Returns:
this
-
limits
Acceptslimitswith the given function.- Parameters:
func- the function- Returns:
this
-
sparseProperties
ReturnssparsePropertiesat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
sparsePropertiesat the given index
-
sparseProperties
-
sparseProperties
SetssparsePropertieswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
sparseProperties
SetssparsePropertieswith the given value.- Parameters:
value- the value- Returns:
this
-
sparseProperties
AcceptssparsePropertieswith 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
VisitsVkPhysicalDevicePropertiesbuffer 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) ReturnsapiVersionat the given index.- Parameters:
index- the index of the struct buffer- Returns:
apiVersionat the given index
-
apiVersionAt
SetsapiVersionwith 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) ReturnsdriverVersionat the given index.- Parameters:
index- the index of the struct buffer- Returns:
driverVersionat the given index
-
driverVersionAt
SetsdriverVersionwith 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) ReturnsvendorIDat the given index.- Parameters:
index- the index of the struct buffer- Returns:
vendorIDat the given index
-
vendorIDAt
SetsvendorIDwith 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) ReturnsdeviceIDat the given index.- Parameters:
index- the index of the struct buffer- Returns:
deviceIDat the given index
-
deviceIDAt
SetsdeviceIDwith 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) ReturnsdeviceTypeat the given index.- Parameters:
index- the index of the struct buffer- Returns:
deviceTypeat the given index
-
deviceTypeAt
SetsdeviceTypewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
deviceNameAt
ReturnsdeviceNameat the given index.- Parameters:
index- the index of the struct buffer- Returns:
deviceNameat the given index
-
deviceNameAt
public byte deviceNameAt(long index, long index0) ReturnsdeviceNameat the given index.- Parameters:
index- the index of the struct bufferindex0- the Index 0 of the array- Returns:
deviceNameat the given index
-
deviceNameAt
SetsdeviceNamewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
deviceNameAt
SetsdeviceNamewith 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
ReturnspipelineCacheUUIDat the given index.- Parameters:
index- the index of the struct buffer- Returns:
pipelineCacheUUIDat the given index
-
pipelineCacheUUIDAt
public byte pipelineCacheUUIDAt(long index, long index0) ReturnspipelineCacheUUIDat the given index.- Parameters:
index- the index of the struct bufferindex0- the Index 0 of the array- Returns:
pipelineCacheUUIDat the given index
-
pipelineCacheUUIDAt
SetspipelineCacheUUIDwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
pipelineCacheUUIDAt
SetspipelineCacheUUIDwith 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
Returnslimitsat the given index.- Parameters:
index- the index of the struct buffer- Returns:
limitsat the given index
-
limitsAt
Setslimitswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
limitsAt
Acceptslimitswith the given function.- Parameters:
index- the index of the struct bufferfunc- the function- Returns:
this
-
sparsePropertiesAt
ReturnssparsePropertiesat the given index.- Parameters:
index- the index of the struct buffer- Returns:
sparsePropertiesat the given index
-
sparsePropertiesAt
SetssparsePropertieswith 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) AcceptssparsePropertieswith the given function.- Parameters:
index- the index of the struct bufferfunc- the function- Returns:
this
-