struct in UnityEngine.Experimental.Rendering
/
Implemented in:UnityEngine.CoreModule
Represents an asynchronous request for a GPU resource.
Use AsyncGPUReadback.Request to retrieve an asynchronous request for a GPU resource. Pending requests are automatically updated each frame. The result is accessible only for a single frame once is successfully fulfilled and this request is then disposed of in the following frame. Common uses for this are to query AsyncGPUReadbackRequest.done each frame (or within a coroutine) and then call AsyncGPUReadbackRequest.GetData if the AsyncGPUReadbackRequest.hasError is false. You don't have to manage the request lifetime as this is managed internally. A request that has been disposed of will result in the AsyncGPUReadbackRequest.hasError property being true. See Also:AsyncGPUReadback.
done | Checks whether the request has been processed. |
hasError | This property is true if the request has encountered an error. |
layerCount | Number of layers in the current request. |
GetData | Fetches the data of a successful request. |
Update | Triggers an update of the request. |
WaitForCompletion | Waits for completion of the request. |