Struct SortJob<T, U>
Returned by the SortJob methods of NativeSortExtension. Call Schedule to schedule the sorting.
Namespace: Unity.Collections
Assembly: solution.dll
Syntax
public struct SortJob<T, U> where T : unmanaged where U : IComparer<T>
Type Parameters
| Name | Description |
|---|---|
| T | The type of the elements to sort. |
| U | The type of the comparer. |
Remarks
When RegisterGenericJobType is used on SortJob, to complete registration you must register SortJob<T,U>.SegmentSort and SortJob<T,U>.SegmentSortMerge.
Fields
| Name | Description |
|---|---|
| Comp | Comparison function. |
| Data | The data to sort. |
| Length | The length to sort. |
Methods
| Name | Description |
|---|---|
| Schedule(JobHandle) | Schedules this job. |