mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-13 01:05:44 +00:00
Skip any barriers that we can't get an ID for (likely image is NULL)
This commit is contained in:
@@ -195,6 +195,12 @@ void VulkanResourceManager::RecordBarriers(vector< pair<ResourceId, ImageRegionS
|
||||
const VkImageMemoryBarrier &t = barriers[ti];
|
||||
|
||||
ResourceId id = m_State < WRITING ? GetNonDispWrapper(t.image)->id : GetResID(t.image);
|
||||
|
||||
if(id == ResourceId())
|
||||
{
|
||||
RDCERR("Couldn't get ID for image %p in barrier", t.image);
|
||||
continue;
|
||||
}
|
||||
|
||||
uint32_t nummips = t.subresourceRange.levelCount;
|
||||
uint32_t numslices = t.subresourceRange.layerCount;
|
||||
|
||||
Reference in New Issue
Block a user