mirror of
https://github.com/photonstorm/phaser
synced 2024-11-25 22:20:44 +00:00
Merge pull request #5652 from vforsh/webgl-texture-compression
Improve types for WebGL texture compression support
This commit is contained in:
commit
f425880db9
2 changed files with 9 additions and 1 deletions
|
@ -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 = {
|
||||
|
|
8
src/renderer/webgl/typedefs/WebGLTextureCompression.js
Normal file
8
src/renderer/webgl/typedefs/WebGLTextureCompression.js
Normal 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.
|
||||
*/
|
Loading…
Reference in a new issue