| 369 | } |
| 370 | |
| 371 | void PostprocessRenderer::EnableWritingToStencil(ref_ptr<dp::GraphicsContext> context) const |
| 372 | { |
| 373 | if (!m_frameStarted || !CanRenderAntialiasing()) |
| 374 | return; |
| 375 | context->SetStencilTestEnabled(true); |
| 376 | context->SetStencilFunction(dp::StencilFace::FrontAndBack, dp::TestFunction::Always); |
| 377 | context->SetStencilActions(dp::StencilFace::FrontAndBack, dp::StencilAction::Keep, dp::StencilAction::Keep, |
| 378 | dp::StencilAction::Replace); |
| 379 | } |
| 380 | |
| 381 | void PostprocessRenderer::DisableWritingToStencil(ref_ptr<dp::GraphicsContext> context) const |
| 382 | { |
no test coverage detected