A* Pathfinding Project
4.3.4
The A* Pathfinding Project for Unity 3D
|
Automatic dependency tracking for the Unity Job System. More...
Automatic dependency tracking for the Unity Job System.
Uses reflection to find the [ReadOnly] and [WriteOnly] attributes on job data struct fields. These are used to automatically figure out dependencies between jobs.
A job that reads from an array depends on the last job that wrote to that array. A job that writes to an array depends on the last job that wrote to the array as well as all jobs that read from the array.
Classes | |
struct | JobDispose |
struct | JobRaycastCommandDummy |
struct | NativeArraySlot |
Public Member Functions | |
JobHandle | DeferDispose< T > (NativeArray< T > data) |
Disposes the native array after all the current jobs are finished with it. More... | |
void | Dispose () |
Diposes this tracker. More... | |
JobHandle | ScheduleBatch (NativeArray< UnityEngine.RaycastCommand > commands, NativeArray< UnityEngine.RaycastHit > results, int minCommandsPerJob) |
Schedules a raycast batch command. More... | |
Package Functions | |
void | JobReadsFrom (JobHandle job, long nativeArrayHash) |
void | JobWritesTo (JobHandle job, long nativeArrayHash) |
Package Attributes | |
List< NativeArraySlot > | slots |
Properties | |
JobHandle | AllWritesDependency [get] |
JobHandle that represents a dependency for all jobs. More... | |
JobHandle DeferDispose< T > | ( | NativeArray< T > | data | ) |
Disposes the native array after all the current jobs are finished with it.
T | : | struct |
void Dispose | ( | ) |
Diposes this tracker.
This will pool all used lists which makes the GC happy.
|
package |
|
package |
JobHandle ScheduleBatch | ( | NativeArray< UnityEngine.RaycastCommand > | commands, |
NativeArray< UnityEngine.RaycastHit > | results, | ||
int | minCommandsPerJob | ||
) |
Schedules a raycast batch command.
Like RaycastCommand.ScheduleBatch, but dependencies are tracked automatically.
|
package |
|
get |
JobHandle that represents a dependency for all jobs.
All native arrays that are written (and have been tracked by this tracker) to will have their final results in them when the returned job handle is complete.