MCPcopy Create free account
hub / github.com/davideberly/GeometricTools / ClearDepthBuffer

Method ClearDepthBuffer

GTE/Graphics/DX11/DX11Engine.cpp:1392–1403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1390}
1391
1392void 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
1405void DX11Engine::ClearStencilBuffer()
1406{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected