Added Debug detection

This commit is contained in:
Pasha Bibko
2025-11-21 23:10:39 +00:00
parent 2eb42da357
commit dea1ffee49
2 changed files with 18 additions and 0 deletions

View File

@@ -1,5 +1,21 @@
#pragma once #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 */ /* Includes general project .h files */
#include "RendererTypes.h" #include "RendererTypes.h"

View File

@@ -39,6 +39,8 @@ namespace PB::Renderer
bool VulkanManager::Init(GLFWwindow* window) bool VulkanManager::Init(GLFWwindow* window)
{ {
std::cout << "Initializing Vulkan with [" << MODE_NAME << "] profile" << std::endl;
return return
CreateInstance() && CreateInstance() &&
CreateSurface(window) && CreateSurface(window) &&