Class VkDeviceOrHostAddressConstAMDX.Buffer
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.amdx.union.VkDeviceOrHostAddressConstAMDX
overrungl.vulkan.amdx.union.VkDeviceOrHostAddressConstAMDX.Buffer
- All Implemented Interfaces:
Addressable
- Enclosing class:
VkDeviceOrHostAddressConstAMDX
public static final class VkDeviceOrHostAddressConstAMDX.Buffer
extends VkDeviceOrHostAddressConstAMDX
A buffer of
VkDeviceOrHostAddressConstAMDX
.-
Nested Class Summary
Nested classes/interfaces inherited from class overrungl.vulkan.amdx.union.VkDeviceOrHostAddressConstAMDX
VkDeviceOrHostAddressConstAMDX.Buffer
-
Field Summary
Fields inherited from class overrungl.vulkan.amdx.union.VkDeviceOrHostAddressConstAMDX
LAYOUT, LAYOUT_deviceAddress, LAYOUT_hostAddress, OFFSET_deviceAddress, OFFSET_hostAddress, VH_deviceAddress, VH_hostAddress
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(MemorySegment segment, long elementCount) CreatesVkDeviceOrHostAddressConstAMDX.Buffer
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionasSlice
(long index) Creates a slice ofVkDeviceOrHostAddressConstAMDX
.asSlice
(long index, long count) Creates a slice ofVkDeviceOrHostAddressConstAMDX
.long
deviceAddressAt
(long index) ReturnsdeviceAddress
at the given index.deviceAddressAt
(long index, long value) SetsdeviceAddress
with the given value at the given index.long
Estimates the element count of this group type buffer.hostAddressAt
(long index) ReturnshostAddress
at the given index.hostAddressAt
(long index, MemorySegment value) SetshostAddress
with the given value at the given index.Methods inherited from class overrungl.vulkan.amdx.union.VkDeviceOrHostAddressConstAMDX
alloc, alloc, asBuffer, copyFrom, deviceAddress, deviceAddress, deviceAddress, deviceAddress, hostAddress, hostAddress, hostAddress, hostAddress, of, ofNative, ofNative
Methods inherited from class overrungl.struct.GroupType
estimateCount, groupLayout, segment
-
Constructor Details
-
Buffer
CreatesVkDeviceOrHostAddressConstAMDX.Buffer
with the given segment.- Parameters:
segment
- the memory segmentelementCount
- the element count
-
-
Method Details
-
estimateCount
public long estimateCount()Description copied from class:GroupType
Estimates the element count of this group type buffer.- Overrides:
estimateCount
in classGroupType
- Returns:
- the estimated element count of the group type buffer
-
asSlice
Creates a slice ofVkDeviceOrHostAddressConstAMDX
.- Parameters:
index
- the index of the union buffer- Returns:
- the slice of
VkDeviceOrHostAddressConstAMDX
-
asSlice
Creates a slice ofVkDeviceOrHostAddressConstAMDX
.- Parameters:
index
- the index of the union buffercount
- the count- Returns:
- the slice of
VkDeviceOrHostAddressConstAMDX
-
deviceAddressAt
public long deviceAddressAt(long index) ReturnsdeviceAddress
at the given index.- Parameters:
index
- the index of the union buffer- Returns:
deviceAddress
at the given index
-
deviceAddressAt
SetsdeviceAddress
with the given value at the given index.- Parameters:
index
- the index of the union buffervalue
- the value- Returns:
this
-
hostAddressAt
ReturnshostAddress
at the given index.- Parameters:
index
- the index of the union buffer- Returns:
hostAddress
at the given index
-
hostAddressAt
SetshostAddress
with the given value at the given index.- Parameters:
index
- the index of the union buffervalue
- the value- Returns:
this
-