Explorar el Código

Vulkan: Make storage textures sampleable by default

BearishSun hace 9 años
padre
commit
bfe4e188c7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      Source/BansheeVulkanRenderAPI/Source/BsVulkanTexture.cpp

+ 1 - 1
Source/BansheeVulkanRenderAPI/Source/BsVulkanTexture.cpp

@@ -379,7 +379,7 @@ namespace bs
 		}
 		}
 		else if ((usage & TU_LOADSTORE) != 0)
 		else if ((usage & TU_LOADSTORE) != 0)
 		{
 		{
-			mImageCI.usage = VK_IMAGE_USAGE_STORAGE_BIT;
+			mImageCI.usage = VK_IMAGE_USAGE_STORAGE_BIT | VK_IMAGE_USAGE_SAMPLED_BIT;
 			mSupportsGPUWrites = true;
 			mSupportsGPUWrites = true;
 		}
 		}
 		else
 		else