Merge pull request #5652 from vforsh/webgl-texture-compression

Improve types for WebGL texture compression support
This commit is contained in:
Richard Davey 2021-04-13 13:37:45 +01:00 committed by GitHub
commit f425880db9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 1 deletions

View file

@ -421,7 +421,7 @@ var WebGLRenderer = new Class({
* Stores the supported WebGL texture compression formats.
*
* @name Phaser.Renderer.WebGL.WebGLRenderer#compression
* @type {object}
* @type {Phaser.Types.Renderer.WebGL.WebGLTextureCompression}
* @since 3.8.0
*/
this.compression = {

View file

@ -0,0 +1,8 @@
/**
* @typedef {object} Phaser.Types.Renderer.WebGL.WebGLTextureCompression
* @since 3.55.0
*
* @property {object|null} ETC1 - Indicates if ETC1 compression is supported on current device (mostly Android).
* @property {object|null} PVRTC - Indicates if PVRTC compression is supported on current device (mostly iOS).
* @property {object|null} S3TC - Indicates if S3TC compression is supported on current device.
*/