mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-04-02 15:45:41 +08:00
Bug 5671906: Enable vulkan validaitonLayers for Vulkan samples with Debug build only
This commit is contained in:
parent
1bc6774795
commit
37dcb9b61d
@ -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)
|
||||
|
||||
@ -44,7 +44,7 @@
|
||||
#include "helper_multiprocess.h"
|
||||
|
||||
// #define DEBUG
|
||||
#ifndef DEBUG
|
||||
#ifdef NDEBUG
|
||||
#define ENABLE_VALIDATION (false)
|
||||
#else
|
||||
#define ENABLE_VALIDATION (true)
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user