Function Prototype
vkSetHdrMetadataEXT
Set HDR metadata
To provide HDR metadata to an implementation, call:
void vkSetHdrMetadataEXT(
VkDevice device,
uint32_t swapchainCount,
const VkSwapchainKHR* pSwapchains,
const VkHdrMetadataEXT* pMetadata);
deviceis the logical device where the swapchain(s) were created.swapchainCountis the number of swapchains included inpSwapchains.pSwapchainsis a pointer to an array ofswapchainCount
VkSwapchainKHR handles.pMetadatais a pointer to an array ofswapchainCount
VkHdrMetadataEXT structures.
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.
Valid Usage (Implicit)
VUID-vkSetHdrMetadataEXT-device-parameter
device must be a valid VkDevice handle
VUID-vkSetHdrMetadataEXT-pSwapchains-parameter
pSwapchains must be a valid pointer to an array of swapchainCount valid VkSwapchainKHR handles
VUID-vkSetHdrMetadataEXT-pMetadata-parameter
pMetadata must be a valid pointer to an array of swapchainCount valid VkHdrMetadataEXT structures
VUID-vkSetHdrMetadataEXT-swapchainCount-arraylength
swapchainCount must be greater than 0
VUID-vkSetHdrMetadataEXT-pSwapchains-parent
Each element of pSwapchains must have been created, allocated, or retrieved from device