| 439 | } |
| 440 | |
| 441 | StencilWriterGuard::StencilWriterGuard(ref_ptr<PostprocessRenderer> renderer, ref_ptr<dp::GraphicsContext> context) |
| 442 | : m_renderer(std::move(renderer)) |
| 443 | , m_context(std::move(context)) |
| 444 | { |
| 445 | ASSERT(m_renderer != nullptr, ()); |
| 446 | m_renderer->EnableWritingToStencil(m_context); |
| 447 | } |
| 448 | |
| 449 | StencilWriterGuard::~StencilWriterGuard() |
| 450 | { |
nothing calls this directly
no test coverage detected