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

Method ClearStencilBuffer

GTE/Graphics/DX11/DX11Engine.cpp:1405–1417  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1403}
1404
1405void 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
1419void DX11Engine::ClearBuffers()
1420{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected