verifyCompressedTexture = function (data)
{
    // Check that mipmaps are power-of-two sized.
    // WebGL does not allow non-power-of-two textures for mip levels above 0.
    var mipmaps = data.mipmaps;
    for (var level = 1; level < mipmaps.length; level++)
    {
        var width = mipmaps[level].width;
        var height = mipmaps[level].height;
        if (!IsSizePowerOfTwo(width, height))
        {
            console.warn('Mip level ' + level + ' is not a power-of-two size: ' + width + 'x' + height);
            return false;
        }
    }

    // Check specific format requirements.
    var checker = formatCheckers[data.internalFormat];
    if (!checker)
    {
        console.warn('No format checker found for internal format ' + data.internalFormat + '. Assuming valid.');
        return true;
    }
    return checker(data);
}
Verify whether the given compressed texture data is valid.

Compare the dimensions of each mip layer to the rules for that
specific format.

Mip layer size is assumed to have been calculated correctly during parsing.

@function Phaser.Textures.Parsers.verifyCompressedTexture
@param {Phaser.Types.Textures.CompressedTextureData} data - The compressed texture data to verify.
@since 3.80.0
@returns {boolean} Whether the compressed texture data is valid.