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

Method CanRenderAntialiasing

libs/drape_frontend/postprocess_renderer.cpp:210–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210bool PostprocessRenderer::CanRenderAntialiasing() const
211{
212 if (!IsEffectEnabled(Effect::Antialiasing))
213 return false;
214
215 if (!IsSupported(m_edgesFramebuffer) || !IsSupported(m_blendingWeightFramebuffer) || !IsSupported(m_smaaFramebuffer))
216 return false;
217
218 if (m_staticTextures == nullptr || m_staticTextures->m_smaaSearchTexture == nullptr ||
219 m_staticTextures->m_smaaAreaTexture == nullptr)
220 {
221 return false;
222 }
223
224 if (m_apiVersion == dp::ApiVersion::OpenGLES3)
225 return m_staticTextures->m_smaaAreaTexture->GetID() != 0 && m_staticTextures->m_smaaSearchTexture->GetID() != 0;
226 return true;
227}
228
229bool PostprocessRenderer::BeginFrame(ref_ptr<dp::GraphicsContext> context, ScreenBase const & modelView,
230 bool activeFrame)

Callers

nothing calls this directly

Calls 2

IsSupportedFunction · 0.85
GetIDMethod · 0.45

Tested by

no test coverage detected