기술 자료

Unity Engine

Unity Engine

GetGraphicsFormat

Translates RenderTextureFormat or TextureFormat into GraphicsFormat.
읽는 시간 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
.