Version: 2022.3
Experimental: this API is experimental and might be changed or removed in the future.

GraphicsFormatUtility.GetGraphicsFormat

切换到手册
public static Experimental.Rendering.GraphicsFormat GetGraphicsFormat (TextureFormat format, bool isSRGB);
public static Experimental.Rendering.GraphicsFormat GetGraphicsFormat (RenderTextureFormat format, bool isSRGB);
public static Experimental.Rendering.GraphicsFormat GetGraphicsFormat (RenderTextureFormat format, RenderTextureReadWrite readWrite);

描述

将 RenderTextureFormat 或 TextureFormat 转换为 GraphicsFormat。

In Gamma project color space, Unity returns a linear GraphicsFormat regardless of isSRGB and readWrite.