Class VkDispatchGraphCountInfoAMDX.Buffer
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.amdx.struct.VkDispatchGraphCountInfoAMDX
overrungl.vulkan.amdx.struct.VkDispatchGraphCountInfoAMDX.Buffer
- All Implemented Interfaces:
Addressable
- Enclosing class:
VkDispatchGraphCountInfoAMDX
A buffer of
VkDispatchGraphCountInfoAMDX
.-
Nested Class Summary
Nested classes/interfaces inherited from class overrungl.vulkan.amdx.struct.VkDispatchGraphCountInfoAMDX
VkDispatchGraphCountInfoAMDX.Buffer
-
Field Summary
Fields inherited from class overrungl.vulkan.amdx.struct.VkDispatchGraphCountInfoAMDX
LAYOUT, LAYOUT_count, LAYOUT_infos, LAYOUT_stride, OFFSET_count, OFFSET_infos, OFFSET_stride, VH_count, VH_stride
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(MemorySegment segment, long elementCount) CreatesVkDispatchGraphCountInfoAMDX.Buffer
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionasSlice
(long index) Creates a slice ofVkDispatchGraphCountInfoAMDX
.asSlice
(long index, long count) Creates a slice ofVkDispatchGraphCountInfoAMDX
.int
countAt
(long index) Returnscount
at the given index.countAt
(long index, int value) Setscount
with the given value at the given index.long
Estimates the element count of this group type buffer.infosAt
(long index) Returnsinfos
at the given index.infosAt
(long index, MemorySegment value) Setsinfos
with the given value at the given index.long
strideAt
(long index) Returnsstride
at the given index.strideAt
(long index, long value) Setsstride
with the given value at the given index.Methods inherited from class overrungl.vulkan.amdx.struct.VkDispatchGraphCountInfoAMDX
alloc, alloc, asBuffer, copyFrom, count, count, count, count, infos, infos, infos, infos, of, ofNative, ofNative, stride, stride, stride, stride
Methods inherited from class overrungl.struct.GroupType
estimateCount, groupLayout, segment
-
Constructor Details
-
Buffer
CreatesVkDispatchGraphCountInfoAMDX.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 ofVkDispatchGraphCountInfoAMDX
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
VkDispatchGraphCountInfoAMDX
-
asSlice
Creates a slice ofVkDispatchGraphCountInfoAMDX
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
VkDispatchGraphCountInfoAMDX
-
countAt
public int countAt(long index) Returnscount
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
count
at the given index
-
countAt
Setscount
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
infosAt
Returnsinfos
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
infos
at the given index
-
infosAt
Setsinfos
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
strideAt
public long strideAt(long index) Returnsstride
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
stride
at the given index
-
strideAt
Setsstride
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-