docs.unity.cn
    Show / Hide Table of Contents

    Struct SortJob<T, U>

    Returned by the NativeSortExtension.SortJob methods. Call Schedule() to schedule the sorting.

    Namespace: Unity.Collections
    Syntax
    public struct SortJob<T, U>
        where T : struct where U : IComparer<T>
    Type Parameters
    Name Description
    T

    Source type of elements

    U

    The comparer type.

    Fields

    Comp

    Comparer.

    Declaration
    public U Comp
    Field Value
    Type Description
    U

    Data

    Data.

    Declaration
    public T*Data
    Field Value
    Type Description
    T*

    Length

    Length.

    Declaration
    public int Length
    Field Value
    Type Description
    Int32

    Methods

    Schedule(JobHandle)

    Schedule jobs to sort values.

    Declaration
    public JobHandle Schedule(JobHandle inputDeps = null)
    Parameters
    Type Name Description
    JobHandle inputDeps

    The job handle or handles for any scheduled jobs that use this container.

    Returns
    Type Description
    JobHandle
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on Friday, May 21, 2021