Struct GPUSort
Utility class for sorting (key, value) pairs on the GPU.
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. |