holoride
Search Results for

    Show / Hide Table of Contents

    Class Inpaint

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

    Methods

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

    Runs an inpaint 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, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    ComputeBuffer buffer

    The buffer to run the inpaint 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.

    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, CancellationToken)

    Runs an inpaint 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, CancellationToken cancellationToken = default)
    Parameters
    Type Name Description
    ComputeBuffer buffer

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

    int resolution

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

    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