Esempio n. 1
0
        public static unsafe void UnsafeRunJobEntityBatch(void *jobPtr, EntityQuery query, NativeArray <Entity> limitToEntityArray, JobEntityBatchRunWithoutJobSystemDelegateLimitEntities functionPointer)
        {
#if ENABLE_UNITY_COLLECTIONS_CHECKS
            var access = query._GetImpl()->_Access;
            try
            {
                access->DependencyManager->IsInForEachDisallowStructuralChange++;
                functionPointer(&query, (Entity *)limitToEntityArray.GetUnsafeReadOnlyPtr(), limitToEntityArray.Length, jobPtr);
            }
            finally
            {
                access->DependencyManager->IsInForEachDisallowStructuralChange--;
            }
#else
            functionPointer(&myIterator, jobPtr);
#endif
        }
Esempio n. 2
0
 public static JobEntityBatchRunWithoutJobSystemDelegateLimitEntities BurstCompile(JobEntityBatchRunWithoutJobSystemDelegateLimitEntities d) => BurstCompiler.CompileFunctionPointer(d).Invoke;