Пример #1
0
 unsafe public static JobHandle Schedule <T>(this T jobData, NativeRef <int> forEachCount, int innerloopBatchCount, JobHandle dependsOn = new JobHandle())
     where T : struct, IJobParallelForDefer
 {
     return(IJobParallelForDeferExtensions.Schedule(jobData, forEachCount.Ptr, innerloopBatchCount, dependsOn));
 }
Пример #2
0
 unsafe public static JobHandle Schedule <T>(this T jobData, NativeArray <int> forEachCount, int innerloopBatchCount, JobHandle dependsOn = new JobHandle())
     where T : struct, IJobParallelForDefer
 {
     return(IJobParallelForDeferExtensions.Schedule(jobData, (int *)NativeArrayUnsafeUtility.GetUnsafeBufferPointerWithoutChecks(forEachCount), innerloopBatchCount, dependsOn));
 }