Skip to content

Commit

Permalink
Remove "bind_descriptor_tables" event when D3D12 root signature is ch…
Browse files Browse the repository at this point in the history
…anged

It's expected that applications will follow this with calls to change descriptor tables anyway
  • Loading branch information
crosire committed Jul 8, 2023
1 parent cc75a07 commit bc928d6
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions source/d3d12/d3d12_command_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -473,30 +473,12 @@ void STDMETHODCALLTYPE D3D12GraphicsCommandList::SetComputeRootSignature(ID3D12R
_orig->SetComputeRootSignature(pRootSignature);

_current_root_signature[1] = pRootSignature;

#if RESHADE_ADDON && !RESHADE_ADDON_LITE
reshade::invoke_addon_event<reshade::addon_event::bind_descriptor_tables>(
this,
reshade::api::shader_stage::all_compute,
to_handle(_current_root_signature[1]),
0,
0, nullptr);
#endif
}
void STDMETHODCALLTYPE D3D12GraphicsCommandList::SetGraphicsRootSignature(ID3D12RootSignature *pRootSignature)
{
_orig->SetGraphicsRootSignature(pRootSignature);

_current_root_signature[0] = pRootSignature;

#if RESHADE_ADDON && !RESHADE_ADDON_LITE
reshade::invoke_addon_event<reshade::addon_event::bind_descriptor_tables>(
this,
reshade::api::shader_stage::all_graphics,
to_handle(_current_root_signature[0]),
0,
0, nullptr);
#endif
}
void STDMETHODCALLTYPE D3D12GraphicsCommandList::SetComputeRootDescriptorTable(UINT RootParameterIndex, D3D12_GPU_DESCRIPTOR_HANDLE BaseDescriptor)
{
Expand Down

0 comments on commit bc928d6

Please sign in to comment.