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 }
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); }
public static IntPtr CreateJobReflectionData(Type wrapperJobType, Type userJobType, object managedJobFunction0) { return(JobsUtility.CreateJobReflectionData(wrapperJobType, userJobType, managedJobFunction0, null, null)); }
public static IntPtr CreateJobReflectionData(Type type, object managedJobFunction0, object managedJobFunction1 = null, object managedJobFunction2 = null) { return(JobsUtility.CreateJobReflectionData(type, type, managedJobFunction0, managedJobFunction1, managedJobFunction2)); }