Bug 5671906: Enable vulkan validaitonLayers for Vulkan samples with Debug build only

This commit is contained in:
Shawn Zeng
2025-11-28 17:20:48 +08:00
parent 1bc6774795
commit 37dcb9b61d
3 changed files with 4 additions and 4 deletions

View File

@@ -69,9 +69,9 @@ const int MAX_FRAMES = 4;
const std::vector<const char *> validationLayers = {"VK_LAYER_KHRONOS_validation"};
#ifdef NDEBUG
const bool enableValidationLayers = true;
#else
const bool enableValidationLayers = false;
#else
const bool enableValidationLayers = true;
#endif
std::string execution_path;