Skip to content

Commit

Permalink
Reorganize the compressed-texture package (pixijs#6945)
Browse files Browse the repository at this point in the history
  • Loading branch information
bigtimebuddy authored Oct 16, 2020
1 parent cb4bff5 commit 697571b
Show file tree
Hide file tree
Showing 16 changed files with 151 additions and 159 deletions.
4 changes: 2 additions & 2 deletions bundles/pixi.js/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
"dependencies": {
"@pixi/accessibility": "5.3.2",
"@pixi/app": "5.3.2",
"@pixi/compressed-textures": "5.3.2",
"@pixi/constants": "5.3.2",
"@pixi/core": "5.3.2",
"@pixi/display": "5.3.2",
Expand All @@ -53,7 +54,6 @@
"@pixi/graphics": "5.3.2",
"@pixi/interaction": "5.3.2",
"@pixi/loaders": "5.3.2",
"@pixi/compressed-textures": "5.3.2",
"@pixi/math": "5.3.2",
"@pixi/mesh": "5.3.2",
"@pixi/mesh-extras": "5.3.2",
Expand All @@ -74,4 +74,4 @@
"@pixi/ticker": "5.3.2",
"@pixi/utils": "5.3.2"
}
}
}
1 change: 1 addition & 0 deletions packages/basis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
},
"dependencies": {
"@pixi/core": "5.3.2",
"@pixi/compressed-textures": "5.3.2",
"@pixi/constants": "5.3.2",
"@pixi/runner": "5.3.2",
"@pixi/loaders": "5.3.2"
Expand Down
3 changes: 2 additions & 1 deletion packages/basis/src/Basis.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { INTERNAL_FORMATS, TYPES } from '@pixi/constants';
import { TYPES } from '@pixi/constants';
import { INTERNAL_FORMATS } from '@pixi/compressed-textures';

/**
* The transcoding formats provided by basis_universal.
Expand Down
5 changes: 3 additions & 2 deletions packages/basis/src/BasisLoader.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { INTERNAL_FORMATS, TYPES, MIPMAP_MODES, ALPHA_MODES, FORMATS } from '@pixi/constants';
import { BaseTexture, BufferResource, CompressedTextureResource, Texture } from '@pixi/core';
import { TYPES, MIPMAP_MODES, ALPHA_MODES, FORMATS } from '@pixi/constants';
import { BaseTexture, BufferResource, Texture } from '@pixi/core';
import { CompressedTextureResource, INTERNAL_FORMATS } from '@pixi/compressed-textures';
import {
BASIS_FORMATS,
BASIS_FORMAT_TO_INTERNAL_FORMAT,
Expand Down
122 changes: 122 additions & 0 deletions packages/compressed-textures/src/const.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,122 @@
/**
* WebGL internal formats, including compressed texture formats provided by extensions
*
* @memberof PIXI
* @static
* @name INTERNAL_FORMATS
* @enum {number}
* @property {number} COMPRESSED_RGB_S3TC_DXT1_EXT=0x83F0
* @property {number} COMPRESSED_RGBA_S3TC_DXT1_EXT=0x83F1
* @property {number} COMPRESSED_RGBA_S3TC_DXT3_EXT=0x83F2
* @property {number} COMPRESSED_RGBA_S3TC_DXT5_EXT=0x83F3
* @property {number} COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917
* @property {number} COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918
* @property {number} COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919
* @property {number} COMPRESSED_SRGB_S3TC_DXT1_EXT=35916
* @property {number} COMPRESSED_R11_EAC=0x9270
* @property {number} COMPRESSED_SIGNED_R11_EAC=0x9271
* @property {number} COMPRESSED_RG11_EAC=0x9272
* @property {number} COMPRESSED_SIGNED_RG11_EAC=0x9273
* @property {number} COMPRESSED_RGB8_ETC2=0x9274
* @property {number} COMPRESSED_RGBA8_ETC2_EAC=0x9275
* @property {number} COMPRESSED_SRGB8_ETC2=0x9276
* @property {number} COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=0x9277
* @property {number} COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=0x9278
* @property {number} COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2= 0x9279
* @property {number} COMPRESSED_RGB_PVRTC_4BPPV1_IMG=0x8C00
* @property {number} COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=0x8C02
* @property {number} COMPRESSED_RGB_PVRTC_2BPPV1_IMG=0x8C01
* @property {number} COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=0x8C03
* @property {number} COMPRESSED_RGB_ETC1_WEBGL=0x8D64
* @property {number} COMPRESSED_RGB_ATC_WEBGL=0x8C92
* @property {number} COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=0x8C92
* @property {number} COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=0x87EE
*/
export enum INTERNAL_FORMATS {
// WEBGL_compressed_texture_s3tc
COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0,
COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1,
COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2,
COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3,

// WEBGL_compressed_texture_s3tc_srgb
COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 35917,
COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 35918,
COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 35919,
COMPRESSED_SRGB_S3TC_DXT1_EXT = 35916,

// WEBGL_compressed_texture_etc
COMPRESSED_R11_EAC = 0x9270,
COMPRESSED_SIGNED_R11_EAC = 0x9271,
COMPRESSED_RG11_EAC = 0x9272,
COMPRESSED_SIGNED_RG11_EAC = 0x9273,
COMPRESSED_RGB8_ETC2 = 0x9274,
COMPRESSED_RGBA8_ETC2_EAC = 0x9275,
COMPRESSED_SRGB8_ETC2 = 0x9276,
COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 0x9277,
COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9278,
COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9279,

// WEBGL_compressed_texture_pvrtc
COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00,
COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02,
COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01,
COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03,

// WEBGL_compressed_texture_etc1
COMPRESSED_RGB_ETC1_WEBGL = 0x8D64,

// WEBGL_compressed_texture_atc
COMPRESSED_RGB_ATC_WEBGL = 0x8C92,
COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C92, // TODO: Probably a bug on the MDN site
COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE,
}

/**
* Maps the compressed texture formats in {@link PIXI.INTERNAL_FORMATS} to the number of bytes taken by
* each texel.
*
* @memberof PIXI
* @static
* @ignore
*/
export const INTERNAL_FORMAT_TO_BYTES_PER_PIXEL: { [id: number]: number } = {
// WEBGL_compressed_texture_s3tc
[INTERNAL_FORMATS.COMPRESSED_RGB_S3TC_DXT1_EXT]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT1_EXT]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT3_EXT]: 1,
[INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT5_EXT]: 1,

// WEBGL_compressed_texture_s3tc
[INTERNAL_FORMATS.COMPRESSED_SRGB_S3TC_DXT1_EXT]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT]: 1,
[INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT]: 1,

// WEBGL_compressed_texture_etc
[INTERNAL_FORMATS.COMPRESSED_R11_EAC]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_SIGNED_R11_EAC]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_RG11_EAC]: 1,
[INTERNAL_FORMATS.COMPRESSED_SIGNED_RG11_EAC]: 1,
[INTERNAL_FORMATS.COMPRESSED_RGB8_ETC2]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_RGBA8_ETC2_EAC]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_SRGB8_ETC2]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2]: 0.5, // ~~
[INTERNAL_FORMATS.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2]: 0.5, // ~~

// WEBGL_compressed_texture_pvrtc
[INTERNAL_FORMATS.COMPRESSED_RGB_PVRTC_4BPPV1_IMG]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_RGB_PVRTC_2BPPV1_IMG]: 0.25,
[INTERNAL_FORMATS.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG]: 0.25,

// WEBGL_compressed_texture_etc1
[INTERNAL_FORMATS.COMPRESSED_RGB_ETC1_WEBGL]: 0.5,

// @see https://www.khronos.org/registry/OpenGL/extensions/AMD/AMD_compressed_ATC_texture.txt
// WEBGL_compressed_texture_atc
[INTERNAL_FORMATS.COMPRESSED_RGB_ATC_WEBGL]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL]: 1,
[INTERNAL_FORMATS.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL]: 1
};
12 changes: 3 additions & 9 deletions packages/compressed-textures/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
import { CompressedTextureLoader } from './CompressedTextureLoader';
import { DDSLoader } from './DDSLoader';
import { KTXLoader } from './KTXLoader';

export {
CompressedTextureLoader,
DDSLoader,
KTXLoader
};
export * from './const';
export * from './resources';
export * from './loaders';
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { LoaderResource } from '@pixi/loaders';

import type { Loader } from '@pixi/loaders';
import type { INTERNAL_FORMATS } from '@pixi/constants';
import type { INTERNAL_FORMATS } from '../const';
import type { ILoaderResource } from '@pixi/loaders';

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { CompressedTextureResource } from '@pixi/core';
import { INTERNAL_FORMATS, INTERNAL_FORMAT_TO_BYTES_PER_PIXEL } from '@pixi/constants';
import { CompressedTextureResource } from '../resources';
import { INTERNAL_FORMATS, INTERNAL_FORMAT_TO_BYTES_PER_PIXEL } from '../const';
import { LoaderResource } from '@pixi/loaders';
import { registerCompressedTextures } from './registerTextures';
import { registerCompressedTextures } from './registerCompressedTextures';

import type { ILoaderResource } from '@pixi/loaders';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { TYPES, INTERNAL_FORMAT_TO_BYTES_PER_PIXEL, FORMATS } from '@pixi/constants';
import { CompressedTextureResource, CompressedLevelBuffer } from '@pixi/core';
import { TYPES, FORMATS } from '@pixi/constants';
import { INTERNAL_FORMAT_TO_BYTES_PER_PIXEL } from '../const';
import { CompressedTextureResource, CompressedLevelBuffer } from '../resources/CompressedTextureResource';
import { LoaderResource } from '@pixi/loaders';
import { registerCompressedTextures } from './registerTextures';
import { registerCompressedTextures } from './registerCompressedTextures';

import type { ILoaderResource } from '@pixi/loaders';

Expand Down
3 changes: 3 additions & 0 deletions packages/compressed-textures/src/loaders/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from './CompressedTextureLoader';
export * from './DDSLoader';
export * from './KTXLoader';
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
import { MIPMAP_MODES, ALPHA_MODES } from '@pixi/constants';
import { BaseTexture, Texture } from '@pixi/core';

/* eslint-disable @typescript-eslint/no-unused-vars */
import type { CompressedTextureResource } from '@pixi/core';
/* eslint-enable @typescript-eslint/no-unused-vars */
import type { CompressedTextureResource } from '../resources/CompressedTextureResource';

/**
* Creates base-textures and textures for each compressed-texture resource and adds them into the global
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { Resource } from './Resource';
import { ViewableBuffer } from '../../geometry/ViewableBuffer';
import { BufferResource } from './BufferResource';
import { Resource, ViewableBuffer, BufferResource } from '@pixi/core';

interface IBlobOptions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { BlobResource } from './BlobResource';
import { INTERNAL_FORMAT_TO_BYTES_PER_PIXEL } from '@pixi/constants';
import { Renderer } from '../../Renderer';
import { BaseTexture } from '../BaseTexture';
import { GLTexture } from '../GLTexture';
import { INTERNAL_FORMAT_TO_BYTES_PER_PIXEL } from '../const';
import { Renderer, BaseTexture, GLTexture } from '@pixi/core';

import type { INTERNAL_FORMATS } from '@pixi/constants';
import type { INTERNAL_FORMATS } from '../const';

/**
* @ignore
Expand Down Expand Up @@ -80,8 +78,6 @@ export interface ICompressedTextureResourceOptions
export class CompressedTextureResource extends BlobResource
{
public format: INTERNAL_FORMATS;
public width: number;
public height: number;
public levels: number;

// Easy access to the WebGL extension providing support for the compression format via ContextSystem
Expand Down
2 changes: 2 additions & 0 deletions packages/compressed-textures/src/resources/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from './BlobResource';
export * from './CompressedTextureResource';
123 changes: 0 additions & 123 deletions packages/constants/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,129 +179,6 @@ export enum FORMATS {
DEPTH_STENCIL = 34041,
}

/**
* WebGL internal formats, including compressed texture formats provided by extensions
*
* @memberof PIXI
* @static
* @name INTERNAL_FORMATS
* @enum {number}
* @property {number} COMPRESSED_RGB_S3TC_DXT1_EXT=0x83F0
* @property {number} COMPRESSED_RGBA_S3TC_DXT1_EXT=0x83F1
* @property {number} COMPRESSED_RGBA_S3TC_DXT3_EXT=0x83F2
* @property {number} COMPRESSED_RGBA_S3TC_DXT5_EXT=0x83F3
* @property {number} COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917
* @property {number} COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918
* @property {number} COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919
* @property {number} COMPRESSED_SRGB_S3TC_DXT1_EXT=35916
* @property {number} COMPRESSED_R11_EAC=0x9270
* @property {number} COMPRESSED_SIGNED_R11_EAC=0x9271
* @property {number} COMPRESSED_RG11_EAC=0x9272
* @property {number} COMPRESSED_SIGNED_RG11_EAC=0x9273
* @property {number} COMPRESSED_RGB8_ETC2=0x9274
* @property {number} COMPRESSED_RGBA8_ETC2_EAC=0x9275
* @property {number} COMPRESSED_SRGB8_ETC2=0x9276
* @property {number} COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=0x9277
* @property {number} COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=0x9278
* @property {number} COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2= 0x9279
* @property {number} COMPRESSED_RGB_PVRTC_4BPPV1_IMG=0x8C00
* @property {number} COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=0x8C02
* @property {number} COMPRESSED_RGB_PVRTC_2BPPV1_IMG=0x8C01
* @property {number} COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=0x8C03
* @property {number} COMPRESSED_RGB_ETC1_WEBGL=0x8D64
* @property {number} COMPRESSED_RGB_ATC_WEBGL=0x8C92
* @property {number} COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=0x8C92
* @property {number} COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=0x87EE
*/
export enum INTERNAL_FORMATS {
// WEBGL_compressed_texture_s3tc
COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0,
COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1,
COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2,
COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3,

// WEBGL_compressed_texture_s3tc_srgb
COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT = 35917,
COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT = 35918,
COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT = 35919,
COMPRESSED_SRGB_S3TC_DXT1_EXT = 35916,

// WEBGL_compressed_texture_etc
COMPRESSED_R11_EAC = 0x9270,
COMPRESSED_SIGNED_R11_EAC = 0x9271,
COMPRESSED_RG11_EAC = 0x9272,
COMPRESSED_SIGNED_RG11_EAC = 0x9273,
COMPRESSED_RGB8_ETC2 = 0x9274,
COMPRESSED_RGBA8_ETC2_EAC = 0x9275,
COMPRESSED_SRGB8_ETC2 = 0x9276,
COMPRESSED_SRGB8_ALPHA8_ETC2_EAC = 0x9277,
COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9278,
COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2 = 0x9279,

// WEBGL_compressed_texture_pvrtc
COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00,
COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02,
COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01,
COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03,

// WEBGL_compressed_texture_etc1
COMPRESSED_RGB_ETC1_WEBGL = 0x8D64,

// WEBGL_compressed_texture_atc
COMPRESSED_RGB_ATC_WEBGL = 0x8C92,
COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C92, // TODO: Probably a bug on the MDN site
COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE,
}

/**
* Maps the compressed texture formats in {@link PIXI.INTERNAL_FORMATS} to the number of bytes taken by
* each texel.
*
* @memberof PIXI
* @static
* @ignore
*/
export const INTERNAL_FORMAT_TO_BYTES_PER_PIXEL: { [id: number]: number } = {
// WEBGL_compressed_texture_s3tc
[INTERNAL_FORMATS.COMPRESSED_RGB_S3TC_DXT1_EXT]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT1_EXT]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT3_EXT]: 1,
[INTERNAL_FORMATS.COMPRESSED_RGBA_S3TC_DXT5_EXT]: 1,

// WEBGL_compressed_texture_s3tc
[INTERNAL_FORMATS.COMPRESSED_SRGB_S3TC_DXT1_EXT]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT]: 1,
[INTERNAL_FORMATS.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT]: 1,

// WEBGL_compressed_texture_etc
[INTERNAL_FORMATS.COMPRESSED_R11_EAC]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_SIGNED_R11_EAC]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_RG11_EAC]: 1,
[INTERNAL_FORMATS.COMPRESSED_SIGNED_RG11_EAC]: 1,
[INTERNAL_FORMATS.COMPRESSED_RGB8_ETC2]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_RGBA8_ETC2_EAC]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_SRGB8_ETC2]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2]: 0.5, // ~~
[INTERNAL_FORMATS.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2]: 0.5, // ~~

// WEBGL_compressed_texture_pvrtc
[INTERNAL_FORMATS.COMPRESSED_RGB_PVRTC_4BPPV1_IMG]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_RGB_PVRTC_2BPPV1_IMG]: 0.25,
[INTERNAL_FORMATS.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG]: 0.25,

// WEBGL_compressed_texture_etc1
[INTERNAL_FORMATS.COMPRESSED_RGB_ETC1_WEBGL]: 0.5,

// @see https://www.khronos.org/registry/OpenGL/extensions/AMD/AMD_compressed_ATC_texture.txt
// WEBGL_compressed_texture_atc
[INTERNAL_FORMATS.COMPRESSED_RGB_ATC_WEBGL]: 0.5,
[INTERNAL_FORMATS.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL]: 1,
[INTERNAL_FORMATS.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL]: 1
};

/**
* Various GL target types.
*
Expand Down
Loading

0 comments on commit 697571b

Please sign in to comment.