TextureVk: Fix not transitioning between queues

This commit is contained in:
Corentin Wallez 2018-01-26 16:48:42 -05:00 committed by Corentin Wallez
parent 75f5b8039b
commit 672d7f26e1
1 changed files with 2 additions and 2 deletions

View File

@ -318,8 +318,8 @@ namespace backend { namespace vulkan {
barrier.dstAccessMask = VulkanAccessFlags(targetUsage, format);
barrier.oldLayout = VulkanImageLayout(currentUsage, format);
barrier.newLayout = VulkanImageLayout(targetUsage, format);
barrier.srcQueueFamilyIndex = 0;
barrier.dstQueueFamilyIndex = 0;
barrier.srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED;
barrier.dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED;
barrier.image = mHandle;
// This transitions the whole resource but assumes it is a 2D texture
ASSERT(GetDimension() == nxt::TextureDimension::e2D);