mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-25 23:25:41 +00:00
Add color attachment usage for MSAA targets for discard patterns
* In most cases we expect this to already be there, and if not it likely will not penalise anything in the driver since MSAA is designed for rendering to.
This commit is contained in:
@@ -2044,6 +2044,7 @@ bool WrappedVulkan::Serialise_vkCreateImage(SerialiserType &ser, VkDevice device
|
||||
// pipeline)
|
||||
if(GetShaderCache()->IsBuffer2MSSupported())
|
||||
CreateInfo.usage |= VK_IMAGE_USAGE_STORAGE_BIT;
|
||||
CreateInfo.usage |= VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2254,6 +2255,7 @@ VkResult WrappedVulkan::vkCreateImage(VkDevice device, const VkImageCreateInfo *
|
||||
// its constructor
|
||||
if(GetDebugManager() && GetShaderCache()->IsBuffer2MSSupported())
|
||||
createInfo_adjusted.usage |= VK_IMAGE_USAGE_STORAGE_BIT;
|
||||
createInfo_adjusted.usage |= VK_IMAGE_USAGE_COLOR_ATTACHMENT_BIT;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user