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