Skip to content

Documentation / device / isSRGBTextureFormat

Function: isSRGBTextureFormat() ​

isSRGBTextureFormat(format): boolean

Defined in: libs/device/src/base_types.ts:1830

Check whether a given texture format is sRGB format.

Parameters ​

format ​

TextureFormat

The texture format to be checked.

Returns ​

boolean

true if the texture format is sRGB format, otherwise false

Released under the MIT License.