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

Method ClearColorBuffer

GTE/Graphics/DX11/DX11Engine.cpp:1375–1390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1373}
1374
1375void DX11Engine::ClearColorBuffer()
1376{
1377 ID3D11RenderTargetView* rtViews[D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT] = { nullptr };
1378 ID3D11DepthStencilView* dsView = nullptr;
1379
1380 mImmediate->OMGetRenderTargets(mNumActiveRTs, rtViews, &dsView);
1381 DX11::SafeRelease(dsView);
1382 for (uint32_t i = 0; i < mNumActiveRTs; ++i)
1383 {
1384 if (rtViews[i])
1385 {
1386 mImmediate->ClearRenderTargetView(rtViews[i], mClearColor.data());
1387 DX11::SafeRelease(rtViews[i]);
1388 }
1389 }
1390}
1391
1392void DX11Engine::ClearDepthBuffer()
1393{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected