Fix the barrier in vulkan::Texture::TransitionUsageNow to make the

barrier cover all the slices in a 2D array texture.
This commit is contained in:
Jiawei Shao 2018-08-31 16:07:24 +08:00 committed by Corentin Wallez
parent 4ccf4e3fdd
commit 9daa4ad1c8
1 changed files with 1 additions and 1 deletions

View File

@ -333,7 +333,7 @@ namespace dawn_native { namespace vulkan {
barrier.subresourceRange.baseMipLevel = 0;
barrier.subresourceRange.levelCount = GetNumMipLevels();
barrier.subresourceRange.baseArrayLayer = 0;
barrier.subresourceRange.layerCount = 1;
barrier.subresourceRange.layerCount = GetArrayLayers();
ToBackend(GetDevice())
->fn.CmdPipelineBarrier(commands, srcStages, dstStages, 0, 0, nullptr, 0, nullptr, 1,