docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ComputeBufferReader

    A utility for retrieving compute buffer data from the GPU.

    Inheritance
    object
    ComputeBufferReader
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Perception.GroundTruth.Utilities
    Assembly: Unity.Perception.Runtime.dll
    Syntax
    [MovedFrom("UnityEngine.Perception.GroundTruth")]
    public static class ComputeBufferReader

    Methods

    Capture<T>(CommandBuffer, ComputeBuffer, Action<int, NativeArray<T>>)

    Reads a ComputeBuffer from the GPU and passes the collected data back through a provided callback.

    Declaration
    public static void Capture<T>(CommandBuffer cmd, ComputeBuffer buffer, Action<int, NativeArray<T>> imageReadCallback) where T : struct
    Parameters
    Type Name Description
    CommandBuffer cmd
    ComputeBuffer buffer
    Action<int, NativeArray<T>> imageReadCallback
    Type Parameters
    Name Description
    T

    The type of the raw texture data to be provided.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)