| 696 | #endif |
| 697 | } |
| 698 | void STDMETHODCALLTYPE D3D12GraphicsCommandList::SetGraphicsRootShaderResourceView(UINT RootParameterIndex, D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) |
| 699 | { |
| 700 | _orig->SetGraphicsRootShaderResourceView(RootParameterIndex, BufferLocation); |
| 701 | |
| 702 | #if RESHADE_ADDON >= 2 |
| 703 | // TODO: Get a working 'resource_view' handle for the SRV that can be passed as descriptor update |
| 704 | reshade::invoke_addon_event<reshade::addon_event::push_descriptors>( |
| 705 | this, |
| 706 | reshade::api::shader_stage::all_graphics, |
| 707 | to_handle(_current_root_signature[0]), |
| 708 | RootParameterIndex, |
| 709 | reshade::api::descriptor_table_update { {}, 0, 0, 1, reshade::api::descriptor_type::buffer_shader_resource_view, &BufferLocation }); |
| 710 | #endif |
| 711 | } |
| 712 | void STDMETHODCALLTYPE D3D12GraphicsCommandList::SetComputeRootUnorderedAccessView(UINT RootParameterIndex, D3D12_GPU_VIRTUAL_ADDRESS BufferLocation) |
| 713 | { |
| 714 | _orig->SetComputeRootUnorderedAccessView(RootParameterIndex, BufferLocation); |
no test coverage detected