web_sys/features/
gen_AngleInstancedArrays.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "ANGLE_instanced_arrays" , typescript_type = "ANGLE_instanced_arrays")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `AngleInstancedArrays` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"]
14 pub type AngleInstancedArrays;
15 #[wasm_bindgen(
16 method,
17 js_class = "ANGLE_instanced_arrays",
18 js_name = "drawArraysInstancedANGLE"
19 )]
20 #[doc = "The `drawArraysInstancedANGLE()` method."]
21 #[doc = ""]
22 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/drawArraysInstancedANGLE)"]
23 #[doc = ""]
24 #[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"]
25 pub fn draw_arrays_instanced_angle(
26 this: &AngleInstancedArrays,
27 mode: u32,
28 first: i32,
29 count: i32,
30 primcount: i32,
31 );
32 #[wasm_bindgen(
33 method,
34 js_class = "ANGLE_instanced_arrays",
35 js_name = "drawElementsInstancedANGLE"
36 )]
37 #[doc = "The `drawElementsInstancedANGLE()` method."]
38 #[doc = ""]
39 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE)"]
40 #[doc = ""]
41 #[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"]
42 pub fn draw_elements_instanced_angle_with_i32(
43 this: &AngleInstancedArrays,
44 mode: u32,
45 count: i32,
46 type_: u32,
47 offset: i32,
48 primcount: i32,
49 );
50 #[wasm_bindgen(
51 method,
52 js_class = "ANGLE_instanced_arrays",
53 js_name = "drawElementsInstancedANGLE"
54 )]
55 #[doc = "The `drawElementsInstancedANGLE()` method."]
56 #[doc = ""]
57 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/drawElementsInstancedANGLE)"]
58 #[doc = ""]
59 #[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"]
60 pub fn draw_elements_instanced_angle_with_f64(
61 this: &AngleInstancedArrays,
62 mode: u32,
63 count: i32,
64 type_: u32,
65 offset: f64,
66 primcount: i32,
67 );
68 #[wasm_bindgen(
69 method,
70 js_class = "ANGLE_instanced_arrays",
71 js_name = "vertexAttribDivisorANGLE"
72 )]
73 #[doc = "The `vertexAttribDivisorANGLE()` method."]
74 #[doc = ""]
75 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/ANGLE_instanced_arrays/vertexAttribDivisorANGLE)"]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"]
78 pub fn vertex_attrib_divisor_angle(this: &AngleInstancedArrays, index: u32, divisor: u32);
79}
80impl AngleInstancedArrays {
81 #[doc = "The `ANGLE_instanced_arrays.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE` const."]
82 #[doc = ""]
83 #[doc = "*This API requires the following crate features to be activated: `AngleInstancedArrays`*"]
84 pub const VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: u32 = 35070u64 as u32;
85}