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

Method SetComputeRootUnorderedAccessView

source/d3d12/d3d12_command_list.cpp:712–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

710#endif
711}
712void STDMETHODCALLTYPE D3D12GraphicsCommandList::SetComputeRootUnorderedAccessView(UINT RootParameterIndex, D3D12_GPU_VIRTUAL_ADDRESS BufferLocation)
713{
714 _orig->SetComputeRootUnorderedAccessView(RootParameterIndex, BufferLocation);
715
716#if RESHADE_ADDON >= 2
717 // TODO: Get a working 'resource_view' handle for the UAV that can be passed as descriptor update
718 reshade::invoke_addon_event<reshade::addon_event::push_descriptors>(
719 this,
720 reshade::api::shader_stage::all_compute | reshade::api::shader_stage::all_ray_tracing,
721 to_handle(_current_root_signature[1]),
722 RootParameterIndex,
723 reshade::api::descriptor_table_update { {}, 0, 0, 1, reshade::api::descriptor_type::buffer_unordered_access_view, &BufferLocation });
724#endif
725}
726void STDMETHODCALLTYPE D3D12GraphicsCommandList::SetGraphicsRootUnorderedAccessView(UINT RootParameterIndex, D3D12_GPU_VIRTUAL_ADDRESS BufferLocation)
727{
728 _orig->SetGraphicsRootUnorderedAccessView(RootParameterIndex, BufferLocation);

Callers 1

push_descriptorsMethod · 0.80

Calls 1

to_handleFunction · 0.70

Tested by

no test coverage detected