Structures
VkNativeBufferFormatPropertiesOHOS
Structure describing the image format properties of an Open Harmony OS native buffer
To obtain format properties of an Open Harmony OS native buffer, include a
VkNativeBufferFormatPropertiesOHOS structure in the pNext chain
of the VkNativeBufferPropertiesOHOS structure passed to
vkGetNativeBufferPropertiesOHOS.
The VkNativeBufferFormatPropertiesOHOS structure is defined as:
typedef struct VkNativeBufferFormatPropertiesOHOS {
VkStructureType sType;
void* pNext;
VkFormat format;
uint64_t externalFormat;
VkFormatFeatureFlags formatFeatures;
VkComponentMapping samplerYcbcrConversionComponents;
VkSamplerYcbcrModelConversion suggestedYcbcrModel;
VkSamplerYcbcrRange suggestedYcbcrRange;
VkChromaLocation suggestedXChromaOffset;
VkChromaLocation suggestedYChromaOffset;
} VkNativeBufferFormatPropertiesOHOS;
pub struct NativeBufferFormatPropertiesOHOS {
s_type: vk::StructureType,
p_next: *mut c_void,
format: vk::Format,
external_format: u64,
format_features: vk::FormatFeatureFlags,
sampler_ycbcr_conversion_components: vk::ComponentMapping,
suggested_ycbcr_model: vk::SamplerYcbcrModelConversion,
suggested_ycbcr_range: vk::SamplerYcbcrRange,
suggested_x_chroma_offset: vk::ChromaLocation,
suggested_y_chroma_offset: vk::ChromaLocation,
}
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.formatis the Vulkan format corresponding to the Open Harmony OS native buffer’s format, orVK_FORMAT_UNDEFINEDif there is not an equivalent Vulkan format.externalFormatis an implementation-defined external format identifier for use with VkExternalFormatOHOS.formatFeaturesdescribes the capabilities of this external format when used with an image bound to memory imported frombuffer.samplerYcbcrConversionComponentsrepresents a set of VkComponentSwizzle.suggestedYcbcrModelrepresents the color model.suggestedYcbcrRangerepresents the numerical value range.suggestedXChromaOffsetrepresents the X chroma offset.suggestedYChromaOffsetrepresents the Y chroma offset.
Valid Usage (Implicit)
VUID-VkNativeBufferFormatPropertiesOHOS-sType-sType
sType must be VK_STRUCTURE_TYPE_NATIVE_BUFFER_FORMAT_PROPERTIES_OHOS