Specify SHADER_READ_ONLY_OPTIMAL layout for images in RenderTexture

This commit is contained in:
baldurk
2017-04-17 12:12:19 +01:00
parent 7e24b78586
commit 8983e67dc2
+1 -1
View File
@@ -1309,7 +1309,7 @@ bool VulkanReplay::RenderTextureInternal(TextureDisplay cfg, VkRenderPassBeginIn
GetDebugManager()->m_TexDisplayUBO.Unmap();
VkDescriptorImageInfo imdesc = {0};
imdesc.imageLayout = VK_IMAGE_LAYOUT_GENERAL;
imdesc.imageLayout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL;
imdesc.imageView = Unwrap(liveImView);
imdesc.sampler = Unwrap(GetDebugManager()->m_PointSampler);
if(cfg.mip == 0 && cfg.scale < 1.0f)