MCPcopy Create free account
hub / github.com/crosire/reshade / ClearRenderTargetView

Method ClearRenderTargetView

source/d3d12/d3d12_command_list.cpp:847–854  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

845 _orig->ClearDepthStencilView(DepthStencilView, ClearFlags, Depth, Stencil, NumRects, pRects);
846}
847void STDMETHODCALLTYPE D3D12GraphicsCommandList::ClearRenderTargetView(D3D12_CPU_DESCRIPTOR_HANDLE RenderTargetView, const FLOAT ColorRGBA[4], UINT NumRects, const D3D12_RECT *pRects)
848{
849#if RESHADE_ADDON
850 if (reshade::invoke_addon_event<reshade::addon_event::clear_render_target_view>(this, to_handle(RenderTargetView), ColorRGBA, NumRects, reinterpret_cast<const reshade::api::rect *>(pRects)))
851 return;
852#endif
853 _orig->ClearRenderTargetView(RenderTargetView, ColorRGBA, NumRects, pRects);
854}
855void STDMETHODCALLTYPE D3D12GraphicsCommandList::ClearUnorderedAccessViewUint(D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, ID3D12Resource *pResource, const UINT Values[4], UINT NumRects, const D3D12_RECT *pRects)
856{
857#if RESHADE_ADDON >= 2

Callers 2

begin_render_passMethod · 0.45

Calls 1

to_handleFunction · 0.70

Tested by

no test coverage detected