holoride
Search Results for

    Show / Hide Table of Contents

    Class Blur

    Inheritance
    object
    Blur
    Namespace: Holoride.ElasticSDK.Compute
    Assembly: Holoride.ElasticSDK.Library.Runtime.dll
    Syntax
    [PublicAPI]
    public static class Blur

    Methods

    DispatchAsync(ComputeBuffer, IList<ComputeBuffer>, int, uint, CancellationToken)

    Runs a blur push-pull-shader on the specified buffer. Buffers are expected to contain data that is semantically a 2D float array with equal edge lengths (i.e. is squared).

    Declaration
    public static UniTask DispatchAsync(ComputeBuffer buffer, IList<ComputeBuffer> pyramid, int resolution, uint maxLevel, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    ComputeBuffer buffer

    The buffer to run the blur on. Serves as initial seed and final output buffer.

    IList<ComputeBuffer> pyramid

    The pyramid of buffers used by the algorithm. Typically created via AllocatePyramid(IList<ComputeBuffer>, int, int, uint).

    int resolution

    The edge length/resolution of the 2D data stored in the buffer.

    uint maxLevel

    The number of levels to blur. Higher values lead to more blur. Zero means no blur.

    CancellationToken cancellationToken

    The token to monitor for cancellation requests.

    Returns
    Type Description
    Cysharp.Threading.Tasks.UniTask

    An enumerator over the progress of the algorithm, expected to run in a Unity coroutine.

    DispatchAsync(ComputeBuffer, int, uint, CancellationToken)

    Runs a blur push-pull-shader on the specified buffer. Buffers are expected to contain data that is semantically a 2D float array with equal edge lengths (i.e. is squared).

    Declaration
    public static UniTask DispatchAsync(ComputeBuffer buffer, int resolution, uint maxLevel, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    ComputeBuffer buffer

    The buffer to run the blur on. Serves as initial seed and final output buffer.

    int resolution

    The edge length/resolution of the 2D data stored in the buffer.

    uint maxLevel

    The number of levels to blur. Higher values lead to more blur. Zero means no blur.

    CancellationToken cancellationToken

    The token to monitor for cancellation requests.

    Returns
    Type Description
    Cysharp.Threading.Tasks.UniTask

    An enumerator over the progress of the algorithm, expected to run in a Unity coroutine.

    Initialize()

    Declaration
    public static void Initialize()
    In This Article

    Back to top
    ©   holoride
    Privacy   Imprint