From 144b58a253bdf0cfae424f6f7538f57f49945c97 Mon Sep 17 00:00:00 2001 From: Sascha Willems Date: Sat, 23 Nov 2019 14:00:24 +0100 Subject: [PATCH] Put image memory barrier in proper command buffer --- examples/texturemipmapgen/texturemipmapgen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/texturemipmapgen/texturemipmapgen.cpp b/examples/texturemipmapgen/texturemipmapgen.cpp index db0f7926..50fd04f6 100644 --- a/examples/texturemipmapgen/texturemipmapgen.cpp +++ b/examples/texturemipmapgen/texturemipmapgen.cpp @@ -319,7 +319,7 @@ public: // After the loop, all mip layers are in TRANSFER_SRC layout, so transition all to SHADER_READ subresourceRange.levelCount = texture.mipLevels; vks::tools::insertImageMemoryBarrier( - copyCmd, + blitCmd, texture.image, VK_ACCESS_TRANSFER_READ_BIT, VK_ACCESS_SHADER_READ_BIT,