Structures
VkAndroidHardwareBufferFormatResolvePropertiesANDROID
Structure defining properties of resolves using an external format
The VkAndroidHardwareBufferFormatResolvePropertiesANDROID structure is defined as:
typedef struct VkAndroidHardwareBufferFormatResolvePropertiesANDROID {
VkStructureType sType;
void* pNext;
VkFormat colorAttachmentFormat;
} VkAndroidHardwareBufferFormatResolvePropertiesANDROID;
sTypeis a VkStructureType value identifying this structure.pNextisNULLor a pointer to a structure extending this structure.colorAttachmentFormatis a VkFormat specifying the format of color attachment images that must be used for color attachments when resolving to the specified external format. If the implementation supports external format resolves for the specified external format, this value will be a color format supporting theVK_FORMAT_FEATURE_COLOR_ATTACHMENT_BITin VkFormatProperties::optimalTilingFeaturesas returned by vkGetPhysicalDeviceFormatProperties withformatequal tocolorAttachmentFormatIf external format resolves are not supported, this value will beVK_FORMAT_UNDEFINED.
Any Android hardware buffer created with the GRALLOC_USAGE_HW_RENDER
flag must be renderable in some way in Vulkan, either:
- VkAndroidHardwareBufferFormatPropertiesANDROID::
formatmust be a format that supportsVK_FORMAT_FEATURE_COLOR_ATTACHMENT_BITorVK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BITin VkFormatProperties::optimalTilingFeatures; or colorAttachmentFormatmust be a format that supportsVK_FORMAT_FEATURE_COLOR_ATTACHMENT_BITin VkFormatProperties::optimalTilingFeatures.
Valid Usage (Implicit)
VUID-VkAndroidHardwareBufferFormatResolvePropertiesANDROID-sType-sType
sType must be VK_STRUCTURE_TYPE_ANDROID_HARDWARE_BUFFER_FORMAT_RESOLVE_PROPERTIES_ANDROID