From 9d1fc8328f5d5a33a8729d31edd6c114e5f653c5 Mon Sep 17 00:00:00 2001 From: nmzik Date: Sun, 6 Sep 2026 22:00:40 +0400 Subject: [PATCH] render: allow supported unrestricted float depth uploads Co-authored-by: fxpw --- src/graphics/presentation/window/vulkanWindow.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/graphics/presentation/window/vulkanWindow.cpp b/src/graphics/presentation/window/vulkanWindow.cpp index 4e93338b0..96707c49f 100644 --- a/src/graphics/presentation/window/vulkanWindow.cpp +++ b/src/graphics/presentation/window/vulkanWindow.cpp @@ -1110,11 +1110,12 @@ void WindowContext::CreateVulkan() { device_extensions.push_back(VK_EXT_MEMORY_BUDGET_EXTENSION_NAME); graphic_ctx.memory_budget_ext_enabled = true; } - if (HasExtension(available_extensions, VK_EXT_ROBUSTNESS_2_EXTENSION_NAME)) { - device_extensions.push_back(VK_EXT_ROBUSTNESS_2_EXTENSION_NAME); - } - if (HasExtension(available_extensions, VK_EXT_MESH_SHADER_EXTENSION_NAME)) { - device_extensions.push_back(VK_EXT_MESH_SHADER_EXTENSION_NAME); + for (const auto* extension: {VK_EXT_ROBUSTNESS_2_EXTENSION_NAME, + VK_EXT_MESH_SHADER_EXTENSION_NAME, + VK_EXT_DEPTH_RANGE_UNRESTRICTED_EXTENSION_NAME}) { + if (HasExtension(available_extensions, extension)) { + device_extensions.push_back(extension); + } } }