mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-28 21:01:04 +00:00
make sure to fully initialis eserialised image memory barrier structs
This commit is contained in:
@@ -228,6 +228,17 @@ void VulkanResourceManager::SerialiseImageStates(Serialiser *m_pSerialiser, map<
|
||||
if(m_State < WRITING && srcit != states.end())
|
||||
{
|
||||
VkImageMemoryBarrier t;
|
||||
t.sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER;
|
||||
t.pNext = NULL;
|
||||
// VKTODO losing information? what are in/out mask and queues
|
||||
// if input/output mask are just same as memory barriers, for
|
||||
// the memory bound to the image, it's maybe fine as we don't need
|
||||
// those for this purpose, they were replayed when the non-collapsed
|
||||
// barrier happened.
|
||||
t.inputMask = 0;
|
||||
t.outputMask = 0;
|
||||
t.srcQueueFamilyIndex = 0;
|
||||
t.destQueueFamilyIndex = 0;
|
||||
t.image = (VkImage)GetCurrentResource(liveid).handle;
|
||||
t.oldLayout = VK_IMAGE_LAYOUT_UNDEFINED;
|
||||
t.newLayout = state.state;
|
||||
|
||||
Reference in New Issue
Block a user