Class ITriggerEventJobExtensions
A trigger event job extensions.
Inherited Members
Namespace: Unity.Physics
Assembly: Unity.Physics.dll
Syntax
public static class ITriggerEventJobExtensions
Methods
EarlyJobInit<T>()
Early job initialize.
Declaration
public static void EarlyJobInit<T>() where T : struct, ITriggerEventsJobBase
Type Parameters
| Name | Description |
|---|---|
| T | Generic type parameter. |
ScheduleParallel<T>(T, int, SimulationSingleton, JobHandle)
Schedules an ITriggerEventsJob for parallel processing.
Declaration
public static JobHandle ScheduleParallel<T>(this T job, int innerLoopBatchCount, SimulationSingleton simulationSingleton, JobHandle inputDeps) where T : struct, ITriggerEventsJobBase
Parameters
| Type | Name | Description |
|---|---|---|
| T | job | The scheduled job. |
| int | innerLoopBatchCount | Granularity in which workstealing is performed. A value of N, means the job queue will combine N job executions and perform them in an efficient inner loop. |
| SimulationSingleton | simulationSingleton | The simulation singleton. |
| JobHandle | inputDeps | The input dependencies. |
Returns
| Type | Description |
|---|---|
| JobHandle | A JobHandle. |
Type Parameters
| Name | Description |
|---|---|
| T | Generic type parameter. |
Schedule<T>(T, SimulationSingleton, JobHandle)
Schedules an ITriggerEventsJob for serial processing.
Declaration
public static JobHandle Schedule<T>(this T job, SimulationSingleton simulationSingleton, JobHandle inputDeps) where T : struct, ITriggerEventsJobBase
Parameters
| Type | Name | Description |
|---|---|---|
| T | job | The scheduled job. |
| SimulationSingleton | simulationSingleton | The simulation singleton. |
| JobHandle | inputDeps | The input dependencies. |
Returns
| Type | Description |
|---|---|
| JobHandle | A JobHandle. |
Type Parameters
| Name | Description |
|---|---|
| T | Generic type parameter. |