C Specification
To provide HDR metadata to an implementation, call:
// Provided by VK_EXT_hdr_metadata
void vkSetHdrMetadataEXT(
VkDevice device,
uint32_t swapchainCount,
const VkSwapchainKHR* pSwapchains,
const VkHdrMetadataEXT* pMetadata);
Parameters
-
deviceis the logical device where the swapchain(s) were created. -
swapchainCountis the number of swapchains included inpSwapchains. -
pSwapchainsis a pointer to an array ofswapchainCountVkSwapchainKHR handles. -
pMetadatais a pointer to an array ofswapchainCountVkHdrMetadataEXT structures.
Description
The metadata will be applied to the specified VkSwapchainKHR objects
at the next vkQueuePresentKHR call using that VkSwapchainKHR
object.
The metadata will persist until a subsequent vkSetHdrMetadataEXT
changes it.
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.