Exemple #1
0
    static void SelectionUIntArrayWithJob(NativeArray <uint> array)
    {
        var sortJob = new SelectionSortJob()
        {
            array = array
        };

        sortJob.Schedule().Complete();
    }
Exemple #2
0
 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();
 }