Skip to content

Commit

Permalink
Strip any skipped resources (with no initial content data) on vulkan
Browse files Browse the repository at this point in the history
  • Loading branch information
baldurk committed Jan 16, 2025
1 parent 0f515d5 commit 9cfb2ac
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions renderdoc/driver/vulkan/vk_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1063,6 +1063,14 @@ rdcarray<ResourceId> VulkanResourceManager::InitialContentResources()

return aData.type < bData.type;
});

// remove any initial contents we don't want to serialise. This can happen if a resource is
// postponed, then not prepared, so we don't want to fail.
resources.removeIf([this](ResourceId a) {
const InitialContentData &aData = m_InitialContents[a].data;
return aData.type == eResUnknown;
});

return resources;
}

Expand Down

0 comments on commit 9cfb2ac

Please sign in to comment.