protected override JobHandle OnUpdate(JobHandle inputDeps) { var updateMatrixPreviousJob = new UpdateMatrixPrevious { LocalToWorldTypeHandle = GetComponentTypeHandle <LocalToWorld>(true), MatrixPreviousTypeHandle = GetComponentTypeHandle <BuiltinMaterialPropertyUnity_MatrixPreviousM>(), LastSystemVersion = LastSystemVersion }; return(updateMatrixPreviousJob.Schedule(m_GroupPrev, inputDeps)); }
protected override JobHandle OnUpdate(JobHandle inputDeps) { var updateMatrixPreviousJob = new UpdateMatrixPrevious { LocalToWorldType = GetArchetypeChunkComponentType<LocalToWorld>(true), MatrixPreviousType = GetArchetypeChunkComponentType<BuiltinMaterialPropertyUnity_MatrixPreviousM>(), LastSystemVersion = LastSystemVersion }; var updateMatrixPreviousInverseJob = new UpdateMatrixPreviousInverse { WorldToLocalType = GetArchetypeChunkComponentType<WorldToLocal>(true), MatrixPreviousInverseType = GetArchetypeChunkComponentType<BuiltinMaterialPropertyUnity_MatrixPreviousMI>(), LastSystemVersion = LastSystemVersion }; var updateMatrixPreviousJobHandle = updateMatrixPreviousJob.Schedule(m_GroupPrev, inputDeps); var updateMatrixPreviousInverseJobHandle = updateMatrixPreviousInverseJob.Schedule( m_GroupPrevInverse, inputDeps); var combinedJob = JobHandle.CombineDependencies(updateMatrixPreviousJobHandle, updateMatrixPreviousInverseJobHandle); return combinedJob; }