diff --git a/core/client/src/rendering/c_render_context.cpp b/core/client/src/rendering/c_render_context.cpp index 918aa9107..89677e557 100644 --- a/core/client/src/rendering/c_render_context.cpp +++ b/core/client/src/rendering/c_render_context.cpp @@ -240,5 +240,9 @@ void RenderContext::SetGfxAPIValidationEnabled(bool b) if(b) spdlog::flush_on(spdlog::level::info); // Immediately flush all messages } +void RenderContext::SetGfxDiagnosticsModeEnabled(bool b) { umath::set_flag(m_stateFlags, StateFlags::GfxDiagnosticsModeEnabled, b); } +bool RenderContext::IsGfxAPIValidationEnabled() const { return umath::is_flag_set(m_stateFlags, StateFlags::GfxAPIValidationEnabled); } +bool RenderContext::IsGfxDiagnosticsModeEnabled() const { return umath::is_flag_set(m_stateFlags, StateFlags::GfxDiagnosticsModeEnabled); } + void RenderContext::SetRenderAPI(const std::string &renderAPI) { m_renderAPI = renderAPI; } const std::string &RenderContext::GetRenderAPI() const { return m_renderAPI; }