Skip to content

Commit

Permalink
merian: Context: Add is_debug variable
Browse files Browse the repository at this point in the history
  • Loading branch information
LDAP committed Dec 6, 2024
1 parent 2b80740 commit 9ca83d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions include/merian/vk/context.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ struct QueueInfo {
class Context : public std::enable_shared_from_this<Context>, public ExtensionContainer {

public:
#ifdef NDEBUG
static constexpr bool IS_DEBUG_BUILD = false;
#else
static constexpr bool IS_DEBUG_BUILD = true;
#endif

/**
* @brief Use this method to create the context.
*
Expand Down

0 comments on commit 9ca83d7

Please sign in to comment.