UNPKG

2.13 kBTypeScriptView Raw
1export interface WEBGL_compressed_texture_pvrtc {
2 COMPRESSED_RGB_PVRTC_4BPPV1_IMG: number;
3 COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: number;
4 COMPRESSED_RGB_PVRTC_2BPPV1_IMG: number;
5 COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: number;
6}
7export interface WEBGL_compressed_texture_etc {
8 COMPRESSED_R11_EAC: number;
9 COMPRESSED_SIGNED_R11_EAC: number;
10 COMPRESSED_RG11_EAC: number;
11 COMPRESSED_SIGNED_RG11_EAC: number;
12 COMPRESSED_RGB8_ETC2: number;
13 COMPRESSED_RGBA8_ETC2_EAC: number;
14 COMPRESSED_SRGB8_ETC2: number;
15 COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: number;
16 COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: number;
17 COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: number;
18}
19export interface WEBGL_compressed_texture_etc1 {
20 COMPRESSED_RGB_ETC1_WEBGL: number;
21}
22export interface WEBGL_compressed_texture_atc {
23 COMPRESSED_RGB_ATC_WEBGL: number;
24 COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL: number;
25 COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL: number;
26}
27interface EXT_texture_compression_bptc {
28 COMPRESSED_RGBA_BPTC_UNORM_EXT: number;
29 COMPRESSED_SRGB_ALPHA_BPTC_UNORM_EXT: number;
30 COMPRESSED_RGB_BPTC_SIGNED_FLOAT_EXT: number;
31 COMPRESSED_RGB_BPTC_UNSIGNED_FLOAT_EXT: number;
32}
33export interface WebGLExtensions {
34 drawBuffers?: WEBGL_draw_buffers;
35 depthTexture?: OES_texture_float;
36 loseContext?: WEBGL_lose_context;
37 vertexArrayObject?: OES_vertex_array_object;
38 anisotropicFiltering?: EXT_texture_filter_anisotropic;
39 uint32ElementIndex?: OES_element_index_uint;
40 floatTexture?: OES_texture_float;
41 floatTextureLinear?: OES_texture_float_linear;
42 textureHalfFloat?: OES_texture_half_float;
43 textureHalfFloatLinear?: OES_texture_half_float_linear;
44 colorBufferFloat?: WEBGL_color_buffer_float;
45 s3tc?: WEBGL_compressed_texture_s3tc;
46 s3tc_sRGB?: WEBGL_compressed_texture_s3tc_srgb;
47 etc?: WEBGL_compressed_texture_etc;
48 etc1?: WEBGL_compressed_texture_etc1;
49 pvrtc?: WEBGL_compressed_texture_pvrtc;
50 atc?: WEBGL_compressed_texture_atc;
51 astc?: WEBGL_compressed_texture_astc;
52 bptc?: EXT_texture_compression_bptc;
53}
54export {};