mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-10-26 06:38:16 +08:00
Bug 5671906: Enable vulkan validaitonLayers for Vulkan samples with Debug build only
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user