Vulkan: Allow non-opaque alpha

This commit is contained in:
Luke Street 2023-05-27 14:55:57 -04:00
parent cc359d7bbb
commit f10e70a26d
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ ResultOrError<SwapChain::Config> SwapChain::ChooseConfig(
config.transform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR;
config.alphaMode = VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR;
#if !DAWN_PLATFORM_IS(ANDROID)
#if 0
DAWN_INVALID_IF(
(surfaceInfo.capabilities.supportedCompositeAlpha & VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR) == 0,
"Vulkan SwapChain must support opaque alpha.");