Version: 2022.2
언어: 한국어

Graphics.WaitOnAsyncGraphicsFence

매뉴얼로 전환
public static void WaitOnAsyncGraphicsFence (Rendering.GraphicsFence fence);
public static void WaitOnAsyncGraphicsFence (Rendering.GraphicsFence fence, Rendering.SynchronisationStage stage= SynchronisationStage.PixelProcessing);

파라미터

fence The GraphicsFence the GPU waits for. The fenceType of the graphics fence must be GraphicsFenceType.AsyncQueueSynchronisation.
stage Which SynchronisationStage to wait for.

설명

Instructs the GPU to pause processing of the queue until it passes through the GraphicsFence fence.

This method returns immediately on the CPU. Only GPU processing is affected by the graphics fence.

You can use the stage parameter to wait until the start of the next item's vertex or pixel processing. On some platforms, there's a gap between the end of vertex processing and the start of pixel processing in a draw call. If the last command was a compute shader dispatch, Unity ignores stage.

This method only works on platforms that support fences. Use SystemInfo.supportsGraphicsFence to check if a platform supports fences.

It's possible to create circular dependencies with this function that deadlock the GPU. See GraphicsFence for more information.

See Also: GraphicsFence, Graphics.CreateGraphicsFence.