Make sure swapchain create fills out m_ImageLayouts format

This commit is contained in:
baldurk
2019-03-25 16:53:21 +00:00
parent c8ffd555a4
commit b738a466b3
@@ -548,6 +548,8 @@ void WrappedVulkan::WrapAndProcessCreatedSwapchain(VkDevice device,
// fill out image info so we track resource state barriers
{
SCOPED_LOCK(m_ImageLayoutsLock);
m_ImageLayouts[imid].format = pCreateInfo->imageFormat;
m_ImageLayouts[imid].subresourceStates.clear();
m_ImageLayouts[imid].subresourceStates.push_back(ImageRegionState(
VK_QUEUE_FAMILY_IGNORED, range, UNKNOWN_PREV_IMG_LAYOUT, VK_IMAGE_LAYOUT_UNDEFINED));