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

@ -38,7 +38,7 @@
typedef float vec2[2];
std::string execution_path;
#ifndef NDEBUG
#ifdef NDEBUG
#define ENABLE_VALIDATION (false)
#else
#define ENABLE_VALIDATION (true)

View File

@ -44,7 +44,7 @@
#include "helper_multiprocess.h"
// #define DEBUG
#ifndef DEBUG
#ifdef NDEBUG
#define ENABLE_VALIDATION (false)
#else
#define ENABLE_VALIDATION (true)

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;