升级obi

This commit is contained in:
2026-01-22 22:08:21 +08:00
parent 120b8cda26
commit 20f14322bc
1067 changed files with 149894 additions and 29583 deletions

View File

@@ -1,5 +1,6 @@
#if (OBI_BURST && OBI_MATHEMATICS && OBI_COLLECTIONS)
using System;
using Unity.Jobs;
namespace Obi
{
@@ -21,6 +22,20 @@ namespace Obi
batches.Remove(batch as BurstPinConstraintsBatch);
batch.Destroy();
}
public JobHandle ProjectRenderablePositions(JobHandle inputDeps)
{
for (int i = 0; i < batches.Count; ++i)
{
if (batches[i].enabled)
{
inputDeps = batches[i].ProjectRenderablePositions(inputDeps);
m_Solver.ScheduleBatchedJobsIfNeeded();
}
}
return inputDeps;
}
}
}
#endif