Class BatchReadback
Inherited Members
Namespace: Unity.Simulation
Assembly: Unity.Simulation.Capture.dll
Syntax
public class BatchReadback
Fields
BatchSize
Declaration
public int BatchSize
Field Value
| Type | Description |
|---|---|
| int |
Properties
Instance
Declaration
public static BatchReadback Instance { get; }
Property Value
| Type | Description |
|---|---|
| BatchReadback |
Methods
QueueReadback(AsyncRequest<CaptureState>, Channel, RenderTexture)
Queue a rendertexture for readback. The readback will happen after the number of requests reaches the batchsize.
Declaration
public void QueueReadback(AsyncRequest<CaptureCamera.CaptureState> request, CaptureCamera.Channel channel, RenderTexture renderTexture)
Parameters
| Type | Name | Description |
|---|---|---|
| AsyncRequest<CaptureCamera.CaptureState> | request | The request associated with this batch readback instance. |
| CaptureCamera.Channel | channel | Which channel this readback is for. |
| RenderTexture | renderTexture | Render texture to readback. |
Shutdown()
Declaration
public void Shutdown()