UNPKG

1.84 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}
27export interface WebGLExtensions {
28 drawBuffers?: WEBGL_draw_buffers;
29 depthTexture?: OES_texture_float;
30 loseContext?: WEBGL_lose_context;
31 vertexArrayObject?: OES_vertex_array_object;
32 anisotropicFiltering?: EXT_texture_filter_anisotropic;
33 uint32ElementIndex?: OES_element_index_uint;
34 floatTexture?: OES_texture_float;
35 floatTextureLinear?: OES_texture_float_linear;
36 textureHalfFloat?: OES_texture_half_float;
37 textureHalfFloatLinear?: OES_texture_half_float_linear;
38 colorBufferFloat?: WEBGL_color_buffer_float;
39 s3tc?: WEBGL_compressed_texture_s3tc;
40 s3tc_sRGB?: WEBGL_compressed_texture_s3tc_srgb;
41 etc?: WEBGL_compressed_texture_etc;
42 etc1?: WEBGL_compressed_texture_etc1;
43 pvrtc?: WEBGL_compressed_texture_pvrtc;
44 atc?: WEBGL_compressed_texture_atc;
45 astc?: WEBGL_compressed_texture_astc;
46}