Delegate ComputeAlgorithms.PushPullHookAsync
Allows hooking into the push-pull algorithm implemented by RunPushPullShaderAsync(ComputeShader, ComputeBuffer, int, int, int, int, int, uint, PushPullHookAsync, PushPullHookAsync, CancellationToken). This can be useful for working with values on a specific mip level, e.g. for extracting the accumulated values on the highest level. Supports multi-frame processing; the hook can expect to be called from a Unity coroutine.
Namespace: Holoride.ElasticSDK.Compute
Assembly: Holoride.ElasticSDK.Library.Runtime.dll
Syntax
public delegate UniTask ComputeAlgorithms.PushPullHookAsync(List<ComputeBuffer> pyramid)
Parameters
Type | Name | Description |
---|---|---|
List<ComputeBuffer> | pyramid | The compute buffer pyramid of the push-pull steps. The higher the level, the smaller the buffer. Think mipmaps. |
Returns
Type | Description |
---|---|
Cysharp.Threading.Tasks.UniTask |