Phaser API Documentation

  Version: 
supportsCompressedTexture(baseFormat, [format])

Description:

Checks if the given compressed texture format is supported, or not.

Parameters:

name type arguments description
baseFormat string

The Base Format to check.

format GLenum <optional>

An optional GLenum format to check within the base format.

Returns:
Description:

True if the format is supported, otherwise false.

Type:
  • boolean
Since: 3.60.0