Experimental: this API is experimental and might be changed or removed in the future.

AsyncGPUReadbackRequest

struct in UnityEngine.Experimental.Rendering

매뉴얼로 전환

설명

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.

변수

doneChecks whether the request has been processed.
hasErrorThis property is true if the request has encountered an error.
layerCountNumber of layers in the current request.

Public 함수

GetDataFetches the data of a successful request.
UpdateTriggers an update of the request.
WaitForCompletionWaits for completion of the request.
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961