static void SelectionUIntArrayWithJob(NativeArray <uint> array) { var sortJob = new SelectionSortJob() { array = array }; sortJob.Schedule().Complete(); }
public unsafe static void SelectionSort<T>(NativeArray<T> array) where T : unmanaged, System.IComparable, System.IComparable<T> { var sortJob = new SelectionSortJob<T>() { array = (T*)array.GetUnsafePtr(), start = 0, end = array.Length }; sortJob.Schedule().Complete(); }