| 710 | #endif |
| 711 | } |
| 712 | void 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 | } |
| 726 | void STDMETHODCALLTYPE D3D12GraphicsCommandList::SetGraphicsRootUnorderedAccessView(UINT RootParameterIndex, D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) |
| 727 | { |
| 728 | _orig->SetGraphicsRootUnorderedAccessView(RootParameterIndex, BufferLocation); |
no test coverage detected