Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #10020 from K0bin/d3d12-state-fix
D3D12: Transition compute textures to UAV state
  • Loading branch information
Tilka committed Aug 11, 2021
2 parents bfbbed8 + 40dcf1c commit a27dbe5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Source/Core/VideoBackends/D3D12/D3D12Renderer.cpp
Expand Up @@ -319,6 +319,9 @@ void Renderer::SetComputeImageTexture(AbstractTexture* texture, bool read, bool
return;

m_state.compute_image_texture = dxtex;
if (dxtex)
dxtex->TransitionToState(D3D12_RESOURCE_STATE_UNORDERED_ACCESS);

m_dirty_bits |= DirtyState_ComputeImageTexture;
}

Expand Down

0 comments on commit a27dbe5

Please sign in to comment.