GraphicsFormatUtility.GetGraphicsFormat
Экспериментальный: это API экспериментально и может быть изменено или удалено в будущем.
Declaration
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.
В гамме цветовое пространство проекта, Unity возвращает линейное GraphicsFormat независимо от isSRGB и readWrite.