This can be useful when profiling an optimized debug build.
+#include <cstdlib>
#include <msp/graphics/vulkancontext_platform.h>
#include "device.h"
#include "device_backend.h"
#include "vulkan.h"
+using namespace std;
+
namespace Msp {
namespace GL {
Graphics::VulkanOptions opts;
opts.enable_geometry_shader = true;
#ifdef DEBUG
- opts.enable_validation = true;
+ const char *disable_ptr = getenv("MSPGL_DISABLE_VALIDATION");
+ if(disable_ptr && *disable_ptr)
+ opts.enable_validation = !lexical_cast<bool>(string(disable_ptr));
+ else
+ opts.enable_validation = true;
opts.enable_debug_report = true;
#endif
return opts;