Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IJobParallelForBatchExtensions

Extension class for the IJobParallelForBatch job type providing custom overloads for scheduling and running.
Read time 3 minutesLast updated 12 days ago

Definition

  • Type: Class
  • Namespace: Unity.Jobs
  • Assembly: UnityEngine.ManagedKernelModule
public static class IJobParallelForBatchExtensions

Static Methods

Method

Description

EarlyJobInitGathers and caches reflection data for the internal job system's managed bindings. Unity is responsible for calling this method - don't call it yourself.
RunExecutes the parallel batch job but on the main thread. See IJobParallelForBatchExtensions.Schedule for more information on how appending is performed.
RunBatchExecutes the parallel batch job but on the main thread. See IJobParallelForBatchExtensions.ScheduleBatch for more information on how appending is performed.
RunBatchByRefExecutes the parallel batch job but on the main thread. See IJobParallelForBatchExtensions.ScheduleBatch for more information on how appending is performed.
RunByRefExecutes the parallel batch job but on the main thread. See IJobParallelForBatchExtensions.Schedule for more information on how appending is performed.
ScheduleSchedules a job that will execute the parallel batch job for all
arrayLength
elements in batches of
indicesPerJobCount
. The Execute() method for Job T will be provided the start index and number of elements to safely operate on. In cases where
indicesPerJobCount
is not a multiple of
arrayLength
, the
count
provided to the Execute method of Job T will be smaller than the
indicesPerJobCount
specified here.
ScheduleBatchSchedules a job that will execute the parallel batch job for all
arrayLength
elements in batches of
indicesPerJobCount
. The Execute() method for Job T will be provided the start index and number of elements to safely operate on. In cases where
indicesPerJobCount
is not a multiple of
arrayLength
, the
count
provided to the Execute method of Job T will be smaller than the
indicesPerJobCount
specified here.
ScheduleBatchByRefSchedules a job that will execute the parallel batch job for all
arrayLength
elements in batches of
indicesPerJobCount
. The Execute() method for Job T will be provided the start index and number of elements to safely operate on. In cases where
indicesPerJobCount
is not a multiple of
arrayLength
, the
count
provided to the Execute method of Job T will be smaller than the
indicesPerJobCount
specified here.
ScheduleByRefSchedules a job that will execute the parallel batch job for all
arrayLength
elements in batches of
indicesPerJobCount
. The Execute() method for Job T will be provided the start index and number of elements to safely operate on. In cases where
indicesPerJobCount
is not a multiple of
arrayLength
, the
count
provided to the Execute method of Job T will be smaller than the
indicesPerJobCount
specified here.
ScheduleParallelSchedules a job that will execute the parallel batch job for all
arrayLength
elements in batches of
indicesPerJobCount
. The Execute() method for Job T will be provided the start index and number of elements to safely operate on. In cases where
indicesPerJobCount
is not a multiple of
arrayLength
, the
count
provided to the Execute method of Job T will be smaller than the
indicesPerJobCount
specified here.
ScheduleParallelByRefSchedules a job that will execute the parallel batch job for all
arrayLength
elements in batches of
indicesPerJobCount
. The Execute() method for Job T will be provided the start index and number of elements to safely operate on. In cases where
indicesPerJobCount
is not a multiple of
arrayLength
, the
count
provided to the Execute method of Job T will be smaller than the
indicesPerJobCount
specified here.