Strip any skipped resources (with no initial content data) on vulkan

This commit is contained in:
baldurk
2025-01-16 12:31:03 +00:00
parent 0f515d591a
commit 9cfb2acdfa
+8
View File
@@ -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;
}