D3D12: make texture transition barrier on all subresources

This doesn't fix anything in particular and is just a drive-by
change.
This commit is contained in:
Corentin Wallez 2017-07-12 13:16:47 -04:00 committed by Corentin Wallez
parent de4a3c4c3b
commit 11ce310de3
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ namespace d3d12 {
barrier->Transition.pResource = resource.Get();
barrier->Transition.StateBefore = stateBefore;
barrier->Transition.StateAfter = stateAfter;
barrier->Transition.Subresource = 0;
barrier->Transition.Subresource = D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES;
return true;
}