Class RenderTextureReader<T>
RenderTextureReader reads a RenderTexture from the GPU each frame and passes the data back through a provided callback.
Implements
Inherited Members
Namespace: UnityEngine.Perception.GroundTruth
Assembly: solution.dll
Syntax
public class RenderTextureReader<T> : IDisposable where T : struct
Type Parameters
Name | Description |
---|---|
T | The type of the raw texture data to be provided. |
Constructors
Name | Description |
---|---|
RenderTextureReader(RenderTexture, Camera, Action<int, NativeArray<T>, RenderTexture>) | Creates a new RenderTextureReader<T> for the given RenderTexture, Camera, and image readback callback |
Methods
Name | Description |
---|---|
Dispose() | Shut down the reader, waiting for all requests to return. |
WaitForAllImages() | Synchronously wait for all image requests to complete. |