Method ScheduleParallel
ScheduleParallel<TDescription>(TDescription, JobHandle)
Schedule the generated job to be run in parallel. This job may run at a later point and will run the job execution in parallel.
Declaration
public static JobHandle ScheduleParallel<TDescription>(this TDescription description, JobHandle dependency) where TDescription : ILambdaJobExecutionDescription
Parameters
Type | Name | Description |
---|---|---|
TDescription | description | The target object |
JobHandle | dependency | The handle identifying already scheduled jobs that could constrain this job. A job that writes to a component cannot run in parallel with other jobs that read or write that component. Jobs that only read the same components can run in parallel. |
Returns
Type | Description |
---|---|
JobHandle | A handle that combines the current Job with previous dependencies identified by the |
Type Parameters
Name | Description |
---|---|
TDescription | Type of target object |
ScheduleParallel<TDescription>(TDescription)
Schedule the generated job to be run in parallel and use the Dependency property of the containing system for both the input and output dependencies. This job may run at a later point and will run the job execution in parallel.
Declaration
public static void ScheduleParallel<TDescription>(this TDescription description) where TDescription : ILambdaJobExecutionDescription
Parameters
Type | Name | Description |
---|---|---|
TDescription | description | The target object |
Type Parameters
Name | Description |
---|---|
TDescription | Type of target object |