docs.unity3d.com
    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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023