ドキュメント

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
.