[vulkan] advertise DownlevelFlags::SURFACE_VIEW_FORMATS if VK_KHR_swapchain is not available

This commit is contained in:
teoxoy authored and Connor Fitzgerald committed 2026-07-01 14:43:44 -04:00
1 parent 69e66d8e2a
commit 2ea3a1d41b
1 file changed
+2 -1
+2 -1
View File
@@ -700,7 +700,8 @@ impl PhysicalDeviceFeatures {
dl_flags.set(
Df::SURFACE_VIEW_FORMATS,
caps.supports_extension(khr::swapchain_mutable_format::NAME),
caps.supports_extension(khr::swapchain_mutable_format::NAME)
|| !caps.supports_extension(khr::swapchain::NAME),
);
dl_flags.set(Df::CUBE_ARRAY_TEXTURES, self.core.image_cube_array != 0);
dl_flags.set(Df::ANISOTROPIC_FILTERING, self.core.sampler_anisotropy != 0);