MCPcopy Create free account
hub / github.com/comaps/comaps / IsEnabled

Method IsEnabled

libs/drape_frontend/postprocess_renderer.cpp:183–193  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183bool PostprocessRenderer::IsEnabled() const
184{
185 // Do not use post processing in routing following mode by energy-saving reasons.
186 // For Metal rendering to the texture is more efficient,
187 // since nextDrawable will be requested later.
188
189 if (m_apiVersion != dp::ApiVersion::Metal && m_isRouteFollowingActive)
190 return false;
191
192 return IsSupported(m_mainFramebuffer);
193}
194
195void PostprocessRenderer::SetEffectEnabled(ref_ptr<dp::GraphicsContext> context, Effect effect, bool enabled)
196{

Callers

nothing calls this directly

Calls 1

IsSupportedFunction · 0.85

Tested by

no test coverage detected