Class VkIndirectCommandsStreamNV.Buffer
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.nv.struct.VkIndirectCommandsStreamNV
overrungl.vulkan.nv.struct.VkIndirectCommandsStreamNV.Buffer
- All Implemented Interfaces:
Addressable
- Enclosing class:
VkIndirectCommandsStreamNV
A buffer of
VkIndirectCommandsStreamNV
.-
Nested Class Summary
Nested classes/interfaces inherited from class overrungl.vulkan.nv.struct.VkIndirectCommandsStreamNV
VkIndirectCommandsStreamNV.Buffer
-
Field Summary
Fields inherited from class overrungl.vulkan.nv.struct.VkIndirectCommandsStreamNV
LAYOUT, LAYOUT_buffer, LAYOUT_offset, OFFSET_buffer, OFFSET_offset, VH_buffer, VH_offset
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(MemorySegment segment, long elementCount) CreatesVkIndirectCommandsStreamNV.Buffer
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionasSlice
(long index) Creates a slice ofVkIndirectCommandsStreamNV
.asSlice
(long index, long count) Creates a slice ofVkIndirectCommandsStreamNV
.long
bufferAt
(long index) Returnsbuffer
at the given index.bufferAt
(long index, long value) Setsbuffer
with the given value at the given index.long
Estimates the element count of this group type buffer.long
offsetAt
(long index) Returnsoffset
at the given index.offsetAt
(long index, long value) Setsoffset
with the given value at the given index.Methods inherited from class overrungl.vulkan.nv.struct.VkIndirectCommandsStreamNV
alloc, alloc, asBuffer, buffer, buffer, buffer, buffer, copyFrom, of, offset, offset, offset, offset, ofNative, ofNative
Methods inherited from class overrungl.struct.GroupType
estimateCount, groupLayout, segment
-
Constructor Details
-
Buffer
CreatesVkIndirectCommandsStreamNV.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 ofVkIndirectCommandsStreamNV
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
VkIndirectCommandsStreamNV
-
asSlice
Creates a slice ofVkIndirectCommandsStreamNV
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
VkIndirectCommandsStreamNV
-
bufferAt
public long bufferAt(long index) Returnsbuffer
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
buffer
at the given index
-
bufferAt
Setsbuffer
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
offsetAt
public long offsetAt(long index) Returnsoffset
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
offset
at the given index
-
offsetAt
Setsoffset
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-