mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 13:00:32 +00:00
When clearing multisampled images for initial states, check format
* Color and Depth images need to be cleared in different ways!
This commit is contained in:
@@ -1810,7 +1810,7 @@ void WrappedVulkan::Apply_InitialState(WrappedVkRes *live, VulkanResourceManager
|
||||
if(m_CreationInfo.m_Image[id].samples != VK_SAMPLE_COUNT_1_BIT)
|
||||
{
|
||||
initial.resource = NULL;
|
||||
initial.num = eInitialContents_ClearColorImage;
|
||||
initial.num = IsDepthStencilFormat(m_ImageLayouts[id].format) ? eInitialContents_ClearDepthStencilImage : eInitialContents_ClearColorImage;
|
||||
}
|
||||
|
||||
// handle any 'created' initial states, without an actual image with contents
|
||||
|
||||
Reference in New Issue
Block a user