Skip to content

Commit

Permalink
fix: add missing methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Silverlan committed Dec 8, 2024
1 parent 3d82f28 commit bd6a367
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/client/src/rendering/c_render_context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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; }

0 comments on commit bd6a367

Please sign in to comment.