文档

Unity Engine

Unity Engine

SupportsRandomWriteOnRenderTextureFormat(RenderTextureFormat)

Tests if a RenderTextureFormat can be used with RenderTexture.enableRandomWrite.
阅读时间1 分钟最后更新于 1 个月前

Definition

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

Parameters

The format to look up.

Returns

Type

Description

boolTrue if the format can be used for random access writes.

Remarks

Random access write might not be supported on all RenderTextureFormat as this is API/driver/hardware dependent.