holoride
Search Results for

    Show / Hide Table of Contents

    Class BufferPair<T>

    A pair of equally sized CPU and GPU buffers.

    Inheritance
    object
    BufferPair<T>
    Namespace: Holoride.ElasticSDK
    Assembly: Holoride.ElasticSDK.Library.Runtime.dll
    Syntax
    public sealed class BufferPair<T>
    Type Parameters
    Name Description
    T

    Constructors

    BufferPair(int)

    Initializes a BufferPair.

    Declaration
    public BufferPair(int length)
    Parameters
    Type Name Description
    int length

    The number of elements in this buffer.

    Fields

    CPUBuffer

    The CPU buffer.

    Declaration
    public readonly T[] CPUBuffer
    Field Value
    Type Description
    T[]

    GPUBuffer

    The GPU buffer.

    Declaration
    public readonly ComputeBuffer GPUBuffer
    Field Value
    Type Description
    ComputeBuffer

    Methods

    CleanUp()

    Cleans up by releasing the GPUBuffer.

    Declaration
    [Obsolete("Use Dispose() instead.")]
    public void CleanUp()

    CopyFromCPUToGPU()

    Copies the data from the CPUBuffer to the GPUBuffer.

    Declaration
    public void CopyFromCPUToGPU()

    CopyFromGPUToCPU()

    Copies the data from the GPUBuffer to the CPUBuffer.

    Declaration
    public void CopyFromGPUToCPU()

    Dispose()

    Declaration
    public void Dispose()
    In This Article

    Back to top
    ©   holoride
    Privacy   Imprint