From 6d5c86f91e1167ebcdc923e2f30b53429bcf356f Mon Sep 17 00:00:00 2001 From: Lubosz Sarnecki Date: Wed, 14 Nov 2018 16:40:28 +0100 Subject: [PATCH] vikTextOverlay: Use correct layout in descriptor. Fixes validation warning. --- vitamin-k/render/vikTextOverlay.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vitamin-k/render/vikTextOverlay.hpp b/vitamin-k/render/vikTextOverlay.hpp index fdd9e4b..0777e26 100644 --- a/vitamin-k/render/vikTextOverlay.hpp +++ b/vitamin-k/render/vikTextOverlay.hpp @@ -395,7 +395,7 @@ class TextOverlay { VkDescriptorImageInfo texDescriptor = { .sampler = sampler, .imageView = view, - .imageLayout = VK_IMAGE_LAYOUT_GENERAL + .imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL }; std::vector writeDescriptorSets = { -- 2.45.2