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