기술 자료

Unity Engine

Unity Engine

supportsGraphicsFence

true if the platform supports GraphicsFences, otherwise false.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static bool supportsGraphicsFence { get; }

Remarks

Graphics fences are supported on all platforms that support compute shaders.
A value of true doesn't mean that a GraphicsFence works on every platform. Graphics.CreateGraphicsFence and CommandBuffer.CreateGraphicsFence create an GraphicsFenceType.AsyncQueueSynchronisation fence. That type synchronizes with the async compute queue, so it also requires SystemInfo.supportsAsyncCompute. When this property is true and SystemInfo.supportsAsyncCompute is false, reading GraphicsFence.passed on that fence throws a
NotSupportedException
.