6d5c86f91e1167ebcdc923e2f30b53429bcf356f — Lubosz Sarnecki 1 year, 26 days ago eb006e2
vikTextOverlay: Use correct layout in descriptor.

Fixes validation warning.
1 files changed, 1 insertions(+), 1 deletions(-)

M vitamin-k/render/vikTextOverlay.hpp
M vitamin-k/render/vikTextOverlay.hpp => vitamin-k/render/vikTextOverlay.hpp +1 -1
@@ 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<VkWriteDescriptorSet> writeDescriptorSets = {