文档

Unity Engine

Unity Engine

SupportsRenderTextureFormat(RenderTextureFormat)

Is render texture format supported?
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static bool SupportsRenderTextureFormat(RenderTextureFormat format)

Parameters

The format to look up.

Returns

Type

Description

boolTrue if the format is supported.

Remarks

Returns
true
if graphics card supports given RenderTextureFormat.
Additional Resources: Render Texture assets, RenderTexture class.