Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SortJob<T, U>

Returned by the SortJob methods of NativeSortExtension. Call Schedule to schedule the sorting.
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Struct
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
public struct SortJob<T, U> where T : unmanaged where U : IComparer<T>

Remarks

When
RegisterGenericJobType
is used on SortJob, to complete registration you must register
SortJob<T,U>.SegmentSort
and
SortJob<T,U>.SegmentSortMerge
.

Fields

Value

Description

CompComparison function.
DataThe data to sort.
LengthThe length to sort.

Methods

Method

Description

ScheduleSchedules this job.

Structs

Struct

Description

SortJob<T, U>.SegmentSortFor internal use only.
SortJob<T, U>.SegmentSortMergeFor internal use only.