コード例 #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);
        }