Class VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.android.struct.VkAndroidHardwareBufferFormatPropertiesANDROID
overrungl.vulkan.android.struct.VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer
- All Implemented Interfaces:
Addressable
- Enclosing class:
VkAndroidHardwareBufferFormatPropertiesANDROID
public static final class VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer
extends VkAndroidHardwareBufferFormatPropertiesANDROID
A buffer of
VkAndroidHardwareBufferFormatPropertiesANDROID
.-
Nested Class Summary
Nested classes/interfaces inherited from class overrungl.vulkan.android.struct.VkAndroidHardwareBufferFormatPropertiesANDROID
VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer
-
Field Summary
Fields inherited from class overrungl.vulkan.android.struct.VkAndroidHardwareBufferFormatPropertiesANDROID
LAYOUT, LAYOUT_externalFormat, LAYOUT_format, LAYOUT_formatFeatures, LAYOUT_pNext, LAYOUT_samplerYcbcrConversionComponents, LAYOUT_sType, LAYOUT_suggestedXChromaOffset, LAYOUT_suggestedYcbcrModel, LAYOUT_suggestedYcbcrRange, LAYOUT_suggestedYChromaOffset, OFFSET_externalFormat, OFFSET_format, OFFSET_formatFeatures, OFFSET_pNext, OFFSET_samplerYcbcrConversionComponents, OFFSET_sType, OFFSET_suggestedXChromaOffset, OFFSET_suggestedYcbcrModel, OFFSET_suggestedYcbcrRange, OFFSET_suggestedYChromaOffset, VH_externalFormat, VH_format, VH_formatFeatures, VH_pNext, VH_sType, VH_suggestedXChromaOffset, VH_suggestedYcbcrModel, VH_suggestedYcbcrRange, VH_suggestedYChromaOffset
-
Constructor Summary
ConstructorsConstructorDescriptionBuffer
(MemorySegment segment, long elementCount) CreatesVkAndroidHardwareBufferFormatPropertiesANDROID.Buffer
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionasSlice
(long index) Creates a slice ofVkAndroidHardwareBufferFormatPropertiesANDROID
.asSlice
(long index, long count) Creates a slice ofVkAndroidHardwareBufferFormatPropertiesANDROID
.long
Estimates the element count of this group type buffer.long
externalFormatAt
(long index) ReturnsexternalFormat
at the given index.externalFormatAt
(long index, long value) SetsexternalFormat
with the given value at the given index.int
formatAt
(long index) Returnsformat
at the given index.formatAt
(long index, int value) Setsformat
with the given value at the given index.int
formatFeaturesAt
(long index) ReturnsformatFeatures
at the given index.formatFeaturesAt
(long index, int value) SetsformatFeatures
with the given value at the given index.pNextAt
(long index) ReturnspNext
at the given index.pNextAt
(long index, MemorySegment value) SetspNext
with the given value at the given index.samplerYcbcrConversionComponentsAt
(long index) ReturnssamplerYcbcrConversionComponents
at the given index.samplerYcbcrConversionComponentsAt
(long index, MemorySegment value) SetssamplerYcbcrConversionComponents
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.int
suggestedXChromaOffsetAt
(long index) ReturnssuggestedXChromaOffset
at the given index.suggestedXChromaOffsetAt
(long index, int value) SetssuggestedXChromaOffset
with the given value at the given index.int
suggestedYcbcrModelAt
(long index) ReturnssuggestedYcbcrModel
at the given index.suggestedYcbcrModelAt
(long index, int value) SetssuggestedYcbcrModel
with the given value at the given index.int
suggestedYcbcrRangeAt
(long index) ReturnssuggestedYcbcrRange
at the given index.suggestedYcbcrRangeAt
(long index, int value) SetssuggestedYcbcrRange
with the given value at the given index.int
suggestedYChromaOffsetAt
(long index) ReturnssuggestedYChromaOffset
at the given index.suggestedYChromaOffsetAt
(long index, int value) SetssuggestedYChromaOffset
with the given value at the given index.Methods inherited from class overrungl.vulkan.android.struct.VkAndroidHardwareBufferFormatPropertiesANDROID
alloc, alloc, asBuffer, copyFrom, externalFormat, externalFormat, externalFormat, externalFormat, format, format, format, format, formatFeatures, formatFeatures, formatFeatures, formatFeatures, of, ofNative, ofNative, pNext, pNext, pNext, pNext, samplerYcbcrConversionComponents, samplerYcbcrConversionComponents, samplerYcbcrConversionComponents, samplerYcbcrConversionComponents, sType, sType, sType, sType, suggestedXChromaOffset, suggestedXChromaOffset, suggestedXChromaOffset, suggestedXChromaOffset, suggestedYcbcrModel, suggestedYcbcrModel, suggestedYcbcrModel, suggestedYcbcrModel, suggestedYcbcrRange, suggestedYcbcrRange, suggestedYcbcrRange, suggestedYcbcrRange, suggestedYChromaOffset, suggestedYChromaOffset, suggestedYChromaOffset, suggestedYChromaOffset
Methods inherited from class overrungl.struct.GroupType
estimateCount, groupLayout, segment
-
Constructor Details
-
Buffer
CreatesVkAndroidHardwareBufferFormatPropertiesANDROID.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 ofVkAndroidHardwareBufferFormatPropertiesANDROID
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
VkAndroidHardwareBufferFormatPropertiesANDROID
-
asSlice
Creates a slice ofVkAndroidHardwareBufferFormatPropertiesANDROID
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
VkAndroidHardwareBufferFormatPropertiesANDROID
-
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
public VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer pNextAt(long index, MemorySegment value) SetspNext
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
-
externalFormatAt
public long externalFormatAt(long index) ReturnsexternalFormat
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
externalFormat
at the given index
-
externalFormatAt
public VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer externalFormatAt(long index, long value) SetsexternalFormat
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
formatFeaturesAt
public int formatFeaturesAt(long index) ReturnsformatFeatures
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
formatFeatures
at the given index
-
formatFeaturesAt
public VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer formatFeaturesAt(long index, int value) SetsformatFeatures
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
samplerYcbcrConversionComponentsAt
ReturnssamplerYcbcrConversionComponents
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
samplerYcbcrConversionComponents
at the given index
-
samplerYcbcrConversionComponentsAt
public VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer samplerYcbcrConversionComponentsAt(long index, MemorySegment value) SetssamplerYcbcrConversionComponents
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
suggestedYcbcrModelAt
public int suggestedYcbcrModelAt(long index) ReturnssuggestedYcbcrModel
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
suggestedYcbcrModel
at the given index
-
suggestedYcbcrModelAt
public VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer suggestedYcbcrModelAt(long index, int value) SetssuggestedYcbcrModel
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
suggestedYcbcrRangeAt
public int suggestedYcbcrRangeAt(long index) ReturnssuggestedYcbcrRange
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
suggestedYcbcrRange
at the given index
-
suggestedYcbcrRangeAt
public VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer suggestedYcbcrRangeAt(long index, int value) SetssuggestedYcbcrRange
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
suggestedXChromaOffsetAt
public int suggestedXChromaOffsetAt(long index) ReturnssuggestedXChromaOffset
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
suggestedXChromaOffset
at the given index
-
suggestedXChromaOffsetAt
public VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer suggestedXChromaOffsetAt(long index, int value) SetssuggestedXChromaOffset
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
suggestedYChromaOffsetAt
public int suggestedYChromaOffsetAt(long index) ReturnssuggestedYChromaOffset
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
suggestedYChromaOffset
at the given index
-
suggestedYChromaOffsetAt
public VkAndroidHardwareBufferFormatPropertiesANDROID.Buffer suggestedYChromaOffsetAt(long index, int value) SetssuggestedYChromaOffset
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-