Skip to content

Documentation / device / hasAlphaChannel

Function: hasAlphaChannel() ​

hasAlphaChannel(format): boolean

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

Check if a given texture format contains an alpha channel.

Parameters ​

format ​

TextureFormat

The texture format to be checked.

Returns ​

boolean

true if the texture format contains an alpha channel, otherwise false

Released under the MIT License.