Class VkMicromapUsageEXT.Buffer
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.ext.struct.VkMicromapUsageEXT
overrungl.vulkan.ext.struct.VkMicromapUsageEXT.Buffer
- All Implemented Interfaces:
Addressable
- Enclosing class:
VkMicromapUsageEXT
A buffer of
VkMicromapUsageEXT
.-
Nested Class Summary
Nested classes/interfaces inherited from class overrungl.vulkan.ext.struct.VkMicromapUsageEXT
VkMicromapUsageEXT.Buffer
-
Field Summary
Fields inherited from class overrungl.vulkan.ext.struct.VkMicromapUsageEXT
LAYOUT, LAYOUT_count, LAYOUT_format, LAYOUT_subdivisionLevel, OFFSET_count, OFFSET_format, OFFSET_subdivisionLevel, VH_count, VH_format, VH_subdivisionLevel
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(MemorySegment segment, long elementCount) CreatesVkMicromapUsageEXT.Buffer
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionasSlice
(long index) Creates a slice ofVkMicromapUsageEXT
.asSlice
(long index, long count) Creates a slice ofVkMicromapUsageEXT
.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.int
formatAt
(long index) Returnsformat
at the given index.formatAt
(long index, int value) Setsformat
with the given value at the given index.int
subdivisionLevelAt
(long index) ReturnssubdivisionLevel
at the given index.subdivisionLevelAt
(long index, int value) SetssubdivisionLevel
with the given value at the given index.Methods inherited from class overrungl.vulkan.ext.struct.VkMicromapUsageEXT
alloc, alloc, asBuffer, copyFrom, count, count, count, count, format, format, format, format, of, ofNative, ofNative, subdivisionLevel, subdivisionLevel, subdivisionLevel, subdivisionLevel
Methods inherited from class overrungl.struct.GroupType
estimateCount, groupLayout, segment
-
Constructor Details
-
Buffer
CreatesVkMicromapUsageEXT.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 ofVkMicromapUsageEXT
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
VkMicromapUsageEXT
-
asSlice
Creates a slice ofVkMicromapUsageEXT
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
VkMicromapUsageEXT
-
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
-
subdivisionLevelAt
public int subdivisionLevelAt(long index) ReturnssubdivisionLevel
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
subdivisionLevel
at the given index
-
subdivisionLevelAt
SetssubdivisionLevel
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
formatAt
public int formatAt(long index) Returnsformat
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
format
at the given index
-
formatAt
Setsformat
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-