mirror of
https://github.com/NVIDIA/cuda-samples.git
synced 2026-04-02 23:55: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];
|
typedef float vec2[2];
|
||||||
std::string execution_path;
|
std::string execution_path;
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifdef NDEBUG
|
||||||
#define ENABLE_VALIDATION (false)
|
#define ENABLE_VALIDATION (false)
|
||||||
#else
|
#else
|
||||||
#define ENABLE_VALIDATION (true)
|
#define ENABLE_VALIDATION (true)
|
||||||
|
|||||||
@ -44,7 +44,7 @@
|
|||||||
#include "helper_multiprocess.h"
|
#include "helper_multiprocess.h"
|
||||||
|
|
||||||
// #define DEBUG
|
// #define DEBUG
|
||||||
#ifndef DEBUG
|
#ifdef NDEBUG
|
||||||
#define ENABLE_VALIDATION (false)
|
#define ENABLE_VALIDATION (false)
|
||||||
#else
|
#else
|
||||||
#define ENABLE_VALIDATION (true)
|
#define ENABLE_VALIDATION (true)
|
||||||
|
|||||||
@ -69,9 +69,9 @@ const int MAX_FRAMES = 4;
|
|||||||
const std::vector<const char *> validationLayers = {"VK_LAYER_KHRONOS_validation"};
|
const std::vector<const char *> validationLayers = {"VK_LAYER_KHRONOS_validation"};
|
||||||
|
|
||||||
#ifdef NDEBUG
|
#ifdef NDEBUG
|
||||||
const bool enableValidationLayers = true;
|
|
||||||
#else
|
|
||||||
const bool enableValidationLayers = false;
|
const bool enableValidationLayers = false;
|
||||||
|
#else
|
||||||
|
const bool enableValidationLayers = true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
std::string execution_path;
|
std::string execution_path;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user