Don't assert on empty geometry list in BLAS if there should be no geoms

This commit is contained in:
baldurk
2025-01-14 15:16:07 +00:00
parent c8223f5869
commit 049ad9787d
@@ -685,7 +685,10 @@ void VulkanAccelerationStructureManager::Apply(ResourceId id, VkInitialContents
rdcarray<VkAccelerationStructureBuildRangeInfoKHR> buildRangeInfos = asInfo->getBuildRanges();
rdcarray<VkAccelerationStructureGeometryKHR> geometry;
asInfo->convertGeometryData(geometry);
RDCASSERT(!geometry.empty());
if(!asInfo->geometryData.empty())
{
RDCASSERT(!geometry.empty());
}
RDCASSERT(asInfo->geometryData.size() == geometry.size());
// Copy over the input data from the upload mem to GPU local to increase build speed