Version: Unity 6.7 Alpha (6000.7)
LanguageEnglish
  • C#

SystemInfo.supportsGraphicsFence

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

public static bool supportsGraphicsFence;

Description

true if the platform supports GraphicsFences, otherwise false.

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.