From 424a7e8c1d5737b3ce2186124e0f4b04ca1dba5f Mon Sep 17 00:00:00 2001 From: hyzboy Date: Wed, 17 Jul 2019 17:18:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=88=90=E5=B0=86GBUFFER=E7=BA=B9?= =?UTF-8?q?=E7=90=86bind=20sampler=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/RenderDevice/Vulkan/VKDescriptorSets.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/RenderDevice/Vulkan/VKDescriptorSets.cpp b/src/RenderDevice/Vulkan/VKDescriptorSets.cpp index 0abf9992..19f81f34 100644 --- a/src/RenderDevice/Vulkan/VKDescriptorSets.cpp +++ b/src/RenderDevice/Vulkan/VKDescriptorSets.cpp @@ -56,7 +56,8 @@ bool DescriptorSets::BindSampler(const uint32_t binding,Texture *tex,Sampler *sa VkDescriptorImageInfo *image_info=new VkDescriptorImageInfo; image_info->imageView =tex->GetVulkanImageView(); - image_info->imageLayout =tex->GetImageLayout(); + //image_info->imageLayout =tex->GetImageLayout(); + image_info->imageLayout =VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL; image_info->sampler =*sampler; desc_image_info.Add(image_info);