mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Merge pull request #184 from kbiElude/issue_183_fix
Set TRANSFER_SRC usage flag for images @ capture
This commit is contained in:
@@ -994,7 +994,11 @@ VkResult WrappedVulkan::vkCreateImage(
|
||||
const VkAllocationCallbacks* pAllocator,
|
||||
VkImage* pImage)
|
||||
{
|
||||
VkResult ret = ObjDisp(device)->CreateImage(Unwrap(device), pCreateInfo, pAllocator, pImage);
|
||||
VkImageCreateInfo createInfo_adjusted = *pCreateInfo;
|
||||
|
||||
createInfo_adjusted.usage |= VK_IMAGE_USAGE_TRANSFER_SRC_BIT;
|
||||
|
||||
VkResult ret = ObjDisp(device)->CreateImage(Unwrap(device), &createInfo_adjusted, pAllocator, pImage);
|
||||
|
||||
// SHARING: pCreateInfo sharingMode, queueFamilyCount, pQueueFamilyIndices
|
||||
|
||||
|
||||
Reference in New Issue
Block a user