Function Prototype
vkSetLocalDimmingAMD
Set Local Dimming
The local dimming HDR setting may also be changed over the life of a swapchain by calling:
void vkSetLocalDimmingAMD(
VkDevice device,
VkSwapchainKHR swapChain,
VkBool32 localDimmingEnable);
pub fn set_local_dimming_amd(
device: vk::Device,
swap_chain: vk::SwapchainKHR,
local_dimming_enable: vk::Bool32,
);
deviceis the device associated withswapChain.swapChainhandle to enable local dimming.localDimmingEnablespecifies whether local dimming is enabled for the swapchain.
Valid Usage (Implicit)
VUID-vkSetLocalDimmingAMD-device-parameter
device must be a valid VkDevice handle
VUID-vkSetLocalDimmingAMD-swapChain-parameter
swapChain must be a valid VkSwapchainKHR handle
VUID-vkSetLocalDimmingAMD-swapChain-parent
swapChain must have been created, allocated, or retrieved from device
Valid Usage
VUID-vkSetLocalDimmingAMD-localDimmingSupport-04618
VkDisplayNativeHdrSurfaceCapabilitiesAMD::localDimmingSupportmust be supported
Type
Function Prototype