# VkNativeBufferFormatPropertiesOHOS(3) Manual Page

## Name

VkNativeBufferFormatPropertiesOHOS - Structure describing the image format properties of an Open Harmony OS native buffer

Loading… please wait.

## C Specification

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:

    // Provided by VK_OHOS_external_memory
    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;

## Members

- `sType` is a VkStructureType value identifying this structure.

- `pNext` is `NULL` or a pointer to a structure extending this structure.

- `format` is the Vulkan format corresponding to the Open Harmony OS native buffer’s format, or `VK_FORMAT_UNDEFINED` if there is not an equivalent Vulkan format.

- `externalFormat` is an implementation-defined external format identifier for use with VkExternalFormatOHOS.

- `formatFeatures` describes the capabilities of this external format when used with an image bound to memory imported from `buffer`.

- `samplerYcbcrConversionComponents` represents a set of VkComponentSwizzle.

- `suggestedYcbcrModel` represents the color model.

- `suggestedYcbcrRange` represents the numerical value range.

- `suggestedXChromaOffset` represents the X chroma offset.

- `suggestedYChromaOffset` represents the Y chroma offset.

## Description

Valid Usage (Implicit)

- VUID-VkNativeBufferFormatPropertiesOHOS-sType-sType
  `sType` must be `VK_STRUCTURE_TYPE_NATIVE_BUFFER_FORMAT_PROPERTIES_OHOS`

## See Also

VK_OHOS_external_memory, VkChromaLocation, VkComponentMapping, VkFormat, VkFormatFeatureFlags, VkSamplerYcbcrModelConversion, VkSamplerYcbcrRange, VkStructureType

## Document Notes

For more information, see the Vulkan Specification.

This page is extracted from the Vulkan Specification. Fixes and changes should be made to the Specification, not directly.

## Copyright

Copyright 2014-2025 The Khronos Group Inc.

SPDX-License-Identifier: CC-BY-4.0