文档

Unity Engine

Unity Engine

GetGraphicsFormat

Translates RenderTextureFormat or TextureFormat into GraphicsFormat.
阅读时间1 分钟最后更新于 1 个月前

Definition

GetGraphicsFormat(TextureFormat, bool)

Translates RenderTextureFormat or TextureFormat into GraphicsFormat.
public static GraphicsFormat GetGraphicsFormat(TextureFormat format, bool isSRGB)

Parameters


isSRGB

Returns

Type

Description

GraphicsFormat

Remarks

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

GetGraphicsFormat(RenderTextureFormat, bool)

Translates RenderTextureFormat or TextureFormat into GraphicsFormat.
public static GraphicsFormat GetGraphicsFormat(RenderTextureFormat format, bool isSRGB)

Parameters

Returns

Type

Description

GraphicsFormat

Remarks

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

GetGraphicsFormat(RenderTextureFormat, RenderTextureReadWrite)

Translates RenderTextureFormat or TextureFormat into GraphicsFormat.
public static GraphicsFormat GetGraphicsFormat(RenderTextureFormat format, RenderTextureReadWrite readWrite)

Parameters

Returns

Type

Description

GraphicsFormat

Remarks

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