| 1390 | } |
| 1391 | |
| 1392 | void DX11Engine::ClearDepthBuffer() |
| 1393 | { |
| 1394 | ID3D11DepthStencilView* dsView = nullptr; |
| 1395 | ID3D11RenderTargetView* rtView = nullptr; |
| 1396 | mImmediate->OMGetRenderTargets(1, &rtView, &dsView); |
| 1397 | DX11::SafeRelease(rtView); |
| 1398 | if (dsView) |
| 1399 | { |
| 1400 | mImmediate->ClearDepthStencilView(dsView, D3D11_CLEAR_DEPTH, mClearDepth, 0); |
| 1401 | DX11::SafeRelease(dsView); |
| 1402 | } |
| 1403 | } |
| 1404 | |
| 1405 | void DX11Engine::ClearStencilBuffer() |
| 1406 | { |
nothing calls this directly
no outgoing calls
no test coverage detected