Skip to content

Commit

Permalink
igl | vulkan | Disable validation in MSVC Release builds
Browse files Browse the repository at this point in the history
Summary: Disabled shell Vulkan validation layers in MSVC Release builds.

Reviewed By: dmannemela

Differential Revision: D50891863

fbshipit-source-id: 2602006f52fed9d838462265817040082ee01ea8
  • Loading branch information
corporateshark authored and facebook-github-bot committed Nov 2, 2023
1 parent e3c953d commit 56fa3a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions shell/windows/vulkan/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ GLFWwindow* initWindow() {

std::shared_ptr<igl::shell::PlatformWin> 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)
Expand Down

0 comments on commit 56fa3a9

Please sign in to comment.