MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / Clear

Method Clear

Source/Engine/GraphicsDevice/DirectX/DX12/GPUContextDX12.cpp:807–817  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

805}
806
807void GPUContextDX12::Clear(GPUTextureView* rt, const Color& color)
808{
809 auto rtDX12 = static_cast<GPUTextureViewDX12*>(rt);
810 if (rtDX12)
811 {
812 SetResourceState(rtDX12->GetResourceOwner(), D3D12_RESOURCE_STATE_RENDER_TARGET, rtDX12->SubresourceIndex);
813 flushRBs();
814
815 _commandList->ClearRenderTargetView(rtDX12->RTV(), color.Raw, 0, nullptr);
816 }
817}
818
819void GPUContextDX12::ClearDepth(GPUTextureView* depthBuffer, float depthValue, uint8 stencilValue)
820{

Callers 4

OnReleaseGPUMethod · 0.45
ReleaseMethod · 0.45
ReleaseGPUMethod · 0.45
DisposeMethod · 0.45

Calls 2

GetResourceOwnerMethod · 0.45
RTVMethod · 0.45

Tested by

no test coverage detected