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

GraphicsFormatUtility.GetGraphicsFormat

Declaration

public static Experimental.Rendering.GraphicsFormat GetGraphicsFormat(TextureFormat format, bool isSRGB);

Declaration

public static Experimental.Rendering.GraphicsFormat GetGraphicsFormat(RenderTextureFormat format, bool isSRGB);

Declaration

public static Experimental.Rendering.GraphicsFormat GetGraphicsFormat(RenderTextureFormat format, RenderTextureReadWrite readWrite);

Description

Translates RenderTextureFormat or TextureFormat into GraphicsFormat.

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


Did you find this page useful? Please give it a rating: