| 1403 | } |
| 1404 | |
| 1405 | void DX11Engine::ClearStencilBuffer() |
| 1406 | { |
| 1407 | ID3D11DepthStencilView* dsView = nullptr; |
| 1408 | ID3D11RenderTargetView* rtView = nullptr; |
| 1409 | mImmediate->OMGetRenderTargets(1, &rtView, &dsView); |
| 1410 | DX11::SafeRelease(rtView); |
| 1411 | if (dsView) |
| 1412 | { |
| 1413 | mImmediate->ClearDepthStencilView(dsView, D3D11_CLEAR_STENCIL, 0.0f, |
| 1414 | static_cast<UINT8>(mClearStencil)); |
| 1415 | DX11::SafeRelease(dsView); |
| 1416 | } |
| 1417 | } |
| 1418 | |
| 1419 | void DX11Engine::ClearBuffers() |
| 1420 | { |
nothing calls this directly
no outgoing calls
no test coverage detected