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

Method ClearUnorderedAccessViewUint

source/d3d12/d3d12_command_list.cpp:855–866  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
858 ViewCPUHandle = _device_impl->convert_to_original_cpu_descriptor_handle(ViewCPUHandle);
859#endif
860
861#if RESHADE_ADDON
862 if (reshade::invoke_addon_event<reshade::addon_event::clear_unordered_access_view_uint>(this, to_handle(ViewCPUHandle), Values, NumRects, reinterpret_cast<const reshade::api::rect *>(pRects)))
863 return;
864#endif
865 _orig->ClearUnorderedAccessViewUint(ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects);
866}
867void STDMETHODCALLTYPE D3D12GraphicsCommandList::ClearUnorderedAccessViewFloat(D3D12_GPU_DESCRIPTOR_HANDLE ViewGPUHandleInCurrentHeap, D3D12_CPU_DESCRIPTOR_HANDLE ViewCPUHandle, ID3D12Resource *pResource, const FLOAT Values[4], UINT NumRects, const D3D12_RECT *pRects)
868{
869#if RESHADE_ADDON >= 2

Callers 1

Calls 2

to_handleFunction · 0.70

Tested by

no test coverage detected