GPUDevice: Fix binding deferred cleared textures

i.e. briefly flashing previous state after reset.
This commit is contained in:
Stenzek
2023-12-14 14:47:15 +10:00
parent 371c58dc72
commit 7e1276fbac
5 changed files with 30 additions and 6 deletions

View File

@ -1864,6 +1864,7 @@ void D3D12Device::SetTextureSampler(u32 slot, GPUTexture* texture, GPUSampler* s
if (T)
{
T->CommitClear();
T->SetUseFenceValue(GetCurrentFenceValue());
if (T->GetResourceState() != D3D12_RESOURCE_STATE_PIXEL_SHADER_RESOURCE)
{