Skip to content

Commit

Permalink
Fix a DX barriers bug
Browse files Browse the repository at this point in the history
  • Loading branch information
godlikepanos committed Sep 30, 2024
1 parent bc8ef45 commit 81ed669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AnKi/Gr/D3D/D3DTexture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ D3D12_TEXTURE_BARRIER TextureImpl::computeBarrierInfo(TextureUsageBit before, Te
ANKI_ASSERT((m_usage & after) == after);
ANKI_ASSERT(subresource == TextureView(this, subresource).getSubresource() && "Should have been sanitized");

D3D12_TEXTURE_BARRIER barrier;
D3D12_TEXTURE_BARRIER barrier = {};

computeBarrierInfo(before, barrier.SyncBefore, barrier.AccessBefore);
computeBarrierInfo(after, barrier.SyncAfter, barrier.AccessAfter);
Expand Down

0 comments on commit 81ed669

Please sign in to comment.