Пример #1
0
        public static unsafe JobHandle CombineDependencies(JobHandle *jobs, int count)
        {
#if UNITY_SINGLETHREADED_JOBS
            return(default(JobHandle));
#else
            var fence = new JobHandle();
            JobsUtility.ScheduleMultiDependencyJob(ref fence, JobsUtility.BatchScheduler, new IntPtr(jobs), count);
            return(fence);
#endif
        }
Пример #2
0
        public static unsafe JobHandle CombineDependencies(JobHandle *jobs, int count)
        {
            var fence = new JobHandle();

#if UNITY_SINGLETHREADED_JOBS
            fence.JobGroup = JobsUtility.GetFakeJobGroupId();
#if ENABLE_UNITY_COLLECTIONS_CHECKS
            JobsUtility.DebugDidScheduleJob(ref fence, jobs, count);
#endif
#else
            JobsUtility.ScheduleMultiDependencyJob(ref fence, JobsUtility.BatchScheduler, jobs, count);
#endif
            return(fence);
        }
Пример #3
0
 public static IntPtr CreateJobReflectionData(Type wrapperJobType, Type userJobType, object managedJobFunction0)
 {
     return(JobsUtility.CreateJobReflectionData(wrapperJobType, userJobType, managedJobFunction0, null, null));
 }
Пример #4
0
 public static IntPtr CreateJobReflectionData(Type type, object managedJobFunction0, object managedJobFunction1 = null, object managedJobFunction2 = null)
 {
     return(JobsUtility.CreateJobReflectionData(type, type, managedJobFunction0, managedJobFunction1, managedJobFunction2));
 }