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

Method ClearUnorderedAccessViewFloat

source/d3d12/d3d12_command_list.cpp:867–878  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
870 ViewCPUHandle = _device_impl->convert_to_original_cpu_descriptor_handle(ViewCPUHandle);
871#endif
872
873#if RESHADE_ADDON
874 if (reshade::invoke_addon_event<reshade::addon_event::clear_unordered_access_view_float>(this, to_handle(ViewCPUHandle), Values, NumRects, reinterpret_cast<const reshade::api::rect *>(pRects)))
875 return;
876#endif
877 _orig->ClearUnorderedAccessViewFloat(ViewGPUHandleInCurrentHeap, ViewCPUHandle, pResource, Values, NumRects, pRects);
878}
879void STDMETHODCALLTYPE D3D12GraphicsCommandList::DiscardResource(ID3D12Resource *pResource, const D3D12_DISCARD_REGION *pRegion)
880{
881 _orig->DiscardResource(pResource, pRegion);

Callers 1

Calls 2

to_handleFunction · 0.70

Tested by

no test coverage detected