Class VkAndroidHardwareBufferUsageANDROID.Buffer
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.android.struct.VkAndroidHardwareBufferUsageANDROID
overrungl.vulkan.android.struct.VkAndroidHardwareBufferUsageANDROID.Buffer
- All Implemented Interfaces:
Addressable
- Enclosing class:
VkAndroidHardwareBufferUsageANDROID
public static final class VkAndroidHardwareBufferUsageANDROID.Buffer
extends VkAndroidHardwareBufferUsageANDROID
A buffer of
VkAndroidHardwareBufferUsageANDROID
.-
Nested Class Summary
Nested classes/interfaces inherited from class overrungl.vulkan.android.struct.VkAndroidHardwareBufferUsageANDROID
VkAndroidHardwareBufferUsageANDROID.Buffer
-
Field Summary
Fields inherited from class overrungl.vulkan.android.struct.VkAndroidHardwareBufferUsageANDROID
LAYOUT, LAYOUT_androidHardwareBufferUsage, LAYOUT_pNext, LAYOUT_sType, OFFSET_androidHardwareBufferUsage, OFFSET_pNext, OFFSET_sType, VH_androidHardwareBufferUsage, VH_pNext, VH_sType
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(MemorySegment segment, long elementCount) CreatesVkAndroidHardwareBufferUsageANDROID.Buffer
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionlong
androidHardwareBufferUsageAt
(long index) ReturnsandroidHardwareBufferUsage
at the given index.androidHardwareBufferUsageAt
(long index, long value) SetsandroidHardwareBufferUsage
with the given value at the given index.asSlice
(long index) Creates a slice ofVkAndroidHardwareBufferUsageANDROID
.asSlice
(long index, long count) Creates a slice ofVkAndroidHardwareBufferUsageANDROID
.long
Estimates the element count of this group type buffer.pNextAt
(long index) ReturnspNext
at the given index.pNextAt
(long index, MemorySegment value) SetspNext
with the given value at the given index.int
sTypeAt
(long index) ReturnssType
at the given index.sTypeAt
(long index, int value) SetssType
with the given value at the given index.Methods inherited from class overrungl.vulkan.android.struct.VkAndroidHardwareBufferUsageANDROID
alloc, alloc, androidHardwareBufferUsage, androidHardwareBufferUsage, androidHardwareBufferUsage, androidHardwareBufferUsage, asBuffer, copyFrom, of, ofNative, ofNative, pNext, pNext, pNext, pNext, sType, sType, sType, sType
Methods inherited from class overrungl.struct.GroupType
estimateCount, groupLayout, segment
-
Constructor Details
-
Buffer
CreatesVkAndroidHardwareBufferUsageANDROID.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 ofVkAndroidHardwareBufferUsageANDROID
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
VkAndroidHardwareBufferUsageANDROID
-
asSlice
Creates a slice ofVkAndroidHardwareBufferUsageANDROID
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
VkAndroidHardwareBufferUsageANDROID
-
sTypeAt
public int sTypeAt(long index) ReturnssType
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
sType
at the given index
-
sTypeAt
SetssType
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
pNextAt
ReturnspNext
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
pNext
at the given index
-
pNextAt
SetspNext
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
androidHardwareBufferUsageAt
public long androidHardwareBufferUsageAt(long index) ReturnsandroidHardwareBufferUsage
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
androidHardwareBufferUsage
at the given index
-
androidHardwareBufferUsageAt
public VkAndroidHardwareBufferUsageANDROID.Buffer androidHardwareBufferUsageAt(long index, long value) SetsandroidHardwareBufferUsage
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-