| 805 | } |
| 806 | |
| 807 | void 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 | |
| 819 | void GPUContextDX12::ClearDepth(GPUTextureView* depthBuffer, float depthValue, uint8 stencilValue) |
| 820 | { |
no test coverage detected