forked from cocos/cocos-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebGL.extras.d.ts
58 lines (54 loc) · 2.24 KB
/
webGL.extras.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
interface WEBGL_multi_draw {
multiDrawArraysWEBGL(mode: GLenum,
firstsList: GLint[] | Int32Array, firstsOffset: GLuint,
countsList: GLsizei[] | Int32Array, countsOffset: GLuint,
drawCount: GLsizei
): void;
multiDrawElementsWEBGL(mode: GLenum,
countsList: GLint[] | Int32Array, countsOffset: GLuint,
type: GLenum,
offsetsList: GLsizei[] | Int32Array, OffsetsOffset: GLuint,
drawCount: GLsizei
): void;
multiDrawArraysInstancedWEBGL(mode: GLenum,
firstsList: GLint[] | Int32Array, firstsOffset: GLuint,
countsList: GLsizei[] | Int32Array, countsOffset: GLuint,
instanceCountsList: GLsizei[] | Int32Array, instanceCountsOffset: GLuint,
drawCount: GLsizei
): void;
multiDrawElementsInstancedWEBGL(mode: GLenum,
countsList: GLint[] | Int32Array, countsOffset: GLuint,
type: GLenum,
offsetsList: GLsizei[] | Int32Array, OffsetsOffset: GLuint,
instanceCountsList: GLsizei[] | Int32Array, instanceCountsOffset: GLuint,
drawCount: GLsizei
): void;
}
interface EXT_color_buffer_half_float {
readonly RGBA16F_EXT: GLenum;
readonly RGB16F_EXT: GLenum;
readonly FRAMEBUFFER_ATTACHMENT_COMPONENT_TYPE_EXT: GLenum;
readonly UNSIGNED_NORMALIZED_EXT: GLenum;
}
// note that ETC1 is not supported with the compressedTexSubImage2D() method
interface WEBGL_compressed_texture_etc1 {
readonly COMPRESSED_RGB_ETC1_WEBGL: GLenum;
}
interface WEBGL_compressed_texture_etc {
readonly COMPRESSED_R11_EAC: GLenum;
readonly COMPRESSED_SIGNED_R11_EAC: GLenum;
readonly COMPRESSED_RG11_EAC: GLenum;
readonly COMPRESSED_SIGNED_RG11_EAC: GLenum;
readonly COMPRESSED_RGB8_ETC2: GLenum;
readonly COMPRESSED_RGBA8_ETC2_EAC: GLenum;
readonly COMPRESSED_SRGB8_ETC2: GLenum;
readonly COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: GLenum;
readonly COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
readonly COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: GLenum;
}
interface WEBGL_compressed_texture_pvrtc {
readonly COMPRESSED_RGB_PVRTC_4BPPV1_IMG: GLenum;
readonly COMPRESSED_RGBA_PVRTC_4BPPV1_IMG: GLenum;
readonly COMPRESSED_RGB_PVRTC_2BPPV1_IMG: GLenum;
readonly COMPRESSED_RGBA_PVRTC_2BPPV1_IMG: GLenum;
}