Skip to main content

web_sys/features/
gen_WebGlRenderingContext.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    #[wasm_bindgen(
8        extends = "::js_sys::Object",
9        js_name = "WebGLRenderingContext",
10        typescript_type = "WebGLRenderingContext"
11    )]
12    #[derive(Debug, Clone, PartialEq, Eq)]
13    #[doc = "The `WebGlRenderingContext` class."]
14    #[doc = ""]
15    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext)"]
16    #[doc = ""]
17    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
18    pub type WebGlRenderingContext;
19    #[wasm_bindgen(method, getter, js_class = "WebGLRenderingContext", js_name = "canvas")]
20    #[doc = "Getter for the `canvas` field of this object."]
21    #[doc = ""]
22    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/canvas)"]
23    #[doc = ""]
24    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
25    pub fn canvas(this: &WebGlRenderingContext) -> Option<::js_sys::Object>;
26    #[wasm_bindgen(
27        method,
28        getter,
29        js_class = "WebGLRenderingContext",
30        js_name = "drawingBufferWidth"
31    )]
32    #[doc = "Getter for the `drawingBufferWidth` field of this object."]
33    #[doc = ""]
34    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawingBufferWidth)"]
35    #[doc = ""]
36    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
37    pub fn drawing_buffer_width(this: &WebGlRenderingContext) -> i32;
38    #[wasm_bindgen(
39        method,
40        getter,
41        js_class = "WebGLRenderingContext",
42        js_name = "drawingBufferHeight"
43    )]
44    #[doc = "Getter for the `drawingBufferHeight` field of this object."]
45    #[doc = ""]
46    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawingBufferHeight)"]
47    #[doc = ""]
48    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
49    pub fn drawing_buffer_height(this: &WebGlRenderingContext) -> i32;
50    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "bufferData")]
51    #[doc = "The `bufferData()` method."]
52    #[doc = ""]
53    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"]
54    #[doc = ""]
55    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
56    pub fn buffer_data_with_i32(this: &WebGlRenderingContext, target: u32, size: i32, usage: u32);
57    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "bufferData")]
58    #[doc = "The `bufferData()` method."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
63    pub fn buffer_data_with_f64(this: &WebGlRenderingContext, target: u32, size: f64, usage: u32);
64    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "bufferData")]
65    #[doc = "The `bufferData()` method."]
66    #[doc = ""]
67    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"]
68    #[doc = ""]
69    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
70    pub fn buffer_data_with_opt_array_buffer(
71        this: &WebGlRenderingContext,
72        target: u32,
73        data: Option<&::js_sys::ArrayBuffer>,
74        usage: u32,
75    );
76    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "bufferData")]
77    #[doc = "The `bufferData()` method."]
78    #[doc = ""]
79    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"]
80    #[doc = ""]
81    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
82    pub fn buffer_data_with_array_buffer_view(
83        this: &WebGlRenderingContext,
84        target: u32,
85        data: &::js_sys::Object,
86        usage: u32,
87    );
88    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "bufferData")]
89    #[doc = "The `bufferData()` method."]
90    #[doc = ""]
91    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"]
92    #[doc = ""]
93    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
94    pub fn buffer_data_with_u8_array(
95        this: &WebGlRenderingContext,
96        target: u32,
97        data: &[u8],
98        usage: u32,
99    );
100    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "bufferData")]
101    #[doc = "The `bufferData()` method."]
102    #[doc = ""]
103    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferData)"]
104    #[doc = ""]
105    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
106    pub fn buffer_data_with_js_u8_array(
107        this: &WebGlRenderingContext,
108        target: u32,
109        data: &::js_sys::Uint8Array,
110        usage: u32,
111    );
112    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "bufferSubData")]
113    #[doc = "The `bufferSubData()` method."]
114    #[doc = ""]
115    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"]
116    #[doc = ""]
117    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
118    pub fn buffer_sub_data_with_i32_and_array_buffer(
119        this: &WebGlRenderingContext,
120        target: u32,
121        offset: i32,
122        data: &::js_sys::ArrayBuffer,
123    );
124    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "bufferSubData")]
125    #[doc = "The `bufferSubData()` method."]
126    #[doc = ""]
127    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"]
128    #[doc = ""]
129    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
130    pub fn buffer_sub_data_with_f64_and_array_buffer(
131        this: &WebGlRenderingContext,
132        target: u32,
133        offset: f64,
134        data: &::js_sys::ArrayBuffer,
135    );
136    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "bufferSubData")]
137    #[doc = "The `bufferSubData()` method."]
138    #[doc = ""]
139    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"]
140    #[doc = ""]
141    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
142    pub fn buffer_sub_data_with_i32_and_array_buffer_view(
143        this: &WebGlRenderingContext,
144        target: u32,
145        offset: i32,
146        data: &::js_sys::Object,
147    );
148    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "bufferSubData")]
149    #[doc = "The `bufferSubData()` method."]
150    #[doc = ""]
151    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"]
152    #[doc = ""]
153    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
154    pub fn buffer_sub_data_with_f64_and_array_buffer_view(
155        this: &WebGlRenderingContext,
156        target: u32,
157        offset: f64,
158        data: &::js_sys::Object,
159    );
160    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "bufferSubData")]
161    #[doc = "The `bufferSubData()` method."]
162    #[doc = ""]
163    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"]
164    #[doc = ""]
165    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
166    pub fn buffer_sub_data_with_i32_and_u8_array(
167        this: &WebGlRenderingContext,
168        target: u32,
169        offset: i32,
170        data: &[u8],
171    );
172    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "bufferSubData")]
173    #[doc = "The `bufferSubData()` method."]
174    #[doc = ""]
175    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"]
176    #[doc = ""]
177    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
178    pub fn buffer_sub_data_with_f64_and_u8_array(
179        this: &WebGlRenderingContext,
180        target: u32,
181        offset: f64,
182        data: &[u8],
183    );
184    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "bufferSubData")]
185    #[doc = "The `bufferSubData()` method."]
186    #[doc = ""]
187    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"]
188    #[doc = ""]
189    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
190    pub fn buffer_sub_data_with_i32_and_js_u8_array(
191        this: &WebGlRenderingContext,
192        target: u32,
193        offset: i32,
194        data: &::js_sys::Uint8Array,
195    );
196    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "bufferSubData")]
197    #[doc = "The `bufferSubData()` method."]
198    #[doc = ""]
199    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bufferSubData)"]
200    #[doc = ""]
201    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
202    pub fn buffer_sub_data_with_f64_and_js_u8_array(
203        this: &WebGlRenderingContext,
204        target: u32,
205        offset: f64,
206        data: &::js_sys::Uint8Array,
207    );
208    #[wasm_bindgen(method, js_class = "WebGLRenderingContext")]
209    #[doc = "The `commit()` method."]
210    #[doc = ""]
211    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/commit)"]
212    #[doc = ""]
213    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
214    pub fn commit(this: &WebGlRenderingContext);
215    #[wasm_bindgen(
216        method,
217        js_class = "WebGLRenderingContext",
218        js_name = "compressedTexImage2D"
219    )]
220    #[doc = "The `compressedTexImage2D()` method."]
221    #[doc = ""]
222    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexImage2D)"]
223    #[doc = ""]
224    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
225    pub fn compressed_tex_image_2d_with_array_buffer_view(
226        this: &WebGlRenderingContext,
227        target: u32,
228        level: i32,
229        internalformat: u32,
230        width: i32,
231        height: i32,
232        border: i32,
233        data: &::js_sys::Object,
234    );
235    #[wasm_bindgen(
236        method,
237        js_class = "WebGLRenderingContext",
238        js_name = "compressedTexImage2D"
239    )]
240    #[doc = "The `compressedTexImage2D()` method."]
241    #[doc = ""]
242    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexImage2D)"]
243    #[doc = ""]
244    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
245    pub fn compressed_tex_image_2d_with_u8_array(
246        this: &WebGlRenderingContext,
247        target: u32,
248        level: i32,
249        internalformat: u32,
250        width: i32,
251        height: i32,
252        border: i32,
253        data: &[u8],
254    );
255    #[wasm_bindgen(
256        method,
257        js_class = "WebGLRenderingContext",
258        js_name = "compressedTexImage2D"
259    )]
260    #[doc = "The `compressedTexImage2D()` method."]
261    #[doc = ""]
262    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexImage2D)"]
263    #[doc = ""]
264    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
265    pub fn compressed_tex_image_2d_with_js_u8_array(
266        this: &WebGlRenderingContext,
267        target: u32,
268        level: i32,
269        internalformat: u32,
270        width: i32,
271        height: i32,
272        border: i32,
273        data: &::js_sys::Uint8Array,
274    );
275    #[wasm_bindgen(
276        method,
277        js_class = "WebGLRenderingContext",
278        js_name = "compressedTexSubImage2D"
279    )]
280    #[doc = "The `compressedTexSubImage2D()` method."]
281    #[doc = ""]
282    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D)"]
283    #[doc = ""]
284    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
285    pub fn compressed_tex_sub_image_2d_with_array_buffer_view(
286        this: &WebGlRenderingContext,
287        target: u32,
288        level: i32,
289        xoffset: i32,
290        yoffset: i32,
291        width: i32,
292        height: i32,
293        format: u32,
294        data: &::js_sys::Object,
295    );
296    #[wasm_bindgen(
297        method,
298        js_class = "WebGLRenderingContext",
299        js_name = "compressedTexSubImage2D"
300    )]
301    #[doc = "The `compressedTexSubImage2D()` method."]
302    #[doc = ""]
303    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D)"]
304    #[doc = ""]
305    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
306    pub fn compressed_tex_sub_image_2d_with_u8_array(
307        this: &WebGlRenderingContext,
308        target: u32,
309        level: i32,
310        xoffset: i32,
311        yoffset: i32,
312        width: i32,
313        height: i32,
314        format: u32,
315        data: &mut [u8],
316    );
317    #[wasm_bindgen(
318        method,
319        js_class = "WebGLRenderingContext",
320        js_name = "compressedTexSubImage2D"
321    )]
322    #[doc = "The `compressedTexSubImage2D()` method."]
323    #[doc = ""]
324    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compressedTexSubImage2D)"]
325    #[doc = ""]
326    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
327    pub fn compressed_tex_sub_image_2d_with_js_u8_array(
328        this: &WebGlRenderingContext,
329        target: u32,
330        level: i32,
331        xoffset: i32,
332        yoffset: i32,
333        width: i32,
334        height: i32,
335        format: u32,
336        data: &::js_sys::Uint8Array,
337    );
338    #[wasm_bindgen(
339        catch,
340        method,
341        js_class = "WebGLRenderingContext",
342        js_name = "readPixels"
343    )]
344    #[doc = "The `readPixels()` method."]
345    #[doc = ""]
346    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/readPixels)"]
347    #[doc = ""]
348    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
349    pub fn read_pixels_with_opt_array_buffer_view(
350        this: &WebGlRenderingContext,
351        x: i32,
352        y: i32,
353        width: i32,
354        height: i32,
355        format: u32,
356        type_: u32,
357        pixels: Option<&::js_sys::Object>,
358    ) -> Result<(), JsValue>;
359    #[wasm_bindgen(
360        catch,
361        method,
362        js_class = "WebGLRenderingContext",
363        js_name = "readPixels"
364    )]
365    #[doc = "The `readPixels()` method."]
366    #[doc = ""]
367    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/readPixels)"]
368    #[doc = ""]
369    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
370    pub fn read_pixels_with_opt_u8_array(
371        this: &WebGlRenderingContext,
372        x: i32,
373        y: i32,
374        width: i32,
375        height: i32,
376        format: u32,
377        type_: u32,
378        pixels: Option<&mut [u8]>,
379    ) -> Result<(), JsValue>;
380    #[wasm_bindgen(
381        catch,
382        method,
383        js_class = "WebGLRenderingContext",
384        js_name = "readPixels"
385    )]
386    #[doc = "The `readPixels()` method."]
387    #[doc = ""]
388    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/readPixels)"]
389    #[doc = ""]
390    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
391    pub fn read_pixels_with_opt_js_u8_array(
392        this: &WebGlRenderingContext,
393        x: i32,
394        y: i32,
395        width: i32,
396        height: i32,
397        format: u32,
398        type_: u32,
399        pixels: Option<&::js_sys::Uint8Array>,
400    ) -> Result<(), JsValue>;
401    #[wasm_bindgen(
402        catch,
403        method,
404        js_class = "WebGLRenderingContext",
405        js_name = "texImage2D"
406    )]
407    #[doc = "The `texImage2D()` method."]
408    #[doc = ""]
409    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"]
410    #[doc = ""]
411    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
412    pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_opt_array_buffer_view(
413        this: &WebGlRenderingContext,
414        target: u32,
415        level: i32,
416        internalformat: i32,
417        width: i32,
418        height: i32,
419        border: i32,
420        format: u32,
421        type_: u32,
422        pixels: Option<&::js_sys::Object>,
423    ) -> Result<(), JsValue>;
424    #[wasm_bindgen(
425        catch,
426        method,
427        js_class = "WebGLRenderingContext",
428        js_name = "texImage2D"
429    )]
430    #[doc = "The `texImage2D()` method."]
431    #[doc = ""]
432    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"]
433    #[doc = ""]
434    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
435    pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_opt_u8_array(
436        this: &WebGlRenderingContext,
437        target: u32,
438        level: i32,
439        internalformat: i32,
440        width: i32,
441        height: i32,
442        border: i32,
443        format: u32,
444        type_: u32,
445        pixels: Option<&[u8]>,
446    ) -> Result<(), JsValue>;
447    #[wasm_bindgen(
448        catch,
449        method,
450        js_class = "WebGLRenderingContext",
451        js_name = "texImage2D"
452    )]
453    #[doc = "The `texImage2D()` method."]
454    #[doc = ""]
455    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"]
456    #[doc = ""]
457    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
458    pub fn tex_image_2d_with_i32_and_i32_and_i32_and_format_and_type_and_opt_js_u8_array(
459        this: &WebGlRenderingContext,
460        target: u32,
461        level: i32,
462        internalformat: i32,
463        width: i32,
464        height: i32,
465        border: i32,
466        format: u32,
467        type_: u32,
468        pixels: Option<&::js_sys::Uint8Array>,
469    ) -> Result<(), JsValue>;
470    #[cfg(feature = "ImageBitmap")]
471    #[wasm_bindgen(
472        catch,
473        method,
474        js_class = "WebGLRenderingContext",
475        js_name = "texImage2D"
476    )]
477    #[doc = "The `texImage2D()` method."]
478    #[doc = ""]
479    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"]
480    #[doc = ""]
481    #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WebGlRenderingContext`*"]
482    pub fn tex_image_2d_with_u32_and_u32_and_image_bitmap(
483        this: &WebGlRenderingContext,
484        target: u32,
485        level: i32,
486        internalformat: i32,
487        format: u32,
488        type_: u32,
489        pixels: &ImageBitmap,
490    ) -> Result<(), JsValue>;
491    #[cfg(feature = "ImageData")]
492    #[wasm_bindgen(
493        catch,
494        method,
495        js_class = "WebGLRenderingContext",
496        js_name = "texImage2D"
497    )]
498    #[doc = "The `texImage2D()` method."]
499    #[doc = ""]
500    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"]
501    #[doc = ""]
502    #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WebGlRenderingContext`*"]
503    pub fn tex_image_2d_with_u32_and_u32_and_image_data(
504        this: &WebGlRenderingContext,
505        target: u32,
506        level: i32,
507        internalformat: i32,
508        format: u32,
509        type_: u32,
510        pixels: &ImageData,
511    ) -> Result<(), JsValue>;
512    #[cfg(feature = "HtmlImageElement")]
513    #[wasm_bindgen(
514        catch,
515        method,
516        js_class = "WebGLRenderingContext",
517        js_name = "texImage2D"
518    )]
519    #[doc = "The `texImage2D()` method."]
520    #[doc = ""]
521    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"]
522    #[doc = ""]
523    #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WebGlRenderingContext`*"]
524    pub fn tex_image_2d_with_u32_and_u32_and_image(
525        this: &WebGlRenderingContext,
526        target: u32,
527        level: i32,
528        internalformat: i32,
529        format: u32,
530        type_: u32,
531        image: &HtmlImageElement,
532    ) -> Result<(), JsValue>;
533    #[cfg(feature = "HtmlCanvasElement")]
534    #[wasm_bindgen(
535        catch,
536        method,
537        js_class = "WebGLRenderingContext",
538        js_name = "texImage2D"
539    )]
540    #[doc = "The `texImage2D()` method."]
541    #[doc = ""]
542    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"]
543    #[doc = ""]
544    #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WebGlRenderingContext`*"]
545    pub fn tex_image_2d_with_u32_and_u32_and_canvas(
546        this: &WebGlRenderingContext,
547        target: u32,
548        level: i32,
549        internalformat: i32,
550        format: u32,
551        type_: u32,
552        canvas: &HtmlCanvasElement,
553    ) -> Result<(), JsValue>;
554    #[cfg(feature = "HtmlVideoElement")]
555    #[wasm_bindgen(
556        catch,
557        method,
558        js_class = "WebGLRenderingContext",
559        js_name = "texImage2D"
560    )]
561    #[doc = "The `texImage2D()` method."]
562    #[doc = ""]
563    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"]
564    #[doc = ""]
565    #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WebGlRenderingContext`*"]
566    pub fn tex_image_2d_with_u32_and_u32_and_video(
567        this: &WebGlRenderingContext,
568        target: u32,
569        level: i32,
570        internalformat: i32,
571        format: u32,
572        type_: u32,
573        video: &HtmlVideoElement,
574    ) -> Result<(), JsValue>;
575    #[cfg(feature = "VideoFrame")]
576    #[wasm_bindgen(
577        catch,
578        method,
579        js_class = "WebGLRenderingContext",
580        js_name = "texImage2D"
581    )]
582    #[doc = "The `texImage2D()` method."]
583    #[doc = ""]
584    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texImage2D)"]
585    #[doc = ""]
586    #[doc = "*This API requires the following crate features to be activated: `VideoFrame`, `WebGlRenderingContext`*"]
587    pub fn tex_image_2d_with_u32_and_u32_and_video_frame(
588        this: &WebGlRenderingContext,
589        target: u32,
590        level: i32,
591        internalformat: i32,
592        format: u32,
593        type_: u32,
594        video_frame: &VideoFrame,
595    ) -> Result<(), JsValue>;
596    #[wasm_bindgen(
597        catch,
598        method,
599        js_class = "WebGLRenderingContext",
600        js_name = "texSubImage2D"
601    )]
602    #[doc = "The `texSubImage2D()` method."]
603    #[doc = ""]
604    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"]
605    #[doc = ""]
606    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
607    pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_opt_array_buffer_view(
608        this: &WebGlRenderingContext,
609        target: u32,
610        level: i32,
611        xoffset: i32,
612        yoffset: i32,
613        width: i32,
614        height: i32,
615        format: u32,
616        type_: u32,
617        pixels: Option<&::js_sys::Object>,
618    ) -> Result<(), JsValue>;
619    #[wasm_bindgen(
620        catch,
621        method,
622        js_class = "WebGLRenderingContext",
623        js_name = "texSubImage2D"
624    )]
625    #[doc = "The `texSubImage2D()` method."]
626    #[doc = ""]
627    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"]
628    #[doc = ""]
629    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
630    pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_opt_u8_array(
631        this: &WebGlRenderingContext,
632        target: u32,
633        level: i32,
634        xoffset: i32,
635        yoffset: i32,
636        width: i32,
637        height: i32,
638        format: u32,
639        type_: u32,
640        pixels: Option<&[u8]>,
641    ) -> Result<(), JsValue>;
642    #[wasm_bindgen(
643        catch,
644        method,
645        js_class = "WebGLRenderingContext",
646        js_name = "texSubImage2D"
647    )]
648    #[doc = "The `texSubImage2D()` method."]
649    #[doc = ""]
650    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"]
651    #[doc = ""]
652    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
653    pub fn tex_sub_image_2d_with_i32_and_i32_and_u32_and_type_and_opt_js_u8_array(
654        this: &WebGlRenderingContext,
655        target: u32,
656        level: i32,
657        xoffset: i32,
658        yoffset: i32,
659        width: i32,
660        height: i32,
661        format: u32,
662        type_: u32,
663        pixels: Option<&::js_sys::Uint8Array>,
664    ) -> Result<(), JsValue>;
665    #[cfg(feature = "ImageBitmap")]
666    #[wasm_bindgen(
667        catch,
668        method,
669        js_class = "WebGLRenderingContext",
670        js_name = "texSubImage2D"
671    )]
672    #[doc = "The `texSubImage2D()` method."]
673    #[doc = ""]
674    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"]
675    #[doc = ""]
676    #[doc = "*This API requires the following crate features to be activated: `ImageBitmap`, `WebGlRenderingContext`*"]
677    pub fn tex_sub_image_2d_with_u32_and_u32_and_image_bitmap(
678        this: &WebGlRenderingContext,
679        target: u32,
680        level: i32,
681        xoffset: i32,
682        yoffset: i32,
683        format: u32,
684        type_: u32,
685        pixels: &ImageBitmap,
686    ) -> Result<(), JsValue>;
687    #[cfg(feature = "ImageData")]
688    #[wasm_bindgen(
689        catch,
690        method,
691        js_class = "WebGLRenderingContext",
692        js_name = "texSubImage2D"
693    )]
694    #[doc = "The `texSubImage2D()` method."]
695    #[doc = ""]
696    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"]
697    #[doc = ""]
698    #[doc = "*This API requires the following crate features to be activated: `ImageData`, `WebGlRenderingContext`*"]
699    pub fn tex_sub_image_2d_with_u32_and_u32_and_image_data(
700        this: &WebGlRenderingContext,
701        target: u32,
702        level: i32,
703        xoffset: i32,
704        yoffset: i32,
705        format: u32,
706        type_: u32,
707        pixels: &ImageData,
708    ) -> Result<(), JsValue>;
709    #[cfg(feature = "HtmlImageElement")]
710    #[wasm_bindgen(
711        catch,
712        method,
713        js_class = "WebGLRenderingContext",
714        js_name = "texSubImage2D"
715    )]
716    #[doc = "The `texSubImage2D()` method."]
717    #[doc = ""]
718    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"]
719    #[doc = ""]
720    #[doc = "*This API requires the following crate features to be activated: `HtmlImageElement`, `WebGlRenderingContext`*"]
721    pub fn tex_sub_image_2d_with_u32_and_u32_and_image(
722        this: &WebGlRenderingContext,
723        target: u32,
724        level: i32,
725        xoffset: i32,
726        yoffset: i32,
727        format: u32,
728        type_: u32,
729        image: &HtmlImageElement,
730    ) -> Result<(), JsValue>;
731    #[cfg(feature = "HtmlCanvasElement")]
732    #[wasm_bindgen(
733        catch,
734        method,
735        js_class = "WebGLRenderingContext",
736        js_name = "texSubImage2D"
737    )]
738    #[doc = "The `texSubImage2D()` method."]
739    #[doc = ""]
740    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"]
741    #[doc = ""]
742    #[doc = "*This API requires the following crate features to be activated: `HtmlCanvasElement`, `WebGlRenderingContext`*"]
743    pub fn tex_sub_image_2d_with_u32_and_u32_and_canvas(
744        this: &WebGlRenderingContext,
745        target: u32,
746        level: i32,
747        xoffset: i32,
748        yoffset: i32,
749        format: u32,
750        type_: u32,
751        canvas: &HtmlCanvasElement,
752    ) -> Result<(), JsValue>;
753    #[cfg(feature = "HtmlVideoElement")]
754    #[wasm_bindgen(
755        catch,
756        method,
757        js_class = "WebGLRenderingContext",
758        js_name = "texSubImage2D"
759    )]
760    #[doc = "The `texSubImage2D()` method."]
761    #[doc = ""]
762    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"]
763    #[doc = ""]
764    #[doc = "*This API requires the following crate features to be activated: `HtmlVideoElement`, `WebGlRenderingContext`*"]
765    pub fn tex_sub_image_2d_with_u32_and_u32_and_video(
766        this: &WebGlRenderingContext,
767        target: u32,
768        level: i32,
769        xoffset: i32,
770        yoffset: i32,
771        format: u32,
772        type_: u32,
773        video: &HtmlVideoElement,
774    ) -> Result<(), JsValue>;
775    #[cfg(feature = "VideoFrame")]
776    #[wasm_bindgen(
777        catch,
778        method,
779        js_class = "WebGLRenderingContext",
780        js_name = "texSubImage2D"
781    )]
782    #[doc = "The `texSubImage2D()` method."]
783    #[doc = ""]
784    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texSubImage2D)"]
785    #[doc = ""]
786    #[doc = "*This API requires the following crate features to be activated: `VideoFrame`, `WebGlRenderingContext`*"]
787    pub fn tex_sub_image_2d_with_u32_and_u32_and_video_frame(
788        this: &WebGlRenderingContext,
789        target: u32,
790        level: i32,
791        xoffset: i32,
792        yoffset: i32,
793        format: u32,
794        type_: u32,
795        video_frame: &VideoFrame,
796    ) -> Result<(), JsValue>;
797    #[cfg(feature = "WebGlUniformLocation")]
798    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform1fv")]
799    #[doc = "The `uniform1fv()` method."]
800    #[doc = ""]
801    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1fv)"]
802    #[doc = ""]
803    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
804    pub fn uniform1fv_with_f32_array(
805        this: &WebGlRenderingContext,
806        location: Option<&WebGlUniformLocation>,
807        data: &[f32],
808    );
809    #[cfg(feature = "WebGlUniformLocation")]
810    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform1fv")]
811    #[doc = "The `uniform1fv()` method."]
812    #[doc = ""]
813    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1fv)"]
814    #[doc = ""]
815    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
816    pub fn uniform1fv_with_js_f32_array(
817        this: &WebGlRenderingContext,
818        location: Option<&WebGlUniformLocation>,
819        data: &::js_sys::Float32Array,
820    );
821    #[cfg(feature = "WebGlUniformLocation")]
822    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform1fv")]
823    #[doc = "The `uniform1fv()` method."]
824    #[doc = ""]
825    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1fv)"]
826    #[doc = ""]
827    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
828    pub fn uniform1fv_with_f32_sequence(
829        this: &WebGlRenderingContext,
830        location: Option<&WebGlUniformLocation>,
831        data: &::wasm_bindgen::JsValue,
832    );
833    #[cfg(feature = "WebGlUniformLocation")]
834    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform1iv")]
835    #[doc = "The `uniform1iv()` method."]
836    #[doc = ""]
837    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1iv)"]
838    #[doc = ""]
839    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
840    pub fn uniform1iv_with_i32_array(
841        this: &WebGlRenderingContext,
842        location: Option<&WebGlUniformLocation>,
843        data: &[i32],
844    );
845    #[cfg(feature = "WebGlUniformLocation")]
846    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform1iv")]
847    #[doc = "The `uniform1iv()` method."]
848    #[doc = ""]
849    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1iv)"]
850    #[doc = ""]
851    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
852    pub fn uniform1iv_with_js_i32_array(
853        this: &WebGlRenderingContext,
854        location: Option<&WebGlUniformLocation>,
855        data: &::js_sys::Int32Array,
856    );
857    #[cfg(feature = "WebGlUniformLocation")]
858    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform1iv")]
859    #[doc = "The `uniform1iv()` method."]
860    #[doc = ""]
861    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1iv)"]
862    #[doc = ""]
863    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
864    pub fn uniform1iv_with_i32_sequence(
865        this: &WebGlRenderingContext,
866        location: Option<&WebGlUniformLocation>,
867        data: &::wasm_bindgen::JsValue,
868    );
869    #[cfg(feature = "WebGlUniformLocation")]
870    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform2fv")]
871    #[doc = "The `uniform2fv()` method."]
872    #[doc = ""]
873    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2fv)"]
874    #[doc = ""]
875    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
876    pub fn uniform2fv_with_f32_array(
877        this: &WebGlRenderingContext,
878        location: Option<&WebGlUniformLocation>,
879        data: &[f32],
880    );
881    #[cfg(feature = "WebGlUniformLocation")]
882    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform2fv")]
883    #[doc = "The `uniform2fv()` method."]
884    #[doc = ""]
885    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2fv)"]
886    #[doc = ""]
887    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
888    pub fn uniform2fv_with_js_f32_array(
889        this: &WebGlRenderingContext,
890        location: Option<&WebGlUniformLocation>,
891        data: &::js_sys::Float32Array,
892    );
893    #[cfg(feature = "WebGlUniformLocation")]
894    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform2fv")]
895    #[doc = "The `uniform2fv()` method."]
896    #[doc = ""]
897    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2fv)"]
898    #[doc = ""]
899    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
900    pub fn uniform2fv_with_f32_sequence(
901        this: &WebGlRenderingContext,
902        location: Option<&WebGlUniformLocation>,
903        data: &::wasm_bindgen::JsValue,
904    );
905    #[cfg(feature = "WebGlUniformLocation")]
906    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform2iv")]
907    #[doc = "The `uniform2iv()` method."]
908    #[doc = ""]
909    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2iv)"]
910    #[doc = ""]
911    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
912    pub fn uniform2iv_with_i32_array(
913        this: &WebGlRenderingContext,
914        location: Option<&WebGlUniformLocation>,
915        data: &[i32],
916    );
917    #[cfg(feature = "WebGlUniformLocation")]
918    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform2iv")]
919    #[doc = "The `uniform2iv()` method."]
920    #[doc = ""]
921    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2iv)"]
922    #[doc = ""]
923    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
924    pub fn uniform2iv_with_js_i32_array(
925        this: &WebGlRenderingContext,
926        location: Option<&WebGlUniformLocation>,
927        data: &::js_sys::Int32Array,
928    );
929    #[cfg(feature = "WebGlUniformLocation")]
930    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform2iv")]
931    #[doc = "The `uniform2iv()` method."]
932    #[doc = ""]
933    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2iv)"]
934    #[doc = ""]
935    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
936    pub fn uniform2iv_with_i32_sequence(
937        this: &WebGlRenderingContext,
938        location: Option<&WebGlUniformLocation>,
939        data: &::wasm_bindgen::JsValue,
940    );
941    #[cfg(feature = "WebGlUniformLocation")]
942    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform3fv")]
943    #[doc = "The `uniform3fv()` method."]
944    #[doc = ""]
945    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3fv)"]
946    #[doc = ""]
947    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
948    pub fn uniform3fv_with_f32_array(
949        this: &WebGlRenderingContext,
950        location: Option<&WebGlUniformLocation>,
951        data: &[f32],
952    );
953    #[cfg(feature = "WebGlUniformLocation")]
954    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform3fv")]
955    #[doc = "The `uniform3fv()` method."]
956    #[doc = ""]
957    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3fv)"]
958    #[doc = ""]
959    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
960    pub fn uniform3fv_with_js_f32_array(
961        this: &WebGlRenderingContext,
962        location: Option<&WebGlUniformLocation>,
963        data: &::js_sys::Float32Array,
964    );
965    #[cfg(feature = "WebGlUniformLocation")]
966    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform3fv")]
967    #[doc = "The `uniform3fv()` method."]
968    #[doc = ""]
969    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3fv)"]
970    #[doc = ""]
971    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
972    pub fn uniform3fv_with_f32_sequence(
973        this: &WebGlRenderingContext,
974        location: Option<&WebGlUniformLocation>,
975        data: &::wasm_bindgen::JsValue,
976    );
977    #[cfg(feature = "WebGlUniformLocation")]
978    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform3iv")]
979    #[doc = "The `uniform3iv()` method."]
980    #[doc = ""]
981    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3iv)"]
982    #[doc = ""]
983    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
984    pub fn uniform3iv_with_i32_array(
985        this: &WebGlRenderingContext,
986        location: Option<&WebGlUniformLocation>,
987        data: &[i32],
988    );
989    #[cfg(feature = "WebGlUniformLocation")]
990    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform3iv")]
991    #[doc = "The `uniform3iv()` method."]
992    #[doc = ""]
993    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3iv)"]
994    #[doc = ""]
995    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
996    pub fn uniform3iv_with_js_i32_array(
997        this: &WebGlRenderingContext,
998        location: Option<&WebGlUniformLocation>,
999        data: &::js_sys::Int32Array,
1000    );
1001    #[cfg(feature = "WebGlUniformLocation")]
1002    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform3iv")]
1003    #[doc = "The `uniform3iv()` method."]
1004    #[doc = ""]
1005    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3iv)"]
1006    #[doc = ""]
1007    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
1008    pub fn uniform3iv_with_i32_sequence(
1009        this: &WebGlRenderingContext,
1010        location: Option<&WebGlUniformLocation>,
1011        data: &::wasm_bindgen::JsValue,
1012    );
1013    #[cfg(feature = "WebGlUniformLocation")]
1014    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform4fv")]
1015    #[doc = "The `uniform4fv()` method."]
1016    #[doc = ""]
1017    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4fv)"]
1018    #[doc = ""]
1019    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
1020    pub fn uniform4fv_with_f32_array(
1021        this: &WebGlRenderingContext,
1022        location: Option<&WebGlUniformLocation>,
1023        data: &[f32],
1024    );
1025    #[cfg(feature = "WebGlUniformLocation")]
1026    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform4fv")]
1027    #[doc = "The `uniform4fv()` method."]
1028    #[doc = ""]
1029    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4fv)"]
1030    #[doc = ""]
1031    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
1032    pub fn uniform4fv_with_js_f32_array(
1033        this: &WebGlRenderingContext,
1034        location: Option<&WebGlUniformLocation>,
1035        data: &::js_sys::Float32Array,
1036    );
1037    #[cfg(feature = "WebGlUniformLocation")]
1038    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform4fv")]
1039    #[doc = "The `uniform4fv()` method."]
1040    #[doc = ""]
1041    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4fv)"]
1042    #[doc = ""]
1043    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
1044    pub fn uniform4fv_with_f32_sequence(
1045        this: &WebGlRenderingContext,
1046        location: Option<&WebGlUniformLocation>,
1047        data: &::wasm_bindgen::JsValue,
1048    );
1049    #[cfg(feature = "WebGlUniformLocation")]
1050    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform4iv")]
1051    #[doc = "The `uniform4iv()` method."]
1052    #[doc = ""]
1053    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4iv)"]
1054    #[doc = ""]
1055    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
1056    pub fn uniform4iv_with_i32_array(
1057        this: &WebGlRenderingContext,
1058        location: Option<&WebGlUniformLocation>,
1059        data: &[i32],
1060    );
1061    #[cfg(feature = "WebGlUniformLocation")]
1062    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform4iv")]
1063    #[doc = "The `uniform4iv()` method."]
1064    #[doc = ""]
1065    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4iv)"]
1066    #[doc = ""]
1067    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
1068    pub fn uniform4iv_with_js_i32_array(
1069        this: &WebGlRenderingContext,
1070        location: Option<&WebGlUniformLocation>,
1071        data: &::js_sys::Int32Array,
1072    );
1073    #[cfg(feature = "WebGlUniformLocation")]
1074    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "uniform4iv")]
1075    #[doc = "The `uniform4iv()` method."]
1076    #[doc = ""]
1077    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4iv)"]
1078    #[doc = ""]
1079    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
1080    pub fn uniform4iv_with_i32_sequence(
1081        this: &WebGlRenderingContext,
1082        location: Option<&WebGlUniformLocation>,
1083        data: &::wasm_bindgen::JsValue,
1084    );
1085    #[cfg(feature = "WebGlUniformLocation")]
1086    #[wasm_bindgen(
1087        method,
1088        js_class = "WebGLRenderingContext",
1089        js_name = "uniformMatrix2fv"
1090    )]
1091    #[doc = "The `uniformMatrix2fv()` method."]
1092    #[doc = ""]
1093    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix2fv)"]
1094    #[doc = ""]
1095    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
1096    pub fn uniform_matrix2fv_with_f32_array(
1097        this: &WebGlRenderingContext,
1098        location: Option<&WebGlUniformLocation>,
1099        transpose: bool,
1100        data: &[f32],
1101    );
1102    #[cfg(feature = "WebGlUniformLocation")]
1103    #[wasm_bindgen(
1104        method,
1105        js_class = "WebGLRenderingContext",
1106        js_name = "uniformMatrix2fv"
1107    )]
1108    #[doc = "The `uniformMatrix2fv()` method."]
1109    #[doc = ""]
1110    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix2fv)"]
1111    #[doc = ""]
1112    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
1113    pub fn uniform_matrix2fv_with_js_f32_array(
1114        this: &WebGlRenderingContext,
1115        location: Option<&WebGlUniformLocation>,
1116        transpose: bool,
1117        data: &::js_sys::Float32Array,
1118    );
1119    #[cfg(feature = "WebGlUniformLocation")]
1120    #[wasm_bindgen(
1121        method,
1122        js_class = "WebGLRenderingContext",
1123        js_name = "uniformMatrix2fv"
1124    )]
1125    #[doc = "The `uniformMatrix2fv()` method."]
1126    #[doc = ""]
1127    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix2fv)"]
1128    #[doc = ""]
1129    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
1130    pub fn uniform_matrix2fv_with_f32_sequence(
1131        this: &WebGlRenderingContext,
1132        location: Option<&WebGlUniformLocation>,
1133        transpose: bool,
1134        data: &::wasm_bindgen::JsValue,
1135    );
1136    #[cfg(feature = "WebGlUniformLocation")]
1137    #[wasm_bindgen(
1138        method,
1139        js_class = "WebGLRenderingContext",
1140        js_name = "uniformMatrix3fv"
1141    )]
1142    #[doc = "The `uniformMatrix3fv()` method."]
1143    #[doc = ""]
1144    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix3fv)"]
1145    #[doc = ""]
1146    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
1147    pub fn uniform_matrix3fv_with_f32_array(
1148        this: &WebGlRenderingContext,
1149        location: Option<&WebGlUniformLocation>,
1150        transpose: bool,
1151        data: &[f32],
1152    );
1153    #[cfg(feature = "WebGlUniformLocation")]
1154    #[wasm_bindgen(
1155        method,
1156        js_class = "WebGLRenderingContext",
1157        js_name = "uniformMatrix3fv"
1158    )]
1159    #[doc = "The `uniformMatrix3fv()` method."]
1160    #[doc = ""]
1161    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix3fv)"]
1162    #[doc = ""]
1163    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
1164    pub fn uniform_matrix3fv_with_js_f32_array(
1165        this: &WebGlRenderingContext,
1166        location: Option<&WebGlUniformLocation>,
1167        transpose: bool,
1168        data: &::js_sys::Float32Array,
1169    );
1170    #[cfg(feature = "WebGlUniformLocation")]
1171    #[wasm_bindgen(
1172        method,
1173        js_class = "WebGLRenderingContext",
1174        js_name = "uniformMatrix3fv"
1175    )]
1176    #[doc = "The `uniformMatrix3fv()` method."]
1177    #[doc = ""]
1178    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix3fv)"]
1179    #[doc = ""]
1180    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
1181    pub fn uniform_matrix3fv_with_f32_sequence(
1182        this: &WebGlRenderingContext,
1183        location: Option<&WebGlUniformLocation>,
1184        transpose: bool,
1185        data: &::wasm_bindgen::JsValue,
1186    );
1187    #[cfg(feature = "WebGlUniformLocation")]
1188    #[wasm_bindgen(
1189        method,
1190        js_class = "WebGLRenderingContext",
1191        js_name = "uniformMatrix4fv"
1192    )]
1193    #[doc = "The `uniformMatrix4fv()` method."]
1194    #[doc = ""]
1195    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix4fv)"]
1196    #[doc = ""]
1197    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
1198    pub fn uniform_matrix4fv_with_f32_array(
1199        this: &WebGlRenderingContext,
1200        location: Option<&WebGlUniformLocation>,
1201        transpose: bool,
1202        data: &[f32],
1203    );
1204    #[cfg(feature = "WebGlUniformLocation")]
1205    #[wasm_bindgen(
1206        method,
1207        js_class = "WebGLRenderingContext",
1208        js_name = "uniformMatrix4fv"
1209    )]
1210    #[doc = "The `uniformMatrix4fv()` method."]
1211    #[doc = ""]
1212    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix4fv)"]
1213    #[doc = ""]
1214    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
1215    pub fn uniform_matrix4fv_with_js_f32_array(
1216        this: &WebGlRenderingContext,
1217        location: Option<&WebGlUniformLocation>,
1218        transpose: bool,
1219        data: &::js_sys::Float32Array,
1220    );
1221    #[cfg(feature = "WebGlUniformLocation")]
1222    #[wasm_bindgen(
1223        method,
1224        js_class = "WebGLRenderingContext",
1225        js_name = "uniformMatrix4fv"
1226    )]
1227    #[doc = "The `uniformMatrix4fv()` method."]
1228    #[doc = ""]
1229    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniformMatrix4fv)"]
1230    #[doc = ""]
1231    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
1232    pub fn uniform_matrix4fv_with_f32_sequence(
1233        this: &WebGlRenderingContext,
1234        location: Option<&WebGlUniformLocation>,
1235        transpose: bool,
1236        data: &::wasm_bindgen::JsValue,
1237    );
1238    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "activeTexture")]
1239    #[doc = "The `activeTexture()` method."]
1240    #[doc = ""]
1241    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/activeTexture)"]
1242    #[doc = ""]
1243    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1244    pub fn active_texture(this: &WebGlRenderingContext, texture: u32);
1245    #[cfg(all(feature = "WebGlProgram", feature = "WebGlShader",))]
1246    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "attachShader")]
1247    #[doc = "The `attachShader()` method."]
1248    #[doc = ""]
1249    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/attachShader)"]
1250    #[doc = ""]
1251    #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`, `WebGlShader`*"]
1252    pub fn attach_shader(
1253        this: &WebGlRenderingContext,
1254        program: &WebGlProgram,
1255        shader: &WebGlShader,
1256    );
1257    #[cfg(feature = "WebGlProgram")]
1258    #[wasm_bindgen(
1259        method,
1260        js_class = "WebGLRenderingContext",
1261        js_name = "bindAttribLocation"
1262    )]
1263    #[doc = "The `bindAttribLocation()` method."]
1264    #[doc = ""]
1265    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindAttribLocation)"]
1266    #[doc = ""]
1267    #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"]
1268    pub fn bind_attrib_location(
1269        this: &WebGlRenderingContext,
1270        program: &WebGlProgram,
1271        index: u32,
1272        name: &str,
1273    );
1274    #[cfg(feature = "WebGlBuffer")]
1275    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "bindBuffer")]
1276    #[doc = "The `bindBuffer()` method."]
1277    #[doc = ""]
1278    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindBuffer)"]
1279    #[doc = ""]
1280    #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`, `WebGlRenderingContext`*"]
1281    pub fn bind_buffer(this: &WebGlRenderingContext, target: u32, buffer: Option<&WebGlBuffer>);
1282    #[cfg(feature = "WebGlFramebuffer")]
1283    #[wasm_bindgen(
1284        method,
1285        js_class = "WebGLRenderingContext",
1286        js_name = "bindFramebuffer"
1287    )]
1288    #[doc = "The `bindFramebuffer()` method."]
1289    #[doc = ""]
1290    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindFramebuffer)"]
1291    #[doc = ""]
1292    #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `WebGlRenderingContext`*"]
1293    pub fn bind_framebuffer(
1294        this: &WebGlRenderingContext,
1295        target: u32,
1296        framebuffer: Option<&WebGlFramebuffer>,
1297    );
1298    #[cfg(feature = "WebGlRenderbuffer")]
1299    #[wasm_bindgen(
1300        method,
1301        js_class = "WebGLRenderingContext",
1302        js_name = "bindRenderbuffer"
1303    )]
1304    #[doc = "The `bindRenderbuffer()` method."]
1305    #[doc = ""]
1306    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindRenderbuffer)"]
1307    #[doc = ""]
1308    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"]
1309    pub fn bind_renderbuffer(
1310        this: &WebGlRenderingContext,
1311        target: u32,
1312        renderbuffer: Option<&WebGlRenderbuffer>,
1313    );
1314    #[cfg(feature = "WebGlTexture")]
1315    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "bindTexture")]
1316    #[doc = "The `bindTexture()` method."]
1317    #[doc = ""]
1318    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/bindTexture)"]
1319    #[doc = ""]
1320    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"]
1321    pub fn bind_texture(this: &WebGlRenderingContext, target: u32, texture: Option<&WebGlTexture>);
1322    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "blendColor")]
1323    #[doc = "The `blendColor()` method."]
1324    #[doc = ""]
1325    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendColor)"]
1326    #[doc = ""]
1327    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1328    pub fn blend_color(this: &WebGlRenderingContext, red: f32, green: f32, blue: f32, alpha: f32);
1329    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "blendEquation")]
1330    #[doc = "The `blendEquation()` method."]
1331    #[doc = ""]
1332    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendEquation)"]
1333    #[doc = ""]
1334    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1335    pub fn blend_equation(this: &WebGlRenderingContext, mode: u32);
1336    #[wasm_bindgen(
1337        method,
1338        js_class = "WebGLRenderingContext",
1339        js_name = "blendEquationSeparate"
1340    )]
1341    #[doc = "The `blendEquationSeparate()` method."]
1342    #[doc = ""]
1343    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendEquationSeparate)"]
1344    #[doc = ""]
1345    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1346    pub fn blend_equation_separate(this: &WebGlRenderingContext, mode_rgb: u32, mode_alpha: u32);
1347    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "blendFunc")]
1348    #[doc = "The `blendFunc()` method."]
1349    #[doc = ""]
1350    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendFunc)"]
1351    #[doc = ""]
1352    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1353    pub fn blend_func(this: &WebGlRenderingContext, sfactor: u32, dfactor: u32);
1354    #[wasm_bindgen(
1355        method,
1356        js_class = "WebGLRenderingContext",
1357        js_name = "blendFuncSeparate"
1358    )]
1359    #[doc = "The `blendFuncSeparate()` method."]
1360    #[doc = ""]
1361    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/blendFuncSeparate)"]
1362    #[doc = ""]
1363    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1364    pub fn blend_func_separate(
1365        this: &WebGlRenderingContext,
1366        src_rgb: u32,
1367        dst_rgb: u32,
1368        src_alpha: u32,
1369        dst_alpha: u32,
1370    );
1371    #[wasm_bindgen(
1372        method,
1373        js_class = "WebGLRenderingContext",
1374        js_name = "checkFramebufferStatus"
1375    )]
1376    #[doc = "The `checkFramebufferStatus()` method."]
1377    #[doc = ""]
1378    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/checkFramebufferStatus)"]
1379    #[doc = ""]
1380    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1381    pub fn check_framebuffer_status(this: &WebGlRenderingContext, target: u32) -> u32;
1382    #[wasm_bindgen(method, js_class = "WebGLRenderingContext")]
1383    #[doc = "The `clear()` method."]
1384    #[doc = ""]
1385    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clear)"]
1386    #[doc = ""]
1387    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1388    pub fn clear(this: &WebGlRenderingContext, mask: u32);
1389    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "clearColor")]
1390    #[doc = "The `clearColor()` method."]
1391    #[doc = ""]
1392    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearColor)"]
1393    #[doc = ""]
1394    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1395    pub fn clear_color(this: &WebGlRenderingContext, red: f32, green: f32, blue: f32, alpha: f32);
1396    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "clearDepth")]
1397    #[doc = "The `clearDepth()` method."]
1398    #[doc = ""]
1399    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearDepth)"]
1400    #[doc = ""]
1401    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1402    pub fn clear_depth(this: &WebGlRenderingContext, depth: f32);
1403    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "clearStencil")]
1404    #[doc = "The `clearStencil()` method."]
1405    #[doc = ""]
1406    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/clearStencil)"]
1407    #[doc = ""]
1408    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1409    pub fn clear_stencil(this: &WebGlRenderingContext, s: i32);
1410    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "colorMask")]
1411    #[doc = "The `colorMask()` method."]
1412    #[doc = ""]
1413    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/colorMask)"]
1414    #[doc = ""]
1415    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1416    pub fn color_mask(
1417        this: &WebGlRenderingContext,
1418        red: bool,
1419        green: bool,
1420        blue: bool,
1421        alpha: bool,
1422    );
1423    #[cfg(feature = "WebGlShader")]
1424    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "compileShader")]
1425    #[doc = "The `compileShader()` method."]
1426    #[doc = ""]
1427    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/compileShader)"]
1428    #[doc = ""]
1429    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"]
1430    pub fn compile_shader(this: &WebGlRenderingContext, shader: &WebGlShader);
1431    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "copyTexImage2D")]
1432    #[doc = "The `copyTexImage2D()` method."]
1433    #[doc = ""]
1434    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/copyTexImage2D)"]
1435    #[doc = ""]
1436    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1437    pub fn copy_tex_image_2d(
1438        this: &WebGlRenderingContext,
1439        target: u32,
1440        level: i32,
1441        internalformat: u32,
1442        x: i32,
1443        y: i32,
1444        width: i32,
1445        height: i32,
1446        border: i32,
1447    );
1448    #[wasm_bindgen(
1449        method,
1450        js_class = "WebGLRenderingContext",
1451        js_name = "copyTexSubImage2D"
1452    )]
1453    #[doc = "The `copyTexSubImage2D()` method."]
1454    #[doc = ""]
1455    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/copyTexSubImage2D)"]
1456    #[doc = ""]
1457    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1458    pub fn copy_tex_sub_image_2d(
1459        this: &WebGlRenderingContext,
1460        target: u32,
1461        level: i32,
1462        xoffset: i32,
1463        yoffset: i32,
1464        x: i32,
1465        y: i32,
1466        width: i32,
1467        height: i32,
1468    );
1469    #[cfg(feature = "WebGlBuffer")]
1470    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "createBuffer")]
1471    #[doc = "The `createBuffer()` method."]
1472    #[doc = ""]
1473    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createBuffer)"]
1474    #[doc = ""]
1475    #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`, `WebGlRenderingContext`*"]
1476    pub fn create_buffer(this: &WebGlRenderingContext) -> Option<WebGlBuffer>;
1477    #[cfg(feature = "WebGlFramebuffer")]
1478    #[wasm_bindgen(
1479        method,
1480        js_class = "WebGLRenderingContext",
1481        js_name = "createFramebuffer"
1482    )]
1483    #[doc = "The `createFramebuffer()` method."]
1484    #[doc = ""]
1485    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createFramebuffer)"]
1486    #[doc = ""]
1487    #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `WebGlRenderingContext`*"]
1488    pub fn create_framebuffer(this: &WebGlRenderingContext) -> Option<WebGlFramebuffer>;
1489    #[cfg(feature = "WebGlProgram")]
1490    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "createProgram")]
1491    #[doc = "The `createProgram()` method."]
1492    #[doc = ""]
1493    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createProgram)"]
1494    #[doc = ""]
1495    #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"]
1496    pub fn create_program(this: &WebGlRenderingContext) -> Option<WebGlProgram>;
1497    #[cfg(feature = "WebGlRenderbuffer")]
1498    #[wasm_bindgen(
1499        method,
1500        js_class = "WebGLRenderingContext",
1501        js_name = "createRenderbuffer"
1502    )]
1503    #[doc = "The `createRenderbuffer()` method."]
1504    #[doc = ""]
1505    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createRenderbuffer)"]
1506    #[doc = ""]
1507    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"]
1508    pub fn create_renderbuffer(this: &WebGlRenderingContext) -> Option<WebGlRenderbuffer>;
1509    #[cfg(feature = "WebGlShader")]
1510    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "createShader")]
1511    #[doc = "The `createShader()` method."]
1512    #[doc = ""]
1513    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createShader)"]
1514    #[doc = ""]
1515    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"]
1516    pub fn create_shader(this: &WebGlRenderingContext, type_: u32) -> Option<WebGlShader>;
1517    #[cfg(feature = "WebGlTexture")]
1518    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "createTexture")]
1519    #[doc = "The `createTexture()` method."]
1520    #[doc = ""]
1521    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/createTexture)"]
1522    #[doc = ""]
1523    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"]
1524    pub fn create_texture(this: &WebGlRenderingContext) -> Option<WebGlTexture>;
1525    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "cullFace")]
1526    #[doc = "The `cullFace()` method."]
1527    #[doc = ""]
1528    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/cullFace)"]
1529    #[doc = ""]
1530    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1531    pub fn cull_face(this: &WebGlRenderingContext, mode: u32);
1532    #[cfg(feature = "WebGlBuffer")]
1533    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "deleteBuffer")]
1534    #[doc = "The `deleteBuffer()` method."]
1535    #[doc = ""]
1536    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteBuffer)"]
1537    #[doc = ""]
1538    #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`, `WebGlRenderingContext`*"]
1539    pub fn delete_buffer(this: &WebGlRenderingContext, buffer: Option<&WebGlBuffer>);
1540    #[cfg(feature = "WebGlFramebuffer")]
1541    #[wasm_bindgen(
1542        method,
1543        js_class = "WebGLRenderingContext",
1544        js_name = "deleteFramebuffer"
1545    )]
1546    #[doc = "The `deleteFramebuffer()` method."]
1547    #[doc = ""]
1548    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteFramebuffer)"]
1549    #[doc = ""]
1550    #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `WebGlRenderingContext`*"]
1551    pub fn delete_framebuffer(this: &WebGlRenderingContext, framebuffer: Option<&WebGlFramebuffer>);
1552    #[cfg(feature = "WebGlProgram")]
1553    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "deleteProgram")]
1554    #[doc = "The `deleteProgram()` method."]
1555    #[doc = ""]
1556    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteProgram)"]
1557    #[doc = ""]
1558    #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"]
1559    pub fn delete_program(this: &WebGlRenderingContext, program: Option<&WebGlProgram>);
1560    #[cfg(feature = "WebGlRenderbuffer")]
1561    #[wasm_bindgen(
1562        method,
1563        js_class = "WebGLRenderingContext",
1564        js_name = "deleteRenderbuffer"
1565    )]
1566    #[doc = "The `deleteRenderbuffer()` method."]
1567    #[doc = ""]
1568    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteRenderbuffer)"]
1569    #[doc = ""]
1570    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"]
1571    pub fn delete_renderbuffer(
1572        this: &WebGlRenderingContext,
1573        renderbuffer: Option<&WebGlRenderbuffer>,
1574    );
1575    #[cfg(feature = "WebGlShader")]
1576    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "deleteShader")]
1577    #[doc = "The `deleteShader()` method."]
1578    #[doc = ""]
1579    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteShader)"]
1580    #[doc = ""]
1581    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"]
1582    pub fn delete_shader(this: &WebGlRenderingContext, shader: Option<&WebGlShader>);
1583    #[cfg(feature = "WebGlTexture")]
1584    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "deleteTexture")]
1585    #[doc = "The `deleteTexture()` method."]
1586    #[doc = ""]
1587    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/deleteTexture)"]
1588    #[doc = ""]
1589    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"]
1590    pub fn delete_texture(this: &WebGlRenderingContext, texture: Option<&WebGlTexture>);
1591    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "depthFunc")]
1592    #[doc = "The `depthFunc()` method."]
1593    #[doc = ""]
1594    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthFunc)"]
1595    #[doc = ""]
1596    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1597    pub fn depth_func(this: &WebGlRenderingContext, func: u32);
1598    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "depthMask")]
1599    #[doc = "The `depthMask()` method."]
1600    #[doc = ""]
1601    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthMask)"]
1602    #[doc = ""]
1603    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1604    pub fn depth_mask(this: &WebGlRenderingContext, flag: bool);
1605    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "depthRange")]
1606    #[doc = "The `depthRange()` method."]
1607    #[doc = ""]
1608    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/depthRange)"]
1609    #[doc = ""]
1610    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1611    pub fn depth_range(this: &WebGlRenderingContext, z_near: f32, z_far: f32);
1612    #[cfg(all(feature = "WebGlProgram", feature = "WebGlShader",))]
1613    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "detachShader")]
1614    #[doc = "The `detachShader()` method."]
1615    #[doc = ""]
1616    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/detachShader)"]
1617    #[doc = ""]
1618    #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`, `WebGlShader`*"]
1619    pub fn detach_shader(
1620        this: &WebGlRenderingContext,
1621        program: &WebGlProgram,
1622        shader: &WebGlShader,
1623    );
1624    #[wasm_bindgen(method, js_class = "WebGLRenderingContext")]
1625    #[doc = "The `disable()` method."]
1626    #[doc = ""]
1627    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/disable)"]
1628    #[doc = ""]
1629    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1630    pub fn disable(this: &WebGlRenderingContext, cap: u32);
1631    #[wasm_bindgen(
1632        method,
1633        js_class = "WebGLRenderingContext",
1634        js_name = "disableVertexAttribArray"
1635    )]
1636    #[doc = "The `disableVertexAttribArray()` method."]
1637    #[doc = ""]
1638    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/disableVertexAttribArray)"]
1639    #[doc = ""]
1640    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1641    pub fn disable_vertex_attrib_array(this: &WebGlRenderingContext, index: u32);
1642    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "drawArrays")]
1643    #[doc = "The `drawArrays()` method."]
1644    #[doc = ""]
1645    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawArrays)"]
1646    #[doc = ""]
1647    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1648    pub fn draw_arrays(this: &WebGlRenderingContext, mode: u32, first: i32, count: i32);
1649    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "drawElements")]
1650    #[doc = "The `drawElements()` method."]
1651    #[doc = ""]
1652    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements)"]
1653    #[doc = ""]
1654    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1655    pub fn draw_elements_with_i32(
1656        this: &WebGlRenderingContext,
1657        mode: u32,
1658        count: i32,
1659        type_: u32,
1660        offset: i32,
1661    );
1662    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "drawElements")]
1663    #[doc = "The `drawElements()` method."]
1664    #[doc = ""]
1665    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/drawElements)"]
1666    #[doc = ""]
1667    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1668    pub fn draw_elements_with_f64(
1669        this: &WebGlRenderingContext,
1670        mode: u32,
1671        count: i32,
1672        type_: u32,
1673        offset: f64,
1674    );
1675    #[wasm_bindgen(method, js_class = "WebGLRenderingContext")]
1676    #[doc = "The `enable()` method."]
1677    #[doc = ""]
1678    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/enable)"]
1679    #[doc = ""]
1680    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1681    pub fn enable(this: &WebGlRenderingContext, cap: u32);
1682    #[wasm_bindgen(
1683        method,
1684        js_class = "WebGLRenderingContext",
1685        js_name = "enableVertexAttribArray"
1686    )]
1687    #[doc = "The `enableVertexAttribArray()` method."]
1688    #[doc = ""]
1689    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/enableVertexAttribArray)"]
1690    #[doc = ""]
1691    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1692    pub fn enable_vertex_attrib_array(this: &WebGlRenderingContext, index: u32);
1693    #[wasm_bindgen(method, js_class = "WebGLRenderingContext")]
1694    #[doc = "The `finish()` method."]
1695    #[doc = ""]
1696    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/finish)"]
1697    #[doc = ""]
1698    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1699    pub fn finish(this: &WebGlRenderingContext);
1700    #[wasm_bindgen(method, js_class = "WebGLRenderingContext")]
1701    #[doc = "The `flush()` method."]
1702    #[doc = ""]
1703    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/flush)"]
1704    #[doc = ""]
1705    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1706    pub fn flush(this: &WebGlRenderingContext);
1707    #[cfg(feature = "WebGlRenderbuffer")]
1708    #[wasm_bindgen(
1709        method,
1710        js_class = "WebGLRenderingContext",
1711        js_name = "framebufferRenderbuffer"
1712    )]
1713    #[doc = "The `framebufferRenderbuffer()` method."]
1714    #[doc = ""]
1715    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/framebufferRenderbuffer)"]
1716    #[doc = ""]
1717    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"]
1718    pub fn framebuffer_renderbuffer(
1719        this: &WebGlRenderingContext,
1720        target: u32,
1721        attachment: u32,
1722        renderbuffertarget: u32,
1723        renderbuffer: Option<&WebGlRenderbuffer>,
1724    );
1725    #[cfg(feature = "WebGlTexture")]
1726    #[wasm_bindgen(
1727        method,
1728        js_class = "WebGLRenderingContext",
1729        js_name = "framebufferTexture2D"
1730    )]
1731    #[doc = "The `framebufferTexture2D()` method."]
1732    #[doc = ""]
1733    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/framebufferTexture2D)"]
1734    #[doc = ""]
1735    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"]
1736    pub fn framebuffer_texture_2d(
1737        this: &WebGlRenderingContext,
1738        target: u32,
1739        attachment: u32,
1740        textarget: u32,
1741        texture: Option<&WebGlTexture>,
1742        level: i32,
1743    );
1744    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "frontFace")]
1745    #[doc = "The `frontFace()` method."]
1746    #[doc = ""]
1747    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/frontFace)"]
1748    #[doc = ""]
1749    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1750    pub fn front_face(this: &WebGlRenderingContext, mode: u32);
1751    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "generateMipmap")]
1752    #[doc = "The `generateMipmap()` method."]
1753    #[doc = ""]
1754    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/generateMipmap)"]
1755    #[doc = ""]
1756    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1757    pub fn generate_mipmap(this: &WebGlRenderingContext, target: u32);
1758    #[cfg(all(feature = "WebGlActiveInfo", feature = "WebGlProgram",))]
1759    #[wasm_bindgen(
1760        method,
1761        js_class = "WebGLRenderingContext",
1762        js_name = "getActiveAttrib"
1763    )]
1764    #[doc = "The `getActiveAttrib()` method."]
1765    #[doc = ""]
1766    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getActiveAttrib)"]
1767    #[doc = ""]
1768    #[doc = "*This API requires the following crate features to be activated: `WebGlActiveInfo`, `WebGlProgram`, `WebGlRenderingContext`*"]
1769    pub fn get_active_attrib(
1770        this: &WebGlRenderingContext,
1771        program: &WebGlProgram,
1772        index: u32,
1773    ) -> Option<WebGlActiveInfo>;
1774    #[cfg(all(feature = "WebGlActiveInfo", feature = "WebGlProgram",))]
1775    #[wasm_bindgen(
1776        method,
1777        js_class = "WebGLRenderingContext",
1778        js_name = "getActiveUniform"
1779    )]
1780    #[doc = "The `getActiveUniform()` method."]
1781    #[doc = ""]
1782    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getActiveUniform)"]
1783    #[doc = ""]
1784    #[doc = "*This API requires the following crate features to be activated: `WebGlActiveInfo`, `WebGlProgram`, `WebGlRenderingContext`*"]
1785    pub fn get_active_uniform(
1786        this: &WebGlRenderingContext,
1787        program: &WebGlProgram,
1788        index: u32,
1789    ) -> Option<WebGlActiveInfo>;
1790    #[cfg(feature = "WebGlProgram")]
1791    #[wasm_bindgen(
1792        method,
1793        js_class = "WebGLRenderingContext",
1794        js_name = "getAttachedShaders"
1795    )]
1796    #[doc = "The `getAttachedShaders()` method."]
1797    #[doc = ""]
1798    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getAttachedShaders)"]
1799    #[doc = ""]
1800    #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"]
1801    pub fn get_attached_shaders(
1802        this: &WebGlRenderingContext,
1803        program: &WebGlProgram,
1804    ) -> Option<::js_sys::Array>;
1805    #[cfg(feature = "WebGlProgram")]
1806    #[wasm_bindgen(
1807        method,
1808        js_class = "WebGLRenderingContext",
1809        js_name = "getAttribLocation"
1810    )]
1811    #[doc = "The `getAttribLocation()` method."]
1812    #[doc = ""]
1813    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getAttribLocation)"]
1814    #[doc = ""]
1815    #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"]
1816    pub fn get_attrib_location(
1817        this: &WebGlRenderingContext,
1818        program: &WebGlProgram,
1819        name: &str,
1820    ) -> i32;
1821    #[wasm_bindgen(
1822        method,
1823        js_class = "WebGLRenderingContext",
1824        js_name = "getBufferParameter"
1825    )]
1826    #[doc = "The `getBufferParameter()` method."]
1827    #[doc = ""]
1828    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getBufferParameter)"]
1829    #[doc = ""]
1830    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1831    pub fn get_buffer_parameter(
1832        this: &WebGlRenderingContext,
1833        target: u32,
1834        pname: u32,
1835    ) -> ::wasm_bindgen::JsValue;
1836    #[cfg(feature = "WebGlContextAttributes")]
1837    #[wasm_bindgen(
1838        method,
1839        js_class = "WebGLRenderingContext",
1840        js_name = "getContextAttributes"
1841    )]
1842    #[doc = "The `getContextAttributes()` method."]
1843    #[doc = ""]
1844    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getContextAttributes)"]
1845    #[doc = ""]
1846    #[doc = "*This API requires the following crate features to be activated: `WebGlContextAttributes`, `WebGlRenderingContext`*"]
1847    pub fn get_context_attributes(this: &WebGlRenderingContext) -> Option<WebGlContextAttributes>;
1848    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "getError")]
1849    #[doc = "The `getError()` method."]
1850    #[doc = ""]
1851    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getError)"]
1852    #[doc = ""]
1853    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1854    pub fn get_error(this: &WebGlRenderingContext) -> u32;
1855    #[wasm_bindgen(
1856        catch,
1857        method,
1858        js_class = "WebGLRenderingContext",
1859        js_name = "getExtension"
1860    )]
1861    #[doc = "The `getExtension()` method."]
1862    #[doc = ""]
1863    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getExtension)"]
1864    #[doc = ""]
1865    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1866    pub fn get_extension(
1867        this: &WebGlRenderingContext,
1868        name: &str,
1869    ) -> Result<Option<::js_sys::Object>, JsValue>;
1870    #[wasm_bindgen(
1871        catch,
1872        method,
1873        js_class = "WebGLRenderingContext",
1874        js_name = "getFramebufferAttachmentParameter"
1875    )]
1876    #[doc = "The `getFramebufferAttachmentParameter()` method."]
1877    #[doc = ""]
1878    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getFramebufferAttachmentParameter)"]
1879    #[doc = ""]
1880    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1881    pub fn get_framebuffer_attachment_parameter(
1882        this: &WebGlRenderingContext,
1883        target: u32,
1884        attachment: u32,
1885        pname: u32,
1886    ) -> Result<::wasm_bindgen::JsValue, JsValue>;
1887    #[wasm_bindgen(
1888        catch,
1889        method,
1890        js_class = "WebGLRenderingContext",
1891        js_name = "getParameter"
1892    )]
1893    #[doc = "The `getParameter()` method."]
1894    #[doc = ""]
1895    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getParameter)"]
1896    #[doc = ""]
1897    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1898    pub fn get_parameter(
1899        this: &WebGlRenderingContext,
1900        pname: u32,
1901    ) -> Result<::wasm_bindgen::JsValue, JsValue>;
1902    #[cfg(feature = "WebGlProgram")]
1903    #[wasm_bindgen(
1904        method,
1905        js_class = "WebGLRenderingContext",
1906        js_name = "getProgramInfoLog"
1907    )]
1908    #[doc = "The `getProgramInfoLog()` method."]
1909    #[doc = ""]
1910    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getProgramInfoLog)"]
1911    #[doc = ""]
1912    #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"]
1913    pub fn get_program_info_log(
1914        this: &WebGlRenderingContext,
1915        program: &WebGlProgram,
1916    ) -> Option<::alloc::string::String>;
1917    #[cfg(feature = "WebGlProgram")]
1918    #[wasm_bindgen(
1919        method,
1920        js_class = "WebGLRenderingContext",
1921        js_name = "getProgramParameter"
1922    )]
1923    #[doc = "The `getProgramParameter()` method."]
1924    #[doc = ""]
1925    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getProgramParameter)"]
1926    #[doc = ""]
1927    #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"]
1928    pub fn get_program_parameter(
1929        this: &WebGlRenderingContext,
1930        program: &WebGlProgram,
1931        pname: u32,
1932    ) -> ::wasm_bindgen::JsValue;
1933    #[wasm_bindgen(
1934        method,
1935        js_class = "WebGLRenderingContext",
1936        js_name = "getRenderbufferParameter"
1937    )]
1938    #[doc = "The `getRenderbufferParameter()` method."]
1939    #[doc = ""]
1940    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getRenderbufferParameter)"]
1941    #[doc = ""]
1942    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
1943    pub fn get_renderbuffer_parameter(
1944        this: &WebGlRenderingContext,
1945        target: u32,
1946        pname: u32,
1947    ) -> ::wasm_bindgen::JsValue;
1948    #[cfg(feature = "WebGlShader")]
1949    #[wasm_bindgen(
1950        method,
1951        js_class = "WebGLRenderingContext",
1952        js_name = "getShaderInfoLog"
1953    )]
1954    #[doc = "The `getShaderInfoLog()` method."]
1955    #[doc = ""]
1956    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderInfoLog)"]
1957    #[doc = ""]
1958    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"]
1959    pub fn get_shader_info_log(
1960        this: &WebGlRenderingContext,
1961        shader: &WebGlShader,
1962    ) -> Option<::alloc::string::String>;
1963    #[cfg(feature = "WebGlShader")]
1964    #[wasm_bindgen(
1965        method,
1966        js_class = "WebGLRenderingContext",
1967        js_name = "getShaderParameter"
1968    )]
1969    #[doc = "The `getShaderParameter()` method."]
1970    #[doc = ""]
1971    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderParameter)"]
1972    #[doc = ""]
1973    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"]
1974    pub fn get_shader_parameter(
1975        this: &WebGlRenderingContext,
1976        shader: &WebGlShader,
1977        pname: u32,
1978    ) -> ::wasm_bindgen::JsValue;
1979    #[cfg(feature = "WebGlShaderPrecisionFormat")]
1980    #[wasm_bindgen(
1981        method,
1982        js_class = "WebGLRenderingContext",
1983        js_name = "getShaderPrecisionFormat"
1984    )]
1985    #[doc = "The `getShaderPrecisionFormat()` method."]
1986    #[doc = ""]
1987    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderPrecisionFormat)"]
1988    #[doc = ""]
1989    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShaderPrecisionFormat`*"]
1990    pub fn get_shader_precision_format(
1991        this: &WebGlRenderingContext,
1992        shadertype: u32,
1993        precisiontype: u32,
1994    ) -> Option<WebGlShaderPrecisionFormat>;
1995    #[cfg(feature = "WebGlShader")]
1996    #[wasm_bindgen(
1997        method,
1998        js_class = "WebGLRenderingContext",
1999        js_name = "getShaderSource"
2000    )]
2001    #[doc = "The `getShaderSource()` method."]
2002    #[doc = ""]
2003    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getShaderSource)"]
2004    #[doc = ""]
2005    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"]
2006    pub fn get_shader_source(
2007        this: &WebGlRenderingContext,
2008        shader: &WebGlShader,
2009    ) -> Option<::alloc::string::String>;
2010    #[wasm_bindgen(
2011        method,
2012        js_class = "WebGLRenderingContext",
2013        js_name = "getSupportedExtensions"
2014    )]
2015    #[doc = "The `getSupportedExtensions()` method."]
2016    #[doc = ""]
2017    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getSupportedExtensions)"]
2018    #[doc = ""]
2019    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2020    pub fn get_supported_extensions(this: &WebGlRenderingContext) -> Option<::js_sys::Array>;
2021    #[wasm_bindgen(
2022        method,
2023        js_class = "WebGLRenderingContext",
2024        js_name = "getTexParameter"
2025    )]
2026    #[doc = "The `getTexParameter()` method."]
2027    #[doc = ""]
2028    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getTexParameter)"]
2029    #[doc = ""]
2030    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2031    pub fn get_tex_parameter(
2032        this: &WebGlRenderingContext,
2033        target: u32,
2034        pname: u32,
2035    ) -> ::wasm_bindgen::JsValue;
2036    #[cfg(all(feature = "WebGlProgram", feature = "WebGlUniformLocation",))]
2037    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "getUniform")]
2038    #[doc = "The `getUniform()` method."]
2039    #[doc = ""]
2040    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getUniform)"]
2041    #[doc = ""]
2042    #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`, `WebGlUniformLocation`*"]
2043    pub fn get_uniform(
2044        this: &WebGlRenderingContext,
2045        program: &WebGlProgram,
2046        location: &WebGlUniformLocation,
2047    ) -> ::wasm_bindgen::JsValue;
2048    #[cfg(all(feature = "WebGlProgram", feature = "WebGlUniformLocation",))]
2049    #[wasm_bindgen(
2050        method,
2051        js_class = "WebGLRenderingContext",
2052        js_name = "getUniformLocation"
2053    )]
2054    #[doc = "The `getUniformLocation()` method."]
2055    #[doc = ""]
2056    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getUniformLocation)"]
2057    #[doc = ""]
2058    #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`, `WebGlUniformLocation`*"]
2059    pub fn get_uniform_location(
2060        this: &WebGlRenderingContext,
2061        program: &WebGlProgram,
2062        name: &str,
2063    ) -> Option<WebGlUniformLocation>;
2064    #[wasm_bindgen(
2065        catch,
2066        method,
2067        js_class = "WebGLRenderingContext",
2068        js_name = "getVertexAttrib"
2069    )]
2070    #[doc = "The `getVertexAttrib()` method."]
2071    #[doc = ""]
2072    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getVertexAttrib)"]
2073    #[doc = ""]
2074    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2075    pub fn get_vertex_attrib(
2076        this: &WebGlRenderingContext,
2077        index: u32,
2078        pname: u32,
2079    ) -> Result<::wasm_bindgen::JsValue, JsValue>;
2080    #[wasm_bindgen(
2081        method,
2082        js_class = "WebGLRenderingContext",
2083        js_name = "getVertexAttribOffset"
2084    )]
2085    #[doc = "The `getVertexAttribOffset()` method."]
2086    #[doc = ""]
2087    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/getVertexAttribOffset)"]
2088    #[doc = ""]
2089    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2090    pub fn get_vertex_attrib_offset(this: &WebGlRenderingContext, index: u32, pname: u32) -> f64;
2091    #[wasm_bindgen(method, js_class = "WebGLRenderingContext")]
2092    #[doc = "The `hint()` method."]
2093    #[doc = ""]
2094    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/hint)"]
2095    #[doc = ""]
2096    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2097    pub fn hint(this: &WebGlRenderingContext, target: u32, mode: u32);
2098    #[cfg(feature = "WebGlBuffer")]
2099    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "isBuffer")]
2100    #[doc = "The `isBuffer()` method."]
2101    #[doc = ""]
2102    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isBuffer)"]
2103    #[doc = ""]
2104    #[doc = "*This API requires the following crate features to be activated: `WebGlBuffer`, `WebGlRenderingContext`*"]
2105    pub fn is_buffer(this: &WebGlRenderingContext, buffer: Option<&WebGlBuffer>) -> bool;
2106    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "isContextLost")]
2107    #[doc = "The `isContextLost()` method."]
2108    #[doc = ""]
2109    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isContextLost)"]
2110    #[doc = ""]
2111    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2112    pub fn is_context_lost(this: &WebGlRenderingContext) -> bool;
2113    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "isEnabled")]
2114    #[doc = "The `isEnabled()` method."]
2115    #[doc = ""]
2116    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isEnabled)"]
2117    #[doc = ""]
2118    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2119    pub fn is_enabled(this: &WebGlRenderingContext, cap: u32) -> bool;
2120    #[cfg(feature = "WebGlFramebuffer")]
2121    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "isFramebuffer")]
2122    #[doc = "The `isFramebuffer()` method."]
2123    #[doc = ""]
2124    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isFramebuffer)"]
2125    #[doc = ""]
2126    #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `WebGlRenderingContext`*"]
2127    pub fn is_framebuffer(
2128        this: &WebGlRenderingContext,
2129        framebuffer: Option<&WebGlFramebuffer>,
2130    ) -> bool;
2131    #[cfg(feature = "WebGlProgram")]
2132    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "isProgram")]
2133    #[doc = "The `isProgram()` method."]
2134    #[doc = ""]
2135    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isProgram)"]
2136    #[doc = ""]
2137    #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"]
2138    pub fn is_program(this: &WebGlRenderingContext, program: Option<&WebGlProgram>) -> bool;
2139    #[cfg(feature = "WebGlRenderbuffer")]
2140    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "isRenderbuffer")]
2141    #[doc = "The `isRenderbuffer()` method."]
2142    #[doc = ""]
2143    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isRenderbuffer)"]
2144    #[doc = ""]
2145    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderbuffer`, `WebGlRenderingContext`*"]
2146    pub fn is_renderbuffer(
2147        this: &WebGlRenderingContext,
2148        renderbuffer: Option<&WebGlRenderbuffer>,
2149    ) -> bool;
2150    #[cfg(feature = "WebGlShader")]
2151    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "isShader")]
2152    #[doc = "The `isShader()` method."]
2153    #[doc = ""]
2154    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isShader)"]
2155    #[doc = ""]
2156    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"]
2157    pub fn is_shader(this: &WebGlRenderingContext, shader: Option<&WebGlShader>) -> bool;
2158    #[cfg(feature = "WebGlTexture")]
2159    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "isTexture")]
2160    #[doc = "The `isTexture()` method."]
2161    #[doc = ""]
2162    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/isTexture)"]
2163    #[doc = ""]
2164    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlTexture`*"]
2165    pub fn is_texture(this: &WebGlRenderingContext, texture: Option<&WebGlTexture>) -> bool;
2166    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "lineWidth")]
2167    #[doc = "The `lineWidth()` method."]
2168    #[doc = ""]
2169    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/lineWidth)"]
2170    #[doc = ""]
2171    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2172    pub fn line_width(this: &WebGlRenderingContext, width: f32);
2173    #[cfg(feature = "WebGlProgram")]
2174    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "linkProgram")]
2175    #[doc = "The `linkProgram()` method."]
2176    #[doc = ""]
2177    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/linkProgram)"]
2178    #[doc = ""]
2179    #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"]
2180    pub fn link_program(this: &WebGlRenderingContext, program: &WebGlProgram);
2181    #[cfg(web_sys_unstable_apis)]
2182    #[wasm_bindgen(
2183        method,
2184        js_class = "WebGLRenderingContext",
2185        js_name = "makeXRCompatible"
2186    )]
2187    #[doc = "The `makeXRCompatible()` method."]
2188    #[doc = ""]
2189    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/makeXRCompatible)"]
2190    #[doc = ""]
2191    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2192    #[doc = ""]
2193    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
2194    #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
2195    pub fn make_xr_compatible(
2196        this: &WebGlRenderingContext,
2197    ) -> ::js_sys::Promise<::js_sys::Undefined>;
2198    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "pixelStorei")]
2199    #[doc = "The `pixelStorei()` method."]
2200    #[doc = ""]
2201    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/pixelStorei)"]
2202    #[doc = ""]
2203    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2204    pub fn pixel_storei(this: &WebGlRenderingContext, pname: u32, param: i32);
2205    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "polygonOffset")]
2206    #[doc = "The `polygonOffset()` method."]
2207    #[doc = ""]
2208    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/polygonOffset)"]
2209    #[doc = ""]
2210    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2211    pub fn polygon_offset(this: &WebGlRenderingContext, factor: f32, units: f32);
2212    #[wasm_bindgen(
2213        method,
2214        js_class = "WebGLRenderingContext",
2215        js_name = "renderbufferStorage"
2216    )]
2217    #[doc = "The `renderbufferStorage()` method."]
2218    #[doc = ""]
2219    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/renderbufferStorage)"]
2220    #[doc = ""]
2221    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2222    pub fn renderbuffer_storage(
2223        this: &WebGlRenderingContext,
2224        target: u32,
2225        internalformat: u32,
2226        width: i32,
2227        height: i32,
2228    );
2229    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "sampleCoverage")]
2230    #[doc = "The `sampleCoverage()` method."]
2231    #[doc = ""]
2232    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/sampleCoverage)"]
2233    #[doc = ""]
2234    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2235    pub fn sample_coverage(this: &WebGlRenderingContext, value: f32, invert: bool);
2236    #[wasm_bindgen(method, js_class = "WebGLRenderingContext")]
2237    #[doc = "The `scissor()` method."]
2238    #[doc = ""]
2239    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/scissor)"]
2240    #[doc = ""]
2241    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2242    pub fn scissor(this: &WebGlRenderingContext, x: i32, y: i32, width: i32, height: i32);
2243    #[cfg(feature = "WebGlShader")]
2244    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "shaderSource")]
2245    #[doc = "The `shaderSource()` method."]
2246    #[doc = ""]
2247    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/shaderSource)"]
2248    #[doc = ""]
2249    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlShader`*"]
2250    pub fn shader_source(this: &WebGlRenderingContext, shader: &WebGlShader, source: &str);
2251    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "stencilFunc")]
2252    #[doc = "The `stencilFunc()` method."]
2253    #[doc = ""]
2254    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilFunc)"]
2255    #[doc = ""]
2256    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2257    pub fn stencil_func(this: &WebGlRenderingContext, func: u32, ref_: i32, mask: u32);
2258    #[wasm_bindgen(
2259        method,
2260        js_class = "WebGLRenderingContext",
2261        js_name = "stencilFuncSeparate"
2262    )]
2263    #[doc = "The `stencilFuncSeparate()` method."]
2264    #[doc = ""]
2265    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilFuncSeparate)"]
2266    #[doc = ""]
2267    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2268    pub fn stencil_func_separate(
2269        this: &WebGlRenderingContext,
2270        face: u32,
2271        func: u32,
2272        ref_: i32,
2273        mask: u32,
2274    );
2275    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "stencilMask")]
2276    #[doc = "The `stencilMask()` method."]
2277    #[doc = ""]
2278    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilMask)"]
2279    #[doc = ""]
2280    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2281    pub fn stencil_mask(this: &WebGlRenderingContext, mask: u32);
2282    #[wasm_bindgen(
2283        method,
2284        js_class = "WebGLRenderingContext",
2285        js_name = "stencilMaskSeparate"
2286    )]
2287    #[doc = "The `stencilMaskSeparate()` method."]
2288    #[doc = ""]
2289    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilMaskSeparate)"]
2290    #[doc = ""]
2291    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2292    pub fn stencil_mask_separate(this: &WebGlRenderingContext, face: u32, mask: u32);
2293    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "stencilOp")]
2294    #[doc = "The `stencilOp()` method."]
2295    #[doc = ""]
2296    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilOp)"]
2297    #[doc = ""]
2298    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2299    pub fn stencil_op(this: &WebGlRenderingContext, fail: u32, zfail: u32, zpass: u32);
2300    #[wasm_bindgen(
2301        method,
2302        js_class = "WebGLRenderingContext",
2303        js_name = "stencilOpSeparate"
2304    )]
2305    #[doc = "The `stencilOpSeparate()` method."]
2306    #[doc = ""]
2307    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/stencilOpSeparate)"]
2308    #[doc = ""]
2309    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2310    pub fn stencil_op_separate(
2311        this: &WebGlRenderingContext,
2312        face: u32,
2313        fail: u32,
2314        zfail: u32,
2315        zpass: u32,
2316    );
2317    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "texParameterf")]
2318    #[doc = "The `texParameterf()` method."]
2319    #[doc = ""]
2320    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texParameterf)"]
2321    #[doc = ""]
2322    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2323    pub fn tex_parameterf(this: &WebGlRenderingContext, target: u32, pname: u32, param: f32);
2324    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "texParameteri")]
2325    #[doc = "The `texParameteri()` method."]
2326    #[doc = ""]
2327    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/texParameteri)"]
2328    #[doc = ""]
2329    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2330    pub fn tex_parameteri(this: &WebGlRenderingContext, target: u32, pname: u32, param: i32);
2331    #[cfg(feature = "WebGlUniformLocation")]
2332    #[wasm_bindgen(method, js_class = "WebGLRenderingContext")]
2333    #[doc = "The `uniform1f()` method."]
2334    #[doc = ""]
2335    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1f)"]
2336    #[doc = ""]
2337    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
2338    pub fn uniform1f(this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, x: f32);
2339    #[cfg(feature = "WebGlUniformLocation")]
2340    #[wasm_bindgen(method, js_class = "WebGLRenderingContext")]
2341    #[doc = "The `uniform1i()` method."]
2342    #[doc = ""]
2343    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform1i)"]
2344    #[doc = ""]
2345    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
2346    pub fn uniform1i(this: &WebGlRenderingContext, location: Option<&WebGlUniformLocation>, x: i32);
2347    #[cfg(feature = "WebGlUniformLocation")]
2348    #[wasm_bindgen(method, js_class = "WebGLRenderingContext")]
2349    #[doc = "The `uniform2f()` method."]
2350    #[doc = ""]
2351    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2f)"]
2352    #[doc = ""]
2353    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
2354    pub fn uniform2f(
2355        this: &WebGlRenderingContext,
2356        location: Option<&WebGlUniformLocation>,
2357        x: f32,
2358        y: f32,
2359    );
2360    #[cfg(feature = "WebGlUniformLocation")]
2361    #[wasm_bindgen(method, js_class = "WebGLRenderingContext")]
2362    #[doc = "The `uniform2i()` method."]
2363    #[doc = ""]
2364    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform2i)"]
2365    #[doc = ""]
2366    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
2367    pub fn uniform2i(
2368        this: &WebGlRenderingContext,
2369        location: Option<&WebGlUniformLocation>,
2370        x: i32,
2371        y: i32,
2372    );
2373    #[cfg(feature = "WebGlUniformLocation")]
2374    #[wasm_bindgen(method, js_class = "WebGLRenderingContext")]
2375    #[doc = "The `uniform3f()` method."]
2376    #[doc = ""]
2377    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3f)"]
2378    #[doc = ""]
2379    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
2380    pub fn uniform3f(
2381        this: &WebGlRenderingContext,
2382        location: Option<&WebGlUniformLocation>,
2383        x: f32,
2384        y: f32,
2385        z: f32,
2386    );
2387    #[cfg(feature = "WebGlUniformLocation")]
2388    #[wasm_bindgen(method, js_class = "WebGLRenderingContext")]
2389    #[doc = "The `uniform3i()` method."]
2390    #[doc = ""]
2391    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform3i)"]
2392    #[doc = ""]
2393    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
2394    pub fn uniform3i(
2395        this: &WebGlRenderingContext,
2396        location: Option<&WebGlUniformLocation>,
2397        x: i32,
2398        y: i32,
2399        z: i32,
2400    );
2401    #[cfg(feature = "WebGlUniformLocation")]
2402    #[wasm_bindgen(method, js_class = "WebGLRenderingContext")]
2403    #[doc = "The `uniform4f()` method."]
2404    #[doc = ""]
2405    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4f)"]
2406    #[doc = ""]
2407    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
2408    pub fn uniform4f(
2409        this: &WebGlRenderingContext,
2410        location: Option<&WebGlUniformLocation>,
2411        x: f32,
2412        y: f32,
2413        z: f32,
2414        w: f32,
2415    );
2416    #[cfg(feature = "WebGlUniformLocation")]
2417    #[wasm_bindgen(method, js_class = "WebGLRenderingContext")]
2418    #[doc = "The `uniform4i()` method."]
2419    #[doc = ""]
2420    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/uniform4i)"]
2421    #[doc = ""]
2422    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `WebGlUniformLocation`*"]
2423    pub fn uniform4i(
2424        this: &WebGlRenderingContext,
2425        location: Option<&WebGlUniformLocation>,
2426        x: i32,
2427        y: i32,
2428        z: i32,
2429        w: i32,
2430    );
2431    #[cfg(feature = "WebGlProgram")]
2432    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "useProgram")]
2433    #[doc = "The `useProgram()` method."]
2434    #[doc = ""]
2435    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/useProgram)"]
2436    #[doc = ""]
2437    #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"]
2438    pub fn use_program(this: &WebGlRenderingContext, program: Option<&WebGlProgram>);
2439    #[cfg(feature = "WebGlProgram")]
2440    #[wasm_bindgen(
2441        method,
2442        js_class = "WebGLRenderingContext",
2443        js_name = "validateProgram"
2444    )]
2445    #[doc = "The `validateProgram()` method."]
2446    #[doc = ""]
2447    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/validateProgram)"]
2448    #[doc = ""]
2449    #[doc = "*This API requires the following crate features to be activated: `WebGlProgram`, `WebGlRenderingContext`*"]
2450    pub fn validate_program(this: &WebGlRenderingContext, program: &WebGlProgram);
2451    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "vertexAttrib1f")]
2452    #[doc = "The `vertexAttrib1f()` method."]
2453    #[doc = ""]
2454    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib1f)"]
2455    #[doc = ""]
2456    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2457    pub fn vertex_attrib1f(this: &WebGlRenderingContext, indx: u32, x: f32);
2458    #[wasm_bindgen(
2459        method,
2460        js_class = "WebGLRenderingContext",
2461        js_name = "vertexAttrib1fv"
2462    )]
2463    #[doc = "The `vertexAttrib1fv()` method."]
2464    #[doc = ""]
2465    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib1fv)"]
2466    #[doc = ""]
2467    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2468    pub fn vertex_attrib1fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32]);
2469    #[wasm_bindgen(
2470        method,
2471        js_class = "WebGLRenderingContext",
2472        js_name = "vertexAttrib1fv"
2473    )]
2474    #[doc = "The `vertexAttrib1fv()` method."]
2475    #[doc = ""]
2476    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib1fv)"]
2477    #[doc = ""]
2478    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2479    pub fn vertex_attrib1fv_with_js_f32_array(
2480        this: &WebGlRenderingContext,
2481        indx: u32,
2482        values: &::js_sys::Float32Array,
2483    );
2484    #[wasm_bindgen(
2485        method,
2486        js_class = "WebGLRenderingContext",
2487        js_name = "vertexAttrib1fv"
2488    )]
2489    #[doc = "The `vertexAttrib1fv()` method."]
2490    #[doc = ""]
2491    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib1fv)"]
2492    #[doc = ""]
2493    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2494    pub fn vertex_attrib1fv_with_f32_sequence(
2495        this: &WebGlRenderingContext,
2496        indx: u32,
2497        values: &::wasm_bindgen::JsValue,
2498    );
2499    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "vertexAttrib2f")]
2500    #[doc = "The `vertexAttrib2f()` method."]
2501    #[doc = ""]
2502    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib2f)"]
2503    #[doc = ""]
2504    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2505    pub fn vertex_attrib2f(this: &WebGlRenderingContext, indx: u32, x: f32, y: f32);
2506    #[wasm_bindgen(
2507        method,
2508        js_class = "WebGLRenderingContext",
2509        js_name = "vertexAttrib2fv"
2510    )]
2511    #[doc = "The `vertexAttrib2fv()` method."]
2512    #[doc = ""]
2513    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib2fv)"]
2514    #[doc = ""]
2515    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2516    pub fn vertex_attrib2fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32]);
2517    #[wasm_bindgen(
2518        method,
2519        js_class = "WebGLRenderingContext",
2520        js_name = "vertexAttrib2fv"
2521    )]
2522    #[doc = "The `vertexAttrib2fv()` method."]
2523    #[doc = ""]
2524    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib2fv)"]
2525    #[doc = ""]
2526    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2527    pub fn vertex_attrib2fv_with_js_f32_array(
2528        this: &WebGlRenderingContext,
2529        indx: u32,
2530        values: &::js_sys::Float32Array,
2531    );
2532    #[wasm_bindgen(
2533        method,
2534        js_class = "WebGLRenderingContext",
2535        js_name = "vertexAttrib2fv"
2536    )]
2537    #[doc = "The `vertexAttrib2fv()` method."]
2538    #[doc = ""]
2539    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib2fv)"]
2540    #[doc = ""]
2541    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2542    pub fn vertex_attrib2fv_with_f32_sequence(
2543        this: &WebGlRenderingContext,
2544        indx: u32,
2545        values: &::wasm_bindgen::JsValue,
2546    );
2547    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "vertexAttrib3f")]
2548    #[doc = "The `vertexAttrib3f()` method."]
2549    #[doc = ""]
2550    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib3f)"]
2551    #[doc = ""]
2552    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2553    pub fn vertex_attrib3f(this: &WebGlRenderingContext, indx: u32, x: f32, y: f32, z: f32);
2554    #[wasm_bindgen(
2555        method,
2556        js_class = "WebGLRenderingContext",
2557        js_name = "vertexAttrib3fv"
2558    )]
2559    #[doc = "The `vertexAttrib3fv()` method."]
2560    #[doc = ""]
2561    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib3fv)"]
2562    #[doc = ""]
2563    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2564    pub fn vertex_attrib3fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32]);
2565    #[wasm_bindgen(
2566        method,
2567        js_class = "WebGLRenderingContext",
2568        js_name = "vertexAttrib3fv"
2569    )]
2570    #[doc = "The `vertexAttrib3fv()` method."]
2571    #[doc = ""]
2572    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib3fv)"]
2573    #[doc = ""]
2574    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2575    pub fn vertex_attrib3fv_with_js_f32_array(
2576        this: &WebGlRenderingContext,
2577        indx: u32,
2578        values: &::js_sys::Float32Array,
2579    );
2580    #[wasm_bindgen(
2581        method,
2582        js_class = "WebGLRenderingContext",
2583        js_name = "vertexAttrib3fv"
2584    )]
2585    #[doc = "The `vertexAttrib3fv()` method."]
2586    #[doc = ""]
2587    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib3fv)"]
2588    #[doc = ""]
2589    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2590    pub fn vertex_attrib3fv_with_f32_sequence(
2591        this: &WebGlRenderingContext,
2592        indx: u32,
2593        values: &::wasm_bindgen::JsValue,
2594    );
2595    #[wasm_bindgen(method, js_class = "WebGLRenderingContext", js_name = "vertexAttrib4f")]
2596    #[doc = "The `vertexAttrib4f()` method."]
2597    #[doc = ""]
2598    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib4f)"]
2599    #[doc = ""]
2600    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2601    pub fn vertex_attrib4f(this: &WebGlRenderingContext, indx: u32, x: f32, y: f32, z: f32, w: f32);
2602    #[wasm_bindgen(
2603        method,
2604        js_class = "WebGLRenderingContext",
2605        js_name = "vertexAttrib4fv"
2606    )]
2607    #[doc = "The `vertexAttrib4fv()` method."]
2608    #[doc = ""]
2609    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib4fv)"]
2610    #[doc = ""]
2611    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2612    pub fn vertex_attrib4fv_with_f32_array(this: &WebGlRenderingContext, indx: u32, values: &[f32]);
2613    #[wasm_bindgen(
2614        method,
2615        js_class = "WebGLRenderingContext",
2616        js_name = "vertexAttrib4fv"
2617    )]
2618    #[doc = "The `vertexAttrib4fv()` method."]
2619    #[doc = ""]
2620    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib4fv)"]
2621    #[doc = ""]
2622    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2623    pub fn vertex_attrib4fv_with_js_f32_array(
2624        this: &WebGlRenderingContext,
2625        indx: u32,
2626        values: &::js_sys::Float32Array,
2627    );
2628    #[wasm_bindgen(
2629        method,
2630        js_class = "WebGLRenderingContext",
2631        js_name = "vertexAttrib4fv"
2632    )]
2633    #[doc = "The `vertexAttrib4fv()` method."]
2634    #[doc = ""]
2635    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttrib4fv)"]
2636    #[doc = ""]
2637    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2638    pub fn vertex_attrib4fv_with_f32_sequence(
2639        this: &WebGlRenderingContext,
2640        indx: u32,
2641        values: &::wasm_bindgen::JsValue,
2642    );
2643    #[wasm_bindgen(
2644        method,
2645        js_class = "WebGLRenderingContext",
2646        js_name = "vertexAttribPointer"
2647    )]
2648    #[doc = "The `vertexAttribPointer()` method."]
2649    #[doc = ""]
2650    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttribPointer)"]
2651    #[doc = ""]
2652    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2653    pub fn vertex_attrib_pointer_with_i32(
2654        this: &WebGlRenderingContext,
2655        indx: u32,
2656        size: i32,
2657        type_: u32,
2658        normalized: bool,
2659        stride: i32,
2660        offset: i32,
2661    );
2662    #[wasm_bindgen(
2663        method,
2664        js_class = "WebGLRenderingContext",
2665        js_name = "vertexAttribPointer"
2666    )]
2667    #[doc = "The `vertexAttribPointer()` method."]
2668    #[doc = ""]
2669    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/vertexAttribPointer)"]
2670    #[doc = ""]
2671    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2672    pub fn vertex_attrib_pointer_with_f64(
2673        this: &WebGlRenderingContext,
2674        indx: u32,
2675        size: i32,
2676        type_: u32,
2677        normalized: bool,
2678        stride: i32,
2679        offset: f64,
2680    );
2681    #[wasm_bindgen(method, js_class = "WebGLRenderingContext")]
2682    #[doc = "The `viewport()` method."]
2683    #[doc = ""]
2684    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WebGLRenderingContext/viewport)"]
2685    #[doc = ""]
2686    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2687    pub fn viewport(this: &WebGlRenderingContext, x: i32, y: i32, width: i32, height: i32);
2688}
2689impl WebGlRenderingContext {
2690    #[doc = "The `WebGLRenderingContext.DEPTH_BUFFER_BIT` const."]
2691    #[doc = ""]
2692    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2693    pub const DEPTH_BUFFER_BIT: u32 = 256u64 as u32;
2694    #[doc = "The `WebGLRenderingContext.STENCIL_BUFFER_BIT` const."]
2695    #[doc = ""]
2696    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2697    pub const STENCIL_BUFFER_BIT: u32 = 1024u64 as u32;
2698    #[doc = "The `WebGLRenderingContext.COLOR_BUFFER_BIT` const."]
2699    #[doc = ""]
2700    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2701    pub const COLOR_BUFFER_BIT: u32 = 16384u64 as u32;
2702    #[doc = "The `WebGLRenderingContext.POINTS` const."]
2703    #[doc = ""]
2704    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2705    pub const POINTS: u32 = 0u64 as u32;
2706    #[doc = "The `WebGLRenderingContext.LINES` const."]
2707    #[doc = ""]
2708    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2709    pub const LINES: u32 = 1u64 as u32;
2710    #[doc = "The `WebGLRenderingContext.LINE_LOOP` const."]
2711    #[doc = ""]
2712    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2713    pub const LINE_LOOP: u32 = 2u64 as u32;
2714    #[doc = "The `WebGLRenderingContext.LINE_STRIP` const."]
2715    #[doc = ""]
2716    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2717    pub const LINE_STRIP: u32 = 3u64 as u32;
2718    #[doc = "The `WebGLRenderingContext.TRIANGLES` const."]
2719    #[doc = ""]
2720    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2721    pub const TRIANGLES: u32 = 4u64 as u32;
2722    #[doc = "The `WebGLRenderingContext.TRIANGLE_STRIP` const."]
2723    #[doc = ""]
2724    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2725    pub const TRIANGLE_STRIP: u32 = 5u64 as u32;
2726    #[doc = "The `WebGLRenderingContext.TRIANGLE_FAN` const."]
2727    #[doc = ""]
2728    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2729    pub const TRIANGLE_FAN: u32 = 6u64 as u32;
2730    #[doc = "The `WebGLRenderingContext.ZERO` const."]
2731    #[doc = ""]
2732    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2733    pub const ZERO: u32 = 0i64 as u32;
2734    #[doc = "The `WebGLRenderingContext.ONE` const."]
2735    #[doc = ""]
2736    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2737    pub const ONE: u32 = 1u64 as u32;
2738    #[doc = "The `WebGLRenderingContext.SRC_COLOR` const."]
2739    #[doc = ""]
2740    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2741    pub const SRC_COLOR: u32 = 768u64 as u32;
2742    #[doc = "The `WebGLRenderingContext.ONE_MINUS_SRC_COLOR` const."]
2743    #[doc = ""]
2744    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2745    pub const ONE_MINUS_SRC_COLOR: u32 = 769u64 as u32;
2746    #[doc = "The `WebGLRenderingContext.SRC_ALPHA` const."]
2747    #[doc = ""]
2748    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2749    pub const SRC_ALPHA: u32 = 770u64 as u32;
2750    #[doc = "The `WebGLRenderingContext.ONE_MINUS_SRC_ALPHA` const."]
2751    #[doc = ""]
2752    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2753    pub const ONE_MINUS_SRC_ALPHA: u32 = 771u64 as u32;
2754    #[doc = "The `WebGLRenderingContext.DST_ALPHA` const."]
2755    #[doc = ""]
2756    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2757    pub const DST_ALPHA: u32 = 772u64 as u32;
2758    #[doc = "The `WebGLRenderingContext.ONE_MINUS_DST_ALPHA` const."]
2759    #[doc = ""]
2760    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2761    pub const ONE_MINUS_DST_ALPHA: u32 = 773u64 as u32;
2762    #[doc = "The `WebGLRenderingContext.DST_COLOR` const."]
2763    #[doc = ""]
2764    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2765    pub const DST_COLOR: u32 = 774u64 as u32;
2766    #[doc = "The `WebGLRenderingContext.ONE_MINUS_DST_COLOR` const."]
2767    #[doc = ""]
2768    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2769    pub const ONE_MINUS_DST_COLOR: u32 = 775u64 as u32;
2770    #[doc = "The `WebGLRenderingContext.SRC_ALPHA_SATURATE` const."]
2771    #[doc = ""]
2772    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2773    pub const SRC_ALPHA_SATURATE: u32 = 776u64 as u32;
2774    #[doc = "The `WebGLRenderingContext.FUNC_ADD` const."]
2775    #[doc = ""]
2776    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2777    pub const FUNC_ADD: u32 = 32774u64 as u32;
2778    #[doc = "The `WebGLRenderingContext.BLEND_EQUATION` const."]
2779    #[doc = ""]
2780    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2781    pub const BLEND_EQUATION: u32 = 32777u64 as u32;
2782    #[doc = "The `WebGLRenderingContext.BLEND_EQUATION_RGB` const."]
2783    #[doc = ""]
2784    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2785    pub const BLEND_EQUATION_RGB: u32 = 32777u64 as u32;
2786    #[doc = "The `WebGLRenderingContext.BLEND_EQUATION_ALPHA` const."]
2787    #[doc = ""]
2788    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2789    pub const BLEND_EQUATION_ALPHA: u32 = 34877u64 as u32;
2790    #[doc = "The `WebGLRenderingContext.FUNC_SUBTRACT` const."]
2791    #[doc = ""]
2792    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2793    pub const FUNC_SUBTRACT: u32 = 32778u64 as u32;
2794    #[doc = "The `WebGLRenderingContext.FUNC_REVERSE_SUBTRACT` const."]
2795    #[doc = ""]
2796    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2797    pub const FUNC_REVERSE_SUBTRACT: u32 = 32779u64 as u32;
2798    #[doc = "The `WebGLRenderingContext.BLEND_DST_RGB` const."]
2799    #[doc = ""]
2800    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2801    pub const BLEND_DST_RGB: u32 = 32968u64 as u32;
2802    #[doc = "The `WebGLRenderingContext.BLEND_SRC_RGB` const."]
2803    #[doc = ""]
2804    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2805    pub const BLEND_SRC_RGB: u32 = 32969u64 as u32;
2806    #[doc = "The `WebGLRenderingContext.BLEND_DST_ALPHA` const."]
2807    #[doc = ""]
2808    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2809    pub const BLEND_DST_ALPHA: u32 = 32970u64 as u32;
2810    #[doc = "The `WebGLRenderingContext.BLEND_SRC_ALPHA` const."]
2811    #[doc = ""]
2812    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2813    pub const BLEND_SRC_ALPHA: u32 = 32971u64 as u32;
2814    #[doc = "The `WebGLRenderingContext.CONSTANT_COLOR` const."]
2815    #[doc = ""]
2816    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2817    pub const CONSTANT_COLOR: u32 = 32769u64 as u32;
2818    #[doc = "The `WebGLRenderingContext.ONE_MINUS_CONSTANT_COLOR` const."]
2819    #[doc = ""]
2820    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2821    pub const ONE_MINUS_CONSTANT_COLOR: u32 = 32770u64 as u32;
2822    #[doc = "The `WebGLRenderingContext.CONSTANT_ALPHA` const."]
2823    #[doc = ""]
2824    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2825    pub const CONSTANT_ALPHA: u32 = 32771u64 as u32;
2826    #[doc = "The `WebGLRenderingContext.ONE_MINUS_CONSTANT_ALPHA` const."]
2827    #[doc = ""]
2828    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2829    pub const ONE_MINUS_CONSTANT_ALPHA: u32 = 32772u64 as u32;
2830    #[doc = "The `WebGLRenderingContext.BLEND_COLOR` const."]
2831    #[doc = ""]
2832    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2833    pub const BLEND_COLOR: u32 = 32773u64 as u32;
2834    #[doc = "The `WebGLRenderingContext.ARRAY_BUFFER` const."]
2835    #[doc = ""]
2836    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2837    pub const ARRAY_BUFFER: u32 = 34962u64 as u32;
2838    #[doc = "The `WebGLRenderingContext.ELEMENT_ARRAY_BUFFER` const."]
2839    #[doc = ""]
2840    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2841    pub const ELEMENT_ARRAY_BUFFER: u32 = 34963u64 as u32;
2842    #[doc = "The `WebGLRenderingContext.ARRAY_BUFFER_BINDING` const."]
2843    #[doc = ""]
2844    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2845    pub const ARRAY_BUFFER_BINDING: u32 = 34964u64 as u32;
2846    #[doc = "The `WebGLRenderingContext.ELEMENT_ARRAY_BUFFER_BINDING` const."]
2847    #[doc = ""]
2848    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2849    pub const ELEMENT_ARRAY_BUFFER_BINDING: u32 = 34965u64 as u32;
2850    #[doc = "The `WebGLRenderingContext.STREAM_DRAW` const."]
2851    #[doc = ""]
2852    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2853    pub const STREAM_DRAW: u32 = 35040u64 as u32;
2854    #[doc = "The `WebGLRenderingContext.STATIC_DRAW` const."]
2855    #[doc = ""]
2856    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2857    pub const STATIC_DRAW: u32 = 35044u64 as u32;
2858    #[doc = "The `WebGLRenderingContext.DYNAMIC_DRAW` const."]
2859    #[doc = ""]
2860    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2861    pub const DYNAMIC_DRAW: u32 = 35048u64 as u32;
2862    #[doc = "The `WebGLRenderingContext.BUFFER_SIZE` const."]
2863    #[doc = ""]
2864    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2865    pub const BUFFER_SIZE: u32 = 34660u64 as u32;
2866    #[doc = "The `WebGLRenderingContext.BUFFER_USAGE` const."]
2867    #[doc = ""]
2868    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2869    pub const BUFFER_USAGE: u32 = 34661u64 as u32;
2870    #[doc = "The `WebGLRenderingContext.CURRENT_VERTEX_ATTRIB` const."]
2871    #[doc = ""]
2872    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2873    pub const CURRENT_VERTEX_ATTRIB: u32 = 34342u64 as u32;
2874    #[doc = "The `WebGLRenderingContext.FRONT` const."]
2875    #[doc = ""]
2876    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2877    pub const FRONT: u32 = 1028u64 as u32;
2878    #[doc = "The `WebGLRenderingContext.BACK` const."]
2879    #[doc = ""]
2880    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2881    pub const BACK: u32 = 1029u64 as u32;
2882    #[doc = "The `WebGLRenderingContext.FRONT_AND_BACK` const."]
2883    #[doc = ""]
2884    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2885    pub const FRONT_AND_BACK: u32 = 1032u64 as u32;
2886    #[doc = "The `WebGLRenderingContext.CULL_FACE` const."]
2887    #[doc = ""]
2888    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2889    pub const CULL_FACE: u32 = 2884u64 as u32;
2890    #[doc = "The `WebGLRenderingContext.BLEND` const."]
2891    #[doc = ""]
2892    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2893    pub const BLEND: u32 = 3042u64 as u32;
2894    #[doc = "The `WebGLRenderingContext.DITHER` const."]
2895    #[doc = ""]
2896    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2897    pub const DITHER: u32 = 3024u64 as u32;
2898    #[doc = "The `WebGLRenderingContext.STENCIL_TEST` const."]
2899    #[doc = ""]
2900    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2901    pub const STENCIL_TEST: u32 = 2960u64 as u32;
2902    #[doc = "The `WebGLRenderingContext.DEPTH_TEST` const."]
2903    #[doc = ""]
2904    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2905    pub const DEPTH_TEST: u32 = 2929u64 as u32;
2906    #[doc = "The `WebGLRenderingContext.SCISSOR_TEST` const."]
2907    #[doc = ""]
2908    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2909    pub const SCISSOR_TEST: u32 = 3089u64 as u32;
2910    #[doc = "The `WebGLRenderingContext.POLYGON_OFFSET_FILL` const."]
2911    #[doc = ""]
2912    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2913    pub const POLYGON_OFFSET_FILL: u32 = 32823u64 as u32;
2914    #[doc = "The `WebGLRenderingContext.SAMPLE_ALPHA_TO_COVERAGE` const."]
2915    #[doc = ""]
2916    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2917    pub const SAMPLE_ALPHA_TO_COVERAGE: u32 = 32926u64 as u32;
2918    #[doc = "The `WebGLRenderingContext.SAMPLE_COVERAGE` const."]
2919    #[doc = ""]
2920    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2921    pub const SAMPLE_COVERAGE: u32 = 32928u64 as u32;
2922    #[doc = "The `WebGLRenderingContext.NO_ERROR` const."]
2923    #[doc = ""]
2924    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2925    pub const NO_ERROR: u32 = 0i64 as u32;
2926    #[doc = "The `WebGLRenderingContext.INVALID_ENUM` const."]
2927    #[doc = ""]
2928    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2929    pub const INVALID_ENUM: u32 = 1280u64 as u32;
2930    #[doc = "The `WebGLRenderingContext.INVALID_VALUE` const."]
2931    #[doc = ""]
2932    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2933    pub const INVALID_VALUE: u32 = 1281u64 as u32;
2934    #[doc = "The `WebGLRenderingContext.INVALID_OPERATION` const."]
2935    #[doc = ""]
2936    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2937    pub const INVALID_OPERATION: u32 = 1282u64 as u32;
2938    #[doc = "The `WebGLRenderingContext.OUT_OF_MEMORY` const."]
2939    #[doc = ""]
2940    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2941    pub const OUT_OF_MEMORY: u32 = 1285u64 as u32;
2942    #[doc = "The `WebGLRenderingContext.CW` const."]
2943    #[doc = ""]
2944    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2945    pub const CW: u32 = 2304u64 as u32;
2946    #[doc = "The `WebGLRenderingContext.CCW` const."]
2947    #[doc = ""]
2948    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2949    pub const CCW: u32 = 2305u64 as u32;
2950    #[doc = "The `WebGLRenderingContext.LINE_WIDTH` const."]
2951    #[doc = ""]
2952    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2953    pub const LINE_WIDTH: u32 = 2849u64 as u32;
2954    #[doc = "The `WebGLRenderingContext.ALIASED_POINT_SIZE_RANGE` const."]
2955    #[doc = ""]
2956    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2957    pub const ALIASED_POINT_SIZE_RANGE: u32 = 33901u64 as u32;
2958    #[doc = "The `WebGLRenderingContext.ALIASED_LINE_WIDTH_RANGE` const."]
2959    #[doc = ""]
2960    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2961    pub const ALIASED_LINE_WIDTH_RANGE: u32 = 33902u64 as u32;
2962    #[doc = "The `WebGLRenderingContext.CULL_FACE_MODE` const."]
2963    #[doc = ""]
2964    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2965    pub const CULL_FACE_MODE: u32 = 2885u64 as u32;
2966    #[doc = "The `WebGLRenderingContext.FRONT_FACE` const."]
2967    #[doc = ""]
2968    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2969    pub const FRONT_FACE: u32 = 2886u64 as u32;
2970    #[doc = "The `WebGLRenderingContext.DEPTH_RANGE` const."]
2971    #[doc = ""]
2972    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2973    pub const DEPTH_RANGE: u32 = 2928u64 as u32;
2974    #[doc = "The `WebGLRenderingContext.DEPTH_WRITEMASK` const."]
2975    #[doc = ""]
2976    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2977    pub const DEPTH_WRITEMASK: u32 = 2930u64 as u32;
2978    #[doc = "The `WebGLRenderingContext.DEPTH_CLEAR_VALUE` const."]
2979    #[doc = ""]
2980    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2981    pub const DEPTH_CLEAR_VALUE: u32 = 2931u64 as u32;
2982    #[doc = "The `WebGLRenderingContext.DEPTH_FUNC` const."]
2983    #[doc = ""]
2984    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2985    pub const DEPTH_FUNC: u32 = 2932u64 as u32;
2986    #[doc = "The `WebGLRenderingContext.STENCIL_CLEAR_VALUE` const."]
2987    #[doc = ""]
2988    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2989    pub const STENCIL_CLEAR_VALUE: u32 = 2961u64 as u32;
2990    #[doc = "The `WebGLRenderingContext.STENCIL_FUNC` const."]
2991    #[doc = ""]
2992    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2993    pub const STENCIL_FUNC: u32 = 2962u64 as u32;
2994    #[doc = "The `WebGLRenderingContext.STENCIL_FAIL` const."]
2995    #[doc = ""]
2996    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
2997    pub const STENCIL_FAIL: u32 = 2964u64 as u32;
2998    #[doc = "The `WebGLRenderingContext.STENCIL_PASS_DEPTH_FAIL` const."]
2999    #[doc = ""]
3000    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3001    pub const STENCIL_PASS_DEPTH_FAIL: u32 = 2965u64 as u32;
3002    #[doc = "The `WebGLRenderingContext.STENCIL_PASS_DEPTH_PASS` const."]
3003    #[doc = ""]
3004    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3005    pub const STENCIL_PASS_DEPTH_PASS: u32 = 2966u64 as u32;
3006    #[doc = "The `WebGLRenderingContext.STENCIL_REF` const."]
3007    #[doc = ""]
3008    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3009    pub const STENCIL_REF: u32 = 2967u64 as u32;
3010    #[doc = "The `WebGLRenderingContext.STENCIL_VALUE_MASK` const."]
3011    #[doc = ""]
3012    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3013    pub const STENCIL_VALUE_MASK: u32 = 2963u64 as u32;
3014    #[doc = "The `WebGLRenderingContext.STENCIL_WRITEMASK` const."]
3015    #[doc = ""]
3016    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3017    pub const STENCIL_WRITEMASK: u32 = 2968u64 as u32;
3018    #[doc = "The `WebGLRenderingContext.STENCIL_BACK_FUNC` const."]
3019    #[doc = ""]
3020    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3021    pub const STENCIL_BACK_FUNC: u32 = 34816u64 as u32;
3022    #[doc = "The `WebGLRenderingContext.STENCIL_BACK_FAIL` const."]
3023    #[doc = ""]
3024    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3025    pub const STENCIL_BACK_FAIL: u32 = 34817u64 as u32;
3026    #[doc = "The `WebGLRenderingContext.STENCIL_BACK_PASS_DEPTH_FAIL` const."]
3027    #[doc = ""]
3028    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3029    pub const STENCIL_BACK_PASS_DEPTH_FAIL: u32 = 34818u64 as u32;
3030    #[doc = "The `WebGLRenderingContext.STENCIL_BACK_PASS_DEPTH_PASS` const."]
3031    #[doc = ""]
3032    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3033    pub const STENCIL_BACK_PASS_DEPTH_PASS: u32 = 34819u64 as u32;
3034    #[doc = "The `WebGLRenderingContext.STENCIL_BACK_REF` const."]
3035    #[doc = ""]
3036    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3037    pub const STENCIL_BACK_REF: u32 = 36003u64 as u32;
3038    #[doc = "The `WebGLRenderingContext.STENCIL_BACK_VALUE_MASK` const."]
3039    #[doc = ""]
3040    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3041    pub const STENCIL_BACK_VALUE_MASK: u32 = 36004u64 as u32;
3042    #[doc = "The `WebGLRenderingContext.STENCIL_BACK_WRITEMASK` const."]
3043    #[doc = ""]
3044    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3045    pub const STENCIL_BACK_WRITEMASK: u32 = 36005u64 as u32;
3046    #[doc = "The `WebGLRenderingContext.VIEWPORT` const."]
3047    #[doc = ""]
3048    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3049    pub const VIEWPORT: u32 = 2978u64 as u32;
3050    #[doc = "The `WebGLRenderingContext.SCISSOR_BOX` const."]
3051    #[doc = ""]
3052    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3053    pub const SCISSOR_BOX: u32 = 3088u64 as u32;
3054    #[doc = "The `WebGLRenderingContext.COLOR_CLEAR_VALUE` const."]
3055    #[doc = ""]
3056    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3057    pub const COLOR_CLEAR_VALUE: u32 = 3106u64 as u32;
3058    #[doc = "The `WebGLRenderingContext.COLOR_WRITEMASK` const."]
3059    #[doc = ""]
3060    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3061    pub const COLOR_WRITEMASK: u32 = 3107u64 as u32;
3062    #[doc = "The `WebGLRenderingContext.UNPACK_ALIGNMENT` const."]
3063    #[doc = ""]
3064    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3065    pub const UNPACK_ALIGNMENT: u32 = 3317u64 as u32;
3066    #[doc = "The `WebGLRenderingContext.PACK_ALIGNMENT` const."]
3067    #[doc = ""]
3068    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3069    pub const PACK_ALIGNMENT: u32 = 3333u64 as u32;
3070    #[doc = "The `WebGLRenderingContext.MAX_TEXTURE_SIZE` const."]
3071    #[doc = ""]
3072    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3073    pub const MAX_TEXTURE_SIZE: u32 = 3379u64 as u32;
3074    #[doc = "The `WebGLRenderingContext.MAX_VIEWPORT_DIMS` const."]
3075    #[doc = ""]
3076    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3077    pub const MAX_VIEWPORT_DIMS: u32 = 3386u64 as u32;
3078    #[doc = "The `WebGLRenderingContext.SUBPIXEL_BITS` const."]
3079    #[doc = ""]
3080    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3081    pub const SUBPIXEL_BITS: u32 = 3408u64 as u32;
3082    #[doc = "The `WebGLRenderingContext.RED_BITS` const."]
3083    #[doc = ""]
3084    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3085    pub const RED_BITS: u32 = 3410u64 as u32;
3086    #[doc = "The `WebGLRenderingContext.GREEN_BITS` const."]
3087    #[doc = ""]
3088    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3089    pub const GREEN_BITS: u32 = 3411u64 as u32;
3090    #[doc = "The `WebGLRenderingContext.BLUE_BITS` const."]
3091    #[doc = ""]
3092    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3093    pub const BLUE_BITS: u32 = 3412u64 as u32;
3094    #[doc = "The `WebGLRenderingContext.ALPHA_BITS` const."]
3095    #[doc = ""]
3096    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3097    pub const ALPHA_BITS: u32 = 3413u64 as u32;
3098    #[doc = "The `WebGLRenderingContext.DEPTH_BITS` const."]
3099    #[doc = ""]
3100    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3101    pub const DEPTH_BITS: u32 = 3414u64 as u32;
3102    #[doc = "The `WebGLRenderingContext.STENCIL_BITS` const."]
3103    #[doc = ""]
3104    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3105    pub const STENCIL_BITS: u32 = 3415u64 as u32;
3106    #[doc = "The `WebGLRenderingContext.POLYGON_OFFSET_UNITS` const."]
3107    #[doc = ""]
3108    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3109    pub const POLYGON_OFFSET_UNITS: u32 = 10752u64 as u32;
3110    #[doc = "The `WebGLRenderingContext.POLYGON_OFFSET_FACTOR` const."]
3111    #[doc = ""]
3112    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3113    pub const POLYGON_OFFSET_FACTOR: u32 = 32824u64 as u32;
3114    #[doc = "The `WebGLRenderingContext.TEXTURE_BINDING_2D` const."]
3115    #[doc = ""]
3116    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3117    pub const TEXTURE_BINDING_2D: u32 = 32873u64 as u32;
3118    #[doc = "The `WebGLRenderingContext.SAMPLE_BUFFERS` const."]
3119    #[doc = ""]
3120    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3121    pub const SAMPLE_BUFFERS: u32 = 32936u64 as u32;
3122    #[doc = "The `WebGLRenderingContext.SAMPLES` const."]
3123    #[doc = ""]
3124    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3125    pub const SAMPLES: u32 = 32937u64 as u32;
3126    #[doc = "The `WebGLRenderingContext.SAMPLE_COVERAGE_VALUE` const."]
3127    #[doc = ""]
3128    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3129    pub const SAMPLE_COVERAGE_VALUE: u32 = 32938u64 as u32;
3130    #[doc = "The `WebGLRenderingContext.SAMPLE_COVERAGE_INVERT` const."]
3131    #[doc = ""]
3132    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3133    pub const SAMPLE_COVERAGE_INVERT: u32 = 32939u64 as u32;
3134    #[doc = "The `WebGLRenderingContext.COMPRESSED_TEXTURE_FORMATS` const."]
3135    #[doc = ""]
3136    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3137    pub const COMPRESSED_TEXTURE_FORMATS: u32 = 34467u64 as u32;
3138    #[doc = "The `WebGLRenderingContext.DONT_CARE` const."]
3139    #[doc = ""]
3140    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3141    pub const DONT_CARE: u32 = 4352u64 as u32;
3142    #[doc = "The `WebGLRenderingContext.FASTEST` const."]
3143    #[doc = ""]
3144    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3145    pub const FASTEST: u32 = 4353u64 as u32;
3146    #[doc = "The `WebGLRenderingContext.NICEST` const."]
3147    #[doc = ""]
3148    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3149    pub const NICEST: u32 = 4354u64 as u32;
3150    #[doc = "The `WebGLRenderingContext.GENERATE_MIPMAP_HINT` const."]
3151    #[doc = ""]
3152    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3153    pub const GENERATE_MIPMAP_HINT: u32 = 33170u64 as u32;
3154    #[doc = "The `WebGLRenderingContext.BYTE` const."]
3155    #[doc = ""]
3156    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3157    pub const BYTE: u32 = 5120u64 as u32;
3158    #[doc = "The `WebGLRenderingContext.UNSIGNED_BYTE` const."]
3159    #[doc = ""]
3160    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3161    pub const UNSIGNED_BYTE: u32 = 5121u64 as u32;
3162    #[doc = "The `WebGLRenderingContext.SHORT` const."]
3163    #[doc = ""]
3164    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3165    pub const SHORT: u32 = 5122u64 as u32;
3166    #[doc = "The `WebGLRenderingContext.UNSIGNED_SHORT` const."]
3167    #[doc = ""]
3168    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3169    pub const UNSIGNED_SHORT: u32 = 5123u64 as u32;
3170    #[doc = "The `WebGLRenderingContext.INT` const."]
3171    #[doc = ""]
3172    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3173    pub const INT: u32 = 5124u64 as u32;
3174    #[doc = "The `WebGLRenderingContext.UNSIGNED_INT` const."]
3175    #[doc = ""]
3176    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3177    pub const UNSIGNED_INT: u32 = 5125u64 as u32;
3178    #[doc = "The `WebGLRenderingContext.FLOAT` const."]
3179    #[doc = ""]
3180    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3181    pub const FLOAT: u32 = 5126u64 as u32;
3182    #[doc = "The `WebGLRenderingContext.DEPTH_COMPONENT` const."]
3183    #[doc = ""]
3184    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3185    pub const DEPTH_COMPONENT: u32 = 6402u64 as u32;
3186    #[doc = "The `WebGLRenderingContext.ALPHA` const."]
3187    #[doc = ""]
3188    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3189    pub const ALPHA: u32 = 6406u64 as u32;
3190    #[doc = "The `WebGLRenderingContext.RGB` const."]
3191    #[doc = ""]
3192    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3193    pub const RGB: u32 = 6407u64 as u32;
3194    #[doc = "The `WebGLRenderingContext.RGBA` const."]
3195    #[doc = ""]
3196    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3197    pub const RGBA: u32 = 6408u64 as u32;
3198    #[doc = "The `WebGLRenderingContext.LUMINANCE` const."]
3199    #[doc = ""]
3200    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3201    pub const LUMINANCE: u32 = 6409u64 as u32;
3202    #[doc = "The `WebGLRenderingContext.LUMINANCE_ALPHA` const."]
3203    #[doc = ""]
3204    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3205    pub const LUMINANCE_ALPHA: u32 = 6410u64 as u32;
3206    #[doc = "The `WebGLRenderingContext.UNSIGNED_SHORT_4_4_4_4` const."]
3207    #[doc = ""]
3208    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3209    pub const UNSIGNED_SHORT_4_4_4_4: u32 = 32819u64 as u32;
3210    #[doc = "The `WebGLRenderingContext.UNSIGNED_SHORT_5_5_5_1` const."]
3211    #[doc = ""]
3212    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3213    pub const UNSIGNED_SHORT_5_5_5_1: u32 = 32820u64 as u32;
3214    #[doc = "The `WebGLRenderingContext.UNSIGNED_SHORT_5_6_5` const."]
3215    #[doc = ""]
3216    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3217    pub const UNSIGNED_SHORT_5_6_5: u32 = 33635u64 as u32;
3218    #[doc = "The `WebGLRenderingContext.FRAGMENT_SHADER` const."]
3219    #[doc = ""]
3220    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3221    pub const FRAGMENT_SHADER: u32 = 35632u64 as u32;
3222    #[doc = "The `WebGLRenderingContext.VERTEX_SHADER` const."]
3223    #[doc = ""]
3224    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3225    pub const VERTEX_SHADER: u32 = 35633u64 as u32;
3226    #[doc = "The `WebGLRenderingContext.MAX_VERTEX_ATTRIBS` const."]
3227    #[doc = ""]
3228    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3229    pub const MAX_VERTEX_ATTRIBS: u32 = 34921u64 as u32;
3230    #[doc = "The `WebGLRenderingContext.MAX_VERTEX_UNIFORM_VECTORS` const."]
3231    #[doc = ""]
3232    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3233    pub const MAX_VERTEX_UNIFORM_VECTORS: u32 = 36347u64 as u32;
3234    #[doc = "The `WebGLRenderingContext.MAX_VARYING_VECTORS` const."]
3235    #[doc = ""]
3236    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3237    pub const MAX_VARYING_VECTORS: u32 = 36348u64 as u32;
3238    #[doc = "The `WebGLRenderingContext.MAX_COMBINED_TEXTURE_IMAGE_UNITS` const."]
3239    #[doc = ""]
3240    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3241    pub const MAX_COMBINED_TEXTURE_IMAGE_UNITS: u32 = 35661u64 as u32;
3242    #[doc = "The `WebGLRenderingContext.MAX_VERTEX_TEXTURE_IMAGE_UNITS` const."]
3243    #[doc = ""]
3244    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3245    pub const MAX_VERTEX_TEXTURE_IMAGE_UNITS: u32 = 35660u64 as u32;
3246    #[doc = "The `WebGLRenderingContext.MAX_TEXTURE_IMAGE_UNITS` const."]
3247    #[doc = ""]
3248    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3249    pub const MAX_TEXTURE_IMAGE_UNITS: u32 = 34930u64 as u32;
3250    #[doc = "The `WebGLRenderingContext.MAX_FRAGMENT_UNIFORM_VECTORS` const."]
3251    #[doc = ""]
3252    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3253    pub const MAX_FRAGMENT_UNIFORM_VECTORS: u32 = 36349u64 as u32;
3254    #[doc = "The `WebGLRenderingContext.SHADER_TYPE` const."]
3255    #[doc = ""]
3256    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3257    pub const SHADER_TYPE: u32 = 35663u64 as u32;
3258    #[doc = "The `WebGLRenderingContext.DELETE_STATUS` const."]
3259    #[doc = ""]
3260    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3261    pub const DELETE_STATUS: u32 = 35712u64 as u32;
3262    #[doc = "The `WebGLRenderingContext.LINK_STATUS` const."]
3263    #[doc = ""]
3264    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3265    pub const LINK_STATUS: u32 = 35714u64 as u32;
3266    #[doc = "The `WebGLRenderingContext.VALIDATE_STATUS` const."]
3267    #[doc = ""]
3268    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3269    pub const VALIDATE_STATUS: u32 = 35715u64 as u32;
3270    #[doc = "The `WebGLRenderingContext.ATTACHED_SHADERS` const."]
3271    #[doc = ""]
3272    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3273    pub const ATTACHED_SHADERS: u32 = 35717u64 as u32;
3274    #[doc = "The `WebGLRenderingContext.ACTIVE_UNIFORMS` const."]
3275    #[doc = ""]
3276    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3277    pub const ACTIVE_UNIFORMS: u32 = 35718u64 as u32;
3278    #[doc = "The `WebGLRenderingContext.ACTIVE_ATTRIBUTES` const."]
3279    #[doc = ""]
3280    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3281    pub const ACTIVE_ATTRIBUTES: u32 = 35721u64 as u32;
3282    #[doc = "The `WebGLRenderingContext.SHADING_LANGUAGE_VERSION` const."]
3283    #[doc = ""]
3284    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3285    pub const SHADING_LANGUAGE_VERSION: u32 = 35724u64 as u32;
3286    #[doc = "The `WebGLRenderingContext.CURRENT_PROGRAM` const."]
3287    #[doc = ""]
3288    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3289    pub const CURRENT_PROGRAM: u32 = 35725u64 as u32;
3290    #[doc = "The `WebGLRenderingContext.NEVER` const."]
3291    #[doc = ""]
3292    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3293    pub const NEVER: u32 = 512u64 as u32;
3294    #[doc = "The `WebGLRenderingContext.LESS` const."]
3295    #[doc = ""]
3296    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3297    pub const LESS: u32 = 513u64 as u32;
3298    #[doc = "The `WebGLRenderingContext.EQUAL` const."]
3299    #[doc = ""]
3300    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3301    pub const EQUAL: u32 = 514u64 as u32;
3302    #[doc = "The `WebGLRenderingContext.LEQUAL` const."]
3303    #[doc = ""]
3304    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3305    pub const LEQUAL: u32 = 515u64 as u32;
3306    #[doc = "The `WebGLRenderingContext.GREATER` const."]
3307    #[doc = ""]
3308    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3309    pub const GREATER: u32 = 516u64 as u32;
3310    #[doc = "The `WebGLRenderingContext.NOTEQUAL` const."]
3311    #[doc = ""]
3312    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3313    pub const NOTEQUAL: u32 = 517u64 as u32;
3314    #[doc = "The `WebGLRenderingContext.GEQUAL` const."]
3315    #[doc = ""]
3316    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3317    pub const GEQUAL: u32 = 518u64 as u32;
3318    #[doc = "The `WebGLRenderingContext.ALWAYS` const."]
3319    #[doc = ""]
3320    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3321    pub const ALWAYS: u32 = 519u64 as u32;
3322    #[doc = "The `WebGLRenderingContext.KEEP` const."]
3323    #[doc = ""]
3324    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3325    pub const KEEP: u32 = 7680u64 as u32;
3326    #[doc = "The `WebGLRenderingContext.REPLACE` const."]
3327    #[doc = ""]
3328    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3329    pub const REPLACE: u32 = 7681u64 as u32;
3330    #[doc = "The `WebGLRenderingContext.INCR` const."]
3331    #[doc = ""]
3332    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3333    pub const INCR: u32 = 7682u64 as u32;
3334    #[doc = "The `WebGLRenderingContext.DECR` const."]
3335    #[doc = ""]
3336    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3337    pub const DECR: u32 = 7683u64 as u32;
3338    #[doc = "The `WebGLRenderingContext.INVERT` const."]
3339    #[doc = ""]
3340    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3341    pub const INVERT: u32 = 5386u64 as u32;
3342    #[doc = "The `WebGLRenderingContext.INCR_WRAP` const."]
3343    #[doc = ""]
3344    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3345    pub const INCR_WRAP: u32 = 34055u64 as u32;
3346    #[doc = "The `WebGLRenderingContext.DECR_WRAP` const."]
3347    #[doc = ""]
3348    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3349    pub const DECR_WRAP: u32 = 34056u64 as u32;
3350    #[doc = "The `WebGLRenderingContext.VENDOR` const."]
3351    #[doc = ""]
3352    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3353    pub const VENDOR: u32 = 7936u64 as u32;
3354    #[doc = "The `WebGLRenderingContext.RENDERER` const."]
3355    #[doc = ""]
3356    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3357    pub const RENDERER: u32 = 7937u64 as u32;
3358    #[doc = "The `WebGLRenderingContext.VERSION` const."]
3359    #[doc = ""]
3360    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3361    pub const VERSION: u32 = 7938u64 as u32;
3362    #[doc = "The `WebGLRenderingContext.NEAREST` const."]
3363    #[doc = ""]
3364    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3365    pub const NEAREST: u32 = 9728u64 as u32;
3366    #[doc = "The `WebGLRenderingContext.LINEAR` const."]
3367    #[doc = ""]
3368    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3369    pub const LINEAR: u32 = 9729u64 as u32;
3370    #[doc = "The `WebGLRenderingContext.NEAREST_MIPMAP_NEAREST` const."]
3371    #[doc = ""]
3372    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3373    pub const NEAREST_MIPMAP_NEAREST: u32 = 9984u64 as u32;
3374    #[doc = "The `WebGLRenderingContext.LINEAR_MIPMAP_NEAREST` const."]
3375    #[doc = ""]
3376    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3377    pub const LINEAR_MIPMAP_NEAREST: u32 = 9985u64 as u32;
3378    #[doc = "The `WebGLRenderingContext.NEAREST_MIPMAP_LINEAR` const."]
3379    #[doc = ""]
3380    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3381    pub const NEAREST_MIPMAP_LINEAR: u32 = 9986u64 as u32;
3382    #[doc = "The `WebGLRenderingContext.LINEAR_MIPMAP_LINEAR` const."]
3383    #[doc = ""]
3384    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3385    pub const LINEAR_MIPMAP_LINEAR: u32 = 9987u64 as u32;
3386    #[doc = "The `WebGLRenderingContext.TEXTURE_MAG_FILTER` const."]
3387    #[doc = ""]
3388    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3389    pub const TEXTURE_MAG_FILTER: u32 = 10240u64 as u32;
3390    #[doc = "The `WebGLRenderingContext.TEXTURE_MIN_FILTER` const."]
3391    #[doc = ""]
3392    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3393    pub const TEXTURE_MIN_FILTER: u32 = 10241u64 as u32;
3394    #[doc = "The `WebGLRenderingContext.TEXTURE_WRAP_S` const."]
3395    #[doc = ""]
3396    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3397    pub const TEXTURE_WRAP_S: u32 = 10242u64 as u32;
3398    #[doc = "The `WebGLRenderingContext.TEXTURE_WRAP_T` const."]
3399    #[doc = ""]
3400    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3401    pub const TEXTURE_WRAP_T: u32 = 10243u64 as u32;
3402    #[doc = "The `WebGLRenderingContext.TEXTURE_2D` const."]
3403    #[doc = ""]
3404    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3405    pub const TEXTURE_2D: u32 = 3553u64 as u32;
3406    #[doc = "The `WebGLRenderingContext.TEXTURE` const."]
3407    #[doc = ""]
3408    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3409    pub const TEXTURE: u32 = 5890u64 as u32;
3410    #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP` const."]
3411    #[doc = ""]
3412    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3413    pub const TEXTURE_CUBE_MAP: u32 = 34067u64 as u32;
3414    #[doc = "The `WebGLRenderingContext.TEXTURE_BINDING_CUBE_MAP` const."]
3415    #[doc = ""]
3416    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3417    pub const TEXTURE_BINDING_CUBE_MAP: u32 = 34068u64 as u32;
3418    #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_X` const."]
3419    #[doc = ""]
3420    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3421    pub const TEXTURE_CUBE_MAP_POSITIVE_X: u32 = 34069u64 as u32;
3422    #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X` const."]
3423    #[doc = ""]
3424    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3425    pub const TEXTURE_CUBE_MAP_NEGATIVE_X: u32 = 34070u64 as u32;
3426    #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y` const."]
3427    #[doc = ""]
3428    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3429    pub const TEXTURE_CUBE_MAP_POSITIVE_Y: u32 = 34071u64 as u32;
3430    #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y` const."]
3431    #[doc = ""]
3432    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3433    pub const TEXTURE_CUBE_MAP_NEGATIVE_Y: u32 = 34072u64 as u32;
3434    #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z` const."]
3435    #[doc = ""]
3436    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3437    pub const TEXTURE_CUBE_MAP_POSITIVE_Z: u32 = 34073u64 as u32;
3438    #[doc = "The `WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z` const."]
3439    #[doc = ""]
3440    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3441    pub const TEXTURE_CUBE_MAP_NEGATIVE_Z: u32 = 34074u64 as u32;
3442    #[doc = "The `WebGLRenderingContext.MAX_CUBE_MAP_TEXTURE_SIZE` const."]
3443    #[doc = ""]
3444    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3445    pub const MAX_CUBE_MAP_TEXTURE_SIZE: u32 = 34076u64 as u32;
3446    #[doc = "The `WebGLRenderingContext.TEXTURE0` const."]
3447    #[doc = ""]
3448    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3449    pub const TEXTURE0: u32 = 33984u64 as u32;
3450    #[doc = "The `WebGLRenderingContext.TEXTURE1` const."]
3451    #[doc = ""]
3452    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3453    pub const TEXTURE1: u32 = 33985u64 as u32;
3454    #[doc = "The `WebGLRenderingContext.TEXTURE2` const."]
3455    #[doc = ""]
3456    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3457    pub const TEXTURE2: u32 = 33986u64 as u32;
3458    #[doc = "The `WebGLRenderingContext.TEXTURE3` const."]
3459    #[doc = ""]
3460    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3461    pub const TEXTURE3: u32 = 33987u64 as u32;
3462    #[doc = "The `WebGLRenderingContext.TEXTURE4` const."]
3463    #[doc = ""]
3464    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3465    pub const TEXTURE4: u32 = 33988u64 as u32;
3466    #[doc = "The `WebGLRenderingContext.TEXTURE5` const."]
3467    #[doc = ""]
3468    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3469    pub const TEXTURE5: u32 = 33989u64 as u32;
3470    #[doc = "The `WebGLRenderingContext.TEXTURE6` const."]
3471    #[doc = ""]
3472    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3473    pub const TEXTURE6: u32 = 33990u64 as u32;
3474    #[doc = "The `WebGLRenderingContext.TEXTURE7` const."]
3475    #[doc = ""]
3476    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3477    pub const TEXTURE7: u32 = 33991u64 as u32;
3478    #[doc = "The `WebGLRenderingContext.TEXTURE8` const."]
3479    #[doc = ""]
3480    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3481    pub const TEXTURE8: u32 = 33992u64 as u32;
3482    #[doc = "The `WebGLRenderingContext.TEXTURE9` const."]
3483    #[doc = ""]
3484    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3485    pub const TEXTURE9: u32 = 33993u64 as u32;
3486    #[doc = "The `WebGLRenderingContext.TEXTURE10` const."]
3487    #[doc = ""]
3488    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3489    pub const TEXTURE10: u32 = 33994u64 as u32;
3490    #[doc = "The `WebGLRenderingContext.TEXTURE11` const."]
3491    #[doc = ""]
3492    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3493    pub const TEXTURE11: u32 = 33995u64 as u32;
3494    #[doc = "The `WebGLRenderingContext.TEXTURE12` const."]
3495    #[doc = ""]
3496    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3497    pub const TEXTURE12: u32 = 33996u64 as u32;
3498    #[doc = "The `WebGLRenderingContext.TEXTURE13` const."]
3499    #[doc = ""]
3500    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3501    pub const TEXTURE13: u32 = 33997u64 as u32;
3502    #[doc = "The `WebGLRenderingContext.TEXTURE14` const."]
3503    #[doc = ""]
3504    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3505    pub const TEXTURE14: u32 = 33998u64 as u32;
3506    #[doc = "The `WebGLRenderingContext.TEXTURE15` const."]
3507    #[doc = ""]
3508    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3509    pub const TEXTURE15: u32 = 33999u64 as u32;
3510    #[doc = "The `WebGLRenderingContext.TEXTURE16` const."]
3511    #[doc = ""]
3512    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3513    pub const TEXTURE16: u32 = 34000u64 as u32;
3514    #[doc = "The `WebGLRenderingContext.TEXTURE17` const."]
3515    #[doc = ""]
3516    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3517    pub const TEXTURE17: u32 = 34001u64 as u32;
3518    #[doc = "The `WebGLRenderingContext.TEXTURE18` const."]
3519    #[doc = ""]
3520    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3521    pub const TEXTURE18: u32 = 34002u64 as u32;
3522    #[doc = "The `WebGLRenderingContext.TEXTURE19` const."]
3523    #[doc = ""]
3524    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3525    pub const TEXTURE19: u32 = 34003u64 as u32;
3526    #[doc = "The `WebGLRenderingContext.TEXTURE20` const."]
3527    #[doc = ""]
3528    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3529    pub const TEXTURE20: u32 = 34004u64 as u32;
3530    #[doc = "The `WebGLRenderingContext.TEXTURE21` const."]
3531    #[doc = ""]
3532    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3533    pub const TEXTURE21: u32 = 34005u64 as u32;
3534    #[doc = "The `WebGLRenderingContext.TEXTURE22` const."]
3535    #[doc = ""]
3536    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3537    pub const TEXTURE22: u32 = 34006u64 as u32;
3538    #[doc = "The `WebGLRenderingContext.TEXTURE23` const."]
3539    #[doc = ""]
3540    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3541    pub const TEXTURE23: u32 = 34007u64 as u32;
3542    #[doc = "The `WebGLRenderingContext.TEXTURE24` const."]
3543    #[doc = ""]
3544    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3545    pub const TEXTURE24: u32 = 34008u64 as u32;
3546    #[doc = "The `WebGLRenderingContext.TEXTURE25` const."]
3547    #[doc = ""]
3548    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3549    pub const TEXTURE25: u32 = 34009u64 as u32;
3550    #[doc = "The `WebGLRenderingContext.TEXTURE26` const."]
3551    #[doc = ""]
3552    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3553    pub const TEXTURE26: u32 = 34010u64 as u32;
3554    #[doc = "The `WebGLRenderingContext.TEXTURE27` const."]
3555    #[doc = ""]
3556    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3557    pub const TEXTURE27: u32 = 34011u64 as u32;
3558    #[doc = "The `WebGLRenderingContext.TEXTURE28` const."]
3559    #[doc = ""]
3560    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3561    pub const TEXTURE28: u32 = 34012u64 as u32;
3562    #[doc = "The `WebGLRenderingContext.TEXTURE29` const."]
3563    #[doc = ""]
3564    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3565    pub const TEXTURE29: u32 = 34013u64 as u32;
3566    #[doc = "The `WebGLRenderingContext.TEXTURE30` const."]
3567    #[doc = ""]
3568    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3569    pub const TEXTURE30: u32 = 34014u64 as u32;
3570    #[doc = "The `WebGLRenderingContext.TEXTURE31` const."]
3571    #[doc = ""]
3572    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3573    pub const TEXTURE31: u32 = 34015u64 as u32;
3574    #[doc = "The `WebGLRenderingContext.ACTIVE_TEXTURE` const."]
3575    #[doc = ""]
3576    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3577    pub const ACTIVE_TEXTURE: u32 = 34016u64 as u32;
3578    #[doc = "The `WebGLRenderingContext.REPEAT` const."]
3579    #[doc = ""]
3580    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3581    pub const REPEAT: u32 = 10497u64 as u32;
3582    #[doc = "The `WebGLRenderingContext.CLAMP_TO_EDGE` const."]
3583    #[doc = ""]
3584    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3585    pub const CLAMP_TO_EDGE: u32 = 33071u64 as u32;
3586    #[doc = "The `WebGLRenderingContext.MIRRORED_REPEAT` const."]
3587    #[doc = ""]
3588    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3589    pub const MIRRORED_REPEAT: u32 = 33648u64 as u32;
3590    #[doc = "The `WebGLRenderingContext.FLOAT_VEC2` const."]
3591    #[doc = ""]
3592    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3593    pub const FLOAT_VEC2: u32 = 35664u64 as u32;
3594    #[doc = "The `WebGLRenderingContext.FLOAT_VEC3` const."]
3595    #[doc = ""]
3596    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3597    pub const FLOAT_VEC3: u32 = 35665u64 as u32;
3598    #[doc = "The `WebGLRenderingContext.FLOAT_VEC4` const."]
3599    #[doc = ""]
3600    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3601    pub const FLOAT_VEC4: u32 = 35666u64 as u32;
3602    #[doc = "The `WebGLRenderingContext.INT_VEC2` const."]
3603    #[doc = ""]
3604    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3605    pub const INT_VEC2: u32 = 35667u64 as u32;
3606    #[doc = "The `WebGLRenderingContext.INT_VEC3` const."]
3607    #[doc = ""]
3608    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3609    pub const INT_VEC3: u32 = 35668u64 as u32;
3610    #[doc = "The `WebGLRenderingContext.INT_VEC4` const."]
3611    #[doc = ""]
3612    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3613    pub const INT_VEC4: u32 = 35669u64 as u32;
3614    #[doc = "The `WebGLRenderingContext.BOOL` const."]
3615    #[doc = ""]
3616    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3617    pub const BOOL: u32 = 35670u64 as u32;
3618    #[doc = "The `WebGLRenderingContext.BOOL_VEC2` const."]
3619    #[doc = ""]
3620    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3621    pub const BOOL_VEC2: u32 = 35671u64 as u32;
3622    #[doc = "The `WebGLRenderingContext.BOOL_VEC3` const."]
3623    #[doc = ""]
3624    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3625    pub const BOOL_VEC3: u32 = 35672u64 as u32;
3626    #[doc = "The `WebGLRenderingContext.BOOL_VEC4` const."]
3627    #[doc = ""]
3628    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3629    pub const BOOL_VEC4: u32 = 35673u64 as u32;
3630    #[doc = "The `WebGLRenderingContext.FLOAT_MAT2` const."]
3631    #[doc = ""]
3632    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3633    pub const FLOAT_MAT2: u32 = 35674u64 as u32;
3634    #[doc = "The `WebGLRenderingContext.FLOAT_MAT3` const."]
3635    #[doc = ""]
3636    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3637    pub const FLOAT_MAT3: u32 = 35675u64 as u32;
3638    #[doc = "The `WebGLRenderingContext.FLOAT_MAT4` const."]
3639    #[doc = ""]
3640    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3641    pub const FLOAT_MAT4: u32 = 35676u64 as u32;
3642    #[doc = "The `WebGLRenderingContext.SAMPLER_2D` const."]
3643    #[doc = ""]
3644    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3645    pub const SAMPLER_2D: u32 = 35678u64 as u32;
3646    #[doc = "The `WebGLRenderingContext.SAMPLER_CUBE` const."]
3647    #[doc = ""]
3648    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3649    pub const SAMPLER_CUBE: u32 = 35680u64 as u32;
3650    #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_ENABLED` const."]
3651    #[doc = ""]
3652    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3653    pub const VERTEX_ATTRIB_ARRAY_ENABLED: u32 = 34338u64 as u32;
3654    #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_SIZE` const."]
3655    #[doc = ""]
3656    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3657    pub const VERTEX_ATTRIB_ARRAY_SIZE: u32 = 34339u64 as u32;
3658    #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_STRIDE` const."]
3659    #[doc = ""]
3660    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3661    pub const VERTEX_ATTRIB_ARRAY_STRIDE: u32 = 34340u64 as u32;
3662    #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_TYPE` const."]
3663    #[doc = ""]
3664    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3665    pub const VERTEX_ATTRIB_ARRAY_TYPE: u32 = 34341u64 as u32;
3666    #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_NORMALIZED` const."]
3667    #[doc = ""]
3668    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3669    pub const VERTEX_ATTRIB_ARRAY_NORMALIZED: u32 = 34922u64 as u32;
3670    #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_POINTER` const."]
3671    #[doc = ""]
3672    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3673    pub const VERTEX_ATTRIB_ARRAY_POINTER: u32 = 34373u64 as u32;
3674    #[doc = "The `WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING` const."]
3675    #[doc = ""]
3676    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3677    pub const VERTEX_ATTRIB_ARRAY_BUFFER_BINDING: u32 = 34975u64 as u32;
3678    #[doc = "The `WebGLRenderingContext.IMPLEMENTATION_COLOR_READ_TYPE` const."]
3679    #[doc = ""]
3680    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3681    pub const IMPLEMENTATION_COLOR_READ_TYPE: u32 = 35738u64 as u32;
3682    #[doc = "The `WebGLRenderingContext.IMPLEMENTATION_COLOR_READ_FORMAT` const."]
3683    #[doc = ""]
3684    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3685    pub const IMPLEMENTATION_COLOR_READ_FORMAT: u32 = 35739u64 as u32;
3686    #[doc = "The `WebGLRenderingContext.COMPILE_STATUS` const."]
3687    #[doc = ""]
3688    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3689    pub const COMPILE_STATUS: u32 = 35713u64 as u32;
3690    #[doc = "The `WebGLRenderingContext.LOW_FLOAT` const."]
3691    #[doc = ""]
3692    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3693    pub const LOW_FLOAT: u32 = 36336u64 as u32;
3694    #[doc = "The `WebGLRenderingContext.MEDIUM_FLOAT` const."]
3695    #[doc = ""]
3696    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3697    pub const MEDIUM_FLOAT: u32 = 36337u64 as u32;
3698    #[doc = "The `WebGLRenderingContext.HIGH_FLOAT` const."]
3699    #[doc = ""]
3700    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3701    pub const HIGH_FLOAT: u32 = 36338u64 as u32;
3702    #[doc = "The `WebGLRenderingContext.LOW_INT` const."]
3703    #[doc = ""]
3704    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3705    pub const LOW_INT: u32 = 36339u64 as u32;
3706    #[doc = "The `WebGLRenderingContext.MEDIUM_INT` const."]
3707    #[doc = ""]
3708    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3709    pub const MEDIUM_INT: u32 = 36340u64 as u32;
3710    #[doc = "The `WebGLRenderingContext.HIGH_INT` const."]
3711    #[doc = ""]
3712    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3713    pub const HIGH_INT: u32 = 36341u64 as u32;
3714    #[doc = "The `WebGLRenderingContext.FRAMEBUFFER` const."]
3715    #[doc = ""]
3716    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3717    pub const FRAMEBUFFER: u32 = 36160u64 as u32;
3718    #[doc = "The `WebGLRenderingContext.RENDERBUFFER` const."]
3719    #[doc = ""]
3720    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3721    pub const RENDERBUFFER: u32 = 36161u64 as u32;
3722    #[doc = "The `WebGLRenderingContext.RGBA4` const."]
3723    #[doc = ""]
3724    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3725    pub const RGBA4: u32 = 32854u64 as u32;
3726    #[doc = "The `WebGLRenderingContext.RGB5_A1` const."]
3727    #[doc = ""]
3728    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3729    pub const RGB5_A1: u32 = 32855u64 as u32;
3730    #[doc = "The `WebGLRenderingContext.RGB565` const."]
3731    #[doc = ""]
3732    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3733    pub const RGB565: u32 = 36194u64 as u32;
3734    #[doc = "The `WebGLRenderingContext.DEPTH_COMPONENT16` const."]
3735    #[doc = ""]
3736    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3737    pub const DEPTH_COMPONENT16: u32 = 33189u64 as u32;
3738    #[doc = "The `WebGLRenderingContext.STENCIL_INDEX8` const."]
3739    #[doc = ""]
3740    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3741    pub const STENCIL_INDEX8: u32 = 36168u64 as u32;
3742    #[doc = "The `WebGLRenderingContext.DEPTH_STENCIL` const."]
3743    #[doc = ""]
3744    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3745    pub const DEPTH_STENCIL: u32 = 34041u64 as u32;
3746    #[doc = "The `WebGLRenderingContext.RENDERBUFFER_WIDTH` const."]
3747    #[doc = ""]
3748    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3749    pub const RENDERBUFFER_WIDTH: u32 = 36162u64 as u32;
3750    #[doc = "The `WebGLRenderingContext.RENDERBUFFER_HEIGHT` const."]
3751    #[doc = ""]
3752    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3753    pub const RENDERBUFFER_HEIGHT: u32 = 36163u64 as u32;
3754    #[doc = "The `WebGLRenderingContext.RENDERBUFFER_INTERNAL_FORMAT` const."]
3755    #[doc = ""]
3756    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3757    pub const RENDERBUFFER_INTERNAL_FORMAT: u32 = 36164u64 as u32;
3758    #[doc = "The `WebGLRenderingContext.RENDERBUFFER_RED_SIZE` const."]
3759    #[doc = ""]
3760    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3761    pub const RENDERBUFFER_RED_SIZE: u32 = 36176u64 as u32;
3762    #[doc = "The `WebGLRenderingContext.RENDERBUFFER_GREEN_SIZE` const."]
3763    #[doc = ""]
3764    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3765    pub const RENDERBUFFER_GREEN_SIZE: u32 = 36177u64 as u32;
3766    #[doc = "The `WebGLRenderingContext.RENDERBUFFER_BLUE_SIZE` const."]
3767    #[doc = ""]
3768    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3769    pub const RENDERBUFFER_BLUE_SIZE: u32 = 36178u64 as u32;
3770    #[doc = "The `WebGLRenderingContext.RENDERBUFFER_ALPHA_SIZE` const."]
3771    #[doc = ""]
3772    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3773    pub const RENDERBUFFER_ALPHA_SIZE: u32 = 36179u64 as u32;
3774    #[doc = "The `WebGLRenderingContext.RENDERBUFFER_DEPTH_SIZE` const."]
3775    #[doc = ""]
3776    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3777    pub const RENDERBUFFER_DEPTH_SIZE: u32 = 36180u64 as u32;
3778    #[doc = "The `WebGLRenderingContext.RENDERBUFFER_STENCIL_SIZE` const."]
3779    #[doc = ""]
3780    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3781    pub const RENDERBUFFER_STENCIL_SIZE: u32 = 36181u64 as u32;
3782    #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE` const."]
3783    #[doc = ""]
3784    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3785    pub const FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE: u32 = 36048u64 as u32;
3786    #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME` const."]
3787    #[doc = ""]
3788    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3789    pub const FRAMEBUFFER_ATTACHMENT_OBJECT_NAME: u32 = 36049u64 as u32;
3790    #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL` const."]
3791    #[doc = ""]
3792    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3793    pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL: u32 = 36050u64 as u32;
3794    #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE` const."]
3795    #[doc = ""]
3796    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3797    pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE: u32 = 36051u64 as u32;
3798    #[doc = "The `WebGLRenderingContext.COLOR_ATTACHMENT0` const."]
3799    #[doc = ""]
3800    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3801    pub const COLOR_ATTACHMENT0: u32 = 36064u64 as u32;
3802    #[doc = "The `WebGLRenderingContext.DEPTH_ATTACHMENT` const."]
3803    #[doc = ""]
3804    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3805    pub const DEPTH_ATTACHMENT: u32 = 36096u64 as u32;
3806    #[doc = "The `WebGLRenderingContext.STENCIL_ATTACHMENT` const."]
3807    #[doc = ""]
3808    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3809    pub const STENCIL_ATTACHMENT: u32 = 36128u64 as u32;
3810    #[doc = "The `WebGLRenderingContext.DEPTH_STENCIL_ATTACHMENT` const."]
3811    #[doc = ""]
3812    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3813    pub const DEPTH_STENCIL_ATTACHMENT: u32 = 33306u64 as u32;
3814    #[doc = "The `WebGLRenderingContext.NONE` const."]
3815    #[doc = ""]
3816    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3817    pub const NONE: u32 = 0i64 as u32;
3818    #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_COMPLETE` const."]
3819    #[doc = ""]
3820    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3821    pub const FRAMEBUFFER_COMPLETE: u32 = 36053u64 as u32;
3822    #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_INCOMPLETE_ATTACHMENT` const."]
3823    #[doc = ""]
3824    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3825    pub const FRAMEBUFFER_INCOMPLETE_ATTACHMENT: u32 = 36054u64 as u32;
3826    #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT` const."]
3827    #[doc = ""]
3828    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3829    pub const FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT: u32 = 36055u64 as u32;
3830    #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_INCOMPLETE_DIMENSIONS` const."]
3831    #[doc = ""]
3832    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3833    pub const FRAMEBUFFER_INCOMPLETE_DIMENSIONS: u32 = 36057u64 as u32;
3834    #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_UNSUPPORTED` const."]
3835    #[doc = ""]
3836    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3837    pub const FRAMEBUFFER_UNSUPPORTED: u32 = 36061u64 as u32;
3838    #[doc = "The `WebGLRenderingContext.FRAMEBUFFER_BINDING` const."]
3839    #[doc = ""]
3840    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3841    pub const FRAMEBUFFER_BINDING: u32 = 36006u64 as u32;
3842    #[doc = "The `WebGLRenderingContext.RENDERBUFFER_BINDING` const."]
3843    #[doc = ""]
3844    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3845    pub const RENDERBUFFER_BINDING: u32 = 36007u64 as u32;
3846    #[doc = "The `WebGLRenderingContext.MAX_RENDERBUFFER_SIZE` const."]
3847    #[doc = ""]
3848    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3849    pub const MAX_RENDERBUFFER_SIZE: u32 = 34024u64 as u32;
3850    #[doc = "The `WebGLRenderingContext.INVALID_FRAMEBUFFER_OPERATION` const."]
3851    #[doc = ""]
3852    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3853    pub const INVALID_FRAMEBUFFER_OPERATION: u32 = 1286u64 as u32;
3854    #[doc = "The `WebGLRenderingContext.UNPACK_FLIP_Y_WEBGL` const."]
3855    #[doc = ""]
3856    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3857    pub const UNPACK_FLIP_Y_WEBGL: u32 = 37440u64 as u32;
3858    #[doc = "The `WebGLRenderingContext.UNPACK_PREMULTIPLY_ALPHA_WEBGL` const."]
3859    #[doc = ""]
3860    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3861    pub const UNPACK_PREMULTIPLY_ALPHA_WEBGL: u32 = 37441u64 as u32;
3862    #[doc = "The `WebGLRenderingContext.CONTEXT_LOST_WEBGL` const."]
3863    #[doc = ""]
3864    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3865    pub const CONTEXT_LOST_WEBGL: u32 = 37442u64 as u32;
3866    #[doc = "The `WebGLRenderingContext.UNPACK_COLORSPACE_CONVERSION_WEBGL` const."]
3867    #[doc = ""]
3868    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3869    pub const UNPACK_COLORSPACE_CONVERSION_WEBGL: u32 = 37443u64 as u32;
3870    #[doc = "The `WebGLRenderingContext.BROWSER_DEFAULT_WEBGL` const."]
3871    #[doc = ""]
3872    #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`*"]
3873    pub const BROWSER_DEFAULT_WEBGL: u32 = 37444u64 as u32;
3874}