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

Method SetGraphicsRootShaderResourceView

source/d3d12/d3d12_command_list.cpp:698–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

696#endif
697}
698void 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}
712void STDMETHODCALLTYPE D3D12GraphicsCommandList::SetComputeRootUnorderedAccessView(UINT RootParameterIndex, D3D12_GPU_VIRTUAL_ADDRESS BufferLocation)
713{
714 _orig->SetComputeRootUnorderedAccessView(RootParameterIndex, BufferLocation);

Callers 1

push_descriptorsMethod · 0.80

Calls 1

to_handleFunction · 0.70

Tested by

no test coverage detected