| 208 | } |
| 209 | |
| 210 | bool 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 | |
| 229 | bool PostprocessRenderer::BeginFrame(ref_ptr<dp::GraphicsContext> context, ScreenBase const & modelView, |
| 230 | bool activeFrame) |
nothing calls this directly
no test coverage detected