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

Method ClearRenderTargetView

source/d3d11/d3d11_device_context.cpp:792–799  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

790 _orig->CopyStructureCount(pDstBuffer, DstAlignedByteOffset, pSrcView);
791}
792void STDMETHODCALLTYPE D3D11DeviceContext::ClearRenderTargetView(ID3D11RenderTargetView *pRenderTargetView, const FLOAT ColorRGBA[4])
793{
794#if RESHADE_ADDON
795 if (reshade::invoke_addon_event<reshade::addon_event::clear_render_target_view>(this, to_handle(pRenderTargetView), ColorRGBA, 0, nullptr))
796 return;
797#endif
798 _orig->ClearRenderTargetView(pRenderTargetView, ColorRGBA);
799}
800void STDMETHODCALLTYPE D3D11DeviceContext::ClearUnorderedAccessViewUint(ID3D11UnorderedAccessView *pUnorderedAccessView, const UINT Values[4])
801{
802#if RESHADE_ADDON

Callers 2

begin_render_passMethod · 0.45

Calls 1

to_handleFunction · 0.70

Tested by

no test coverage detected