Skip to content

Documentation / device / hasRedChannel

Function: hasRedChannel() ​

hasRedChannel(format): boolean

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

Check if a given texture format contains a red channel.

Parameters ​

format ​

TextureFormat

The texture format to be checked.

Returns ​

boolean

true if the texture format contains a red channel, otherwise false

Released under the MIT License.