Added Debug detection
This commit is contained in:
@@ -1,5 +1,21 @@
|
||||
#pragma once
|
||||
|
||||
#ifndef NDEBUG
|
||||
#define PB_DEBUG
|
||||
namespace PB::Renderer
|
||||
{
|
||||
constexpr bool DEBUG_MODE = true;
|
||||
constexpr const char* MODE_NAME = "DEBUG";
|
||||
}
|
||||
#else
|
||||
#define PB_RELEASE
|
||||
namespace PB::Renderer
|
||||
{
|
||||
constexpr bool DEBUG_MODE = false;
|
||||
constexpr const char* MODE_NAME = "RELEASE";
|
||||
}
|
||||
#endif
|
||||
|
||||
/* Includes general project .h files */
|
||||
|
||||
#include "RendererTypes.h"
|
||||
|
||||
@@ -39,6 +39,8 @@ namespace PB::Renderer
|
||||
|
||||
bool VulkanManager::Init(GLFWwindow* window)
|
||||
{
|
||||
std::cout << "Initializing Vulkan with [" << MODE_NAME << "] profile" << std::endl;
|
||||
|
||||
return
|
||||
CreateInstance() &&
|
||||
CreateSurface(window) &&
|
||||
|
||||
Reference in New Issue
Block a user