mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-13 17:30:12 +00:00
Make sure images always have the transfer dest usage bit
This commit is contained in:
1 parent
944bad84b9
commit
6a82c8639d
1 file changed
+2
-2
@@ -778,8 +778,8 @@ bool WrappedVulkan::Serialise_vkCreateImage(
|
||||
|
||||
VkImageUsageFlags origusage = info.usage;
|
||||
|
||||
// ensure we can always display and copy from textures
|
||||
info.usage |= VK_IMAGE_USAGE_SAMPLED_BIT|VK_IMAGE_USAGE_TRANSFER_SOURCE_BIT;
|
||||
// ensure we can always display and copy from/to textures
|
||||
info.usage |= VK_IMAGE_USAGE_SAMPLED_BIT|VK_IMAGE_USAGE_TRANSFER_SOURCE_BIT|VK_IMAGE_USAGE_TRANSFER_DESTINATION_BIT;
|
||||
|
||||
VkResult ret = ObjDisp(device)->CreateImage(Unwrap(device), &info, &img);
|
||||
|
||||
|
||||
Reference in new issue
Block a user