docs.unity.cn
    Show / Hide Table of Contents

    Struct GPUSort

    Utility class for sorting (key, value) pairs on the GPU.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.Rendering
    Syntax
    public struct GPUSort

    Constructors

    GPUSort(GPUSort.SystemResources)

    Initializes a re-usable GPU sorting instance.

    Declaration
    public GPUSort(GPUSort.SystemResources resources)
    Parameters
    Type Name Description
    GPUSort.SystemResources resources

    The required system resources.

    Methods

    Dispatch(CommandBuffer, GPUSort.Args)

    Sorts a list of (key, value) pairs.

    Declaration
    public void Dispatch(CommandBuffer cmd, GPUSort.Args args)
    Parameters
    Type Name Description
    CommandBuffer cmd

    Command buffer for recording the sorting commands.

    GPUSort.Args args

    Runtime arguments for the sorting.

    Extension Methods

    AnalyticsUtils.ToNestedColumn<T>(T, Boolean)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 08 September 2023