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:
parent
de4a3c4c3b
commit
11ce310de3
|
@ -126,7 +126,7 @@ namespace d3d12 {
|
||||||
barrier->Transition.pResource = resource.Get();
|
barrier->Transition.pResource = resource.Get();
|
||||||
barrier->Transition.StateBefore = stateBefore;
|
barrier->Transition.StateBefore = stateBefore;
|
||||||
barrier->Transition.StateAfter = stateAfter;
|
barrier->Transition.StateAfter = stateAfter;
|
||||||
barrier->Transition.Subresource = 0;
|
barrier->Transition.Subresource = D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue