升级obi
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user