Struct GPUSort
Utility class for sorting (key, value) pairs on the GPU.
Inherited Members
Namespace: UnityEngine.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public struct GPUSort
Constructors
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, 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. |