From 56fa3a9838d7407bca61152d3b2271ced8ed0c01 Mon Sep 17 00:00:00 2001 From: Sergey Kosarevsky Date: Thu, 2 Nov 2023 11:23:36 -0700 Subject: [PATCH] igl | vulkan | Disable validation in MSVC Release builds Summary: Disabled shell Vulkan validation layers in MSVC Release builds. Reviewed By: dmannemela Differential Revision: D50891863 fbshipit-source-id: 2602006f52fed9d838462265817040082ee01ea8 --- shell/windows/vulkan/App.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell/windows/vulkan/App.cpp b/shell/windows/vulkan/App.cpp index f3fa9bffbd..16d66a40d5 100644 --- a/shell/windows/vulkan/App.cpp +++ b/shell/windows/vulkan/App.cpp @@ -137,6 +137,9 @@ GLFWwindow* initWindow() { std::shared_ptr createPlatform(GLFWwindow* window) { igl::vulkan::VulkanContextConfig cfg = igl::vulkan::VulkanContextConfig(); +#if defined(_MSC_VER) && !IGL_DEBUG + cfg.enableValidation = false; +#endif auto ctx = vulkan::HWDevice::createContext(cfg, #if defined(_WIN32) (void*)glfwGetWin32Window(window)