1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPURenderPassEncoder , typescript_type = "GPURenderPassEncoder")]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `GpuRenderPassEncoder` class."]
11 #[doc = ""]
12 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder)"]
13 #[doc = ""]
14 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
15 #[doc = ""]
16 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
17 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
18 pub type GpuRenderPassEncoder;
19 #[cfg(web_sys_unstable_apis)]
20 # [wasm_bindgen (structural , method , getter , js_class = "GPURenderPassEncoder" , js_name = label)]
21 #[doc = "Getter for the `label` field of this object."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/label)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
26 #[doc = ""]
27 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
28 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
29 pub fn label(this: &GpuRenderPassEncoder) -> ::alloc::string::String;
30 #[cfg(web_sys_unstable_apis)]
31 # [wasm_bindgen (structural , method , setter , js_class = "GPURenderPassEncoder" , js_name = label)]
32 #[doc = "Setter for the `label` field of this object."]
33 #[doc = ""]
34 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/label)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
37 #[doc = ""]
38 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
39 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
40 pub fn set_label(this: &GpuRenderPassEncoder, value: &str);
41 #[cfg(web_sys_unstable_apis)]
42 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = beginOcclusionQuery)]
43 #[doc = "The `beginOcclusionQuery()` method."]
44 #[doc = ""]
45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/beginOcclusionQuery)"]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
48 #[doc = ""]
49 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
50 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
51 pub fn begin_occlusion_query(this: &GpuRenderPassEncoder, query_index: u32);
52 #[cfg(web_sys_unstable_apis)]
53 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = end)]
54 #[doc = "The `end()` method."]
55 #[doc = ""]
56 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/end)"]
57 #[doc = ""]
58 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
59 #[doc = ""]
60 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
61 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
62 pub fn end(this: &GpuRenderPassEncoder);
63 #[cfg(web_sys_unstable_apis)]
64 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = endOcclusionQuery)]
65 #[doc = "The `endOcclusionQuery()` method."]
66 #[doc = ""]
67 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/endOcclusionQuery)"]
68 #[doc = ""]
69 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
70 #[doc = ""]
71 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
72 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
73 pub fn end_occlusion_query(this: &GpuRenderPassEncoder);
74 #[cfg(web_sys_unstable_apis)]
75 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = executeBundles)]
76 #[doc = "The `executeBundles()` method."]
77 #[doc = ""]
78 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/executeBundles)"]
79 #[doc = ""]
80 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
81 #[doc = ""]
82 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
83 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
84 pub fn execute_bundles(this: &GpuRenderPassEncoder, bundles: &::wasm_bindgen::JsValue);
85 #[cfg(web_sys_unstable_apis)]
86 # [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBlendConstant)]
87 #[doc = "The `setBlendConstant()` method."]
88 #[doc = ""]
89 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBlendConstant)"]
90 #[doc = ""]
91 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
92 #[doc = ""]
93 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
94 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
95 pub fn set_blend_constant_with_f64_sequence(
96 this: &GpuRenderPassEncoder,
97 color: &::wasm_bindgen::JsValue,
98 ) -> Result<(), JsValue>;
99 #[cfg(web_sys_unstable_apis)]
100 #[cfg(feature = "GpuColorDict")]
101 # [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBlendConstant)]
102 #[doc = "The `setBlendConstant()` method."]
103 #[doc = ""]
104 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBlendConstant)"]
105 #[doc = ""]
106 #[doc = "*This API requires the following crate features to be activated: `GpuColorDict`, `GpuRenderPassEncoder`*"]
107 #[doc = ""]
108 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
109 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
110 pub fn set_blend_constant_with_gpu_color_dict(
111 this: &GpuRenderPassEncoder,
112 color: &GpuColorDict,
113 ) -> Result<(), JsValue>;
114 #[cfg(web_sys_unstable_apis)]
115 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setScissorRect)]
116 #[doc = "The `setScissorRect()` method."]
117 #[doc = ""]
118 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setScissorRect)"]
119 #[doc = ""]
120 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
121 #[doc = ""]
122 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
123 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
124 pub fn set_scissor_rect(this: &GpuRenderPassEncoder, x: u32, y: u32, width: u32, height: u32);
125 #[cfg(web_sys_unstable_apis)]
126 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setStencilReference)]
127 #[doc = "The `setStencilReference()` method."]
128 #[doc = ""]
129 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setStencilReference)"]
130 #[doc = ""]
131 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
132 #[doc = ""]
133 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
134 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
135 pub fn set_stencil_reference(this: &GpuRenderPassEncoder, reference: u32);
136 #[cfg(web_sys_unstable_apis)]
137 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setViewport)]
138 #[doc = "The `setViewport()` method."]
139 #[doc = ""]
140 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setViewport)"]
141 #[doc = ""]
142 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
143 #[doc = ""]
144 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
145 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
146 pub fn set_viewport(
147 this: &GpuRenderPassEncoder,
148 x: f32,
149 y: f32,
150 width: f32,
151 height: f32,
152 min_depth: f32,
153 max_depth: f32,
154 );
155 #[cfg(web_sys_unstable_apis)]
156 #[cfg(feature = "GpuBindGroup")]
157 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)]
158 #[doc = "The `setBindGroup()` method."]
159 #[doc = ""]
160 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"]
161 #[doc = ""]
162 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderPassEncoder`*"]
163 #[doc = ""]
164 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
165 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
166 pub fn set_bind_group(
167 this: &GpuRenderPassEncoder,
168 index: u32,
169 bind_group: Option<&GpuBindGroup>,
170 );
171 #[cfg(web_sys_unstable_apis)]
172 #[cfg(feature = "GpuBindGroup")]
173 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)]
174 #[doc = "The `setBindGroup()` method."]
175 #[doc = ""]
176 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"]
177 #[doc = ""]
178 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderPassEncoder`*"]
179 #[doc = ""]
180 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
181 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
182 pub fn set_bind_group_with_u32_sequence(
183 this: &GpuRenderPassEncoder,
184 index: u32,
185 bind_group: Option<&GpuBindGroup>,
186 dynamic_offsets: &::wasm_bindgen::JsValue,
187 );
188 #[cfg(web_sys_unstable_apis)]
189 #[cfg(feature = "GpuBindGroup")]
190 # [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)]
191 #[doc = "The `setBindGroup()` method."]
192 #[doc = ""]
193 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"]
194 #[doc = ""]
195 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderPassEncoder`*"]
196 #[doc = ""]
197 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
198 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
199 pub fn set_bind_group_with_u32_slice_and_u32_and_dynamic_offsets_data_length(
200 this: &GpuRenderPassEncoder,
201 index: u32,
202 bind_group: Option<&GpuBindGroup>,
203 dynamic_offsets_data: &[u32],
204 dynamic_offsets_data_start: u32,
205 dynamic_offsets_data_length: u32,
206 ) -> Result<(), JsValue>;
207 #[cfg(web_sys_unstable_apis)]
208 #[cfg(feature = "GpuBindGroup")]
209 # [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)]
210 #[doc = "The `setBindGroup()` method."]
211 #[doc = ""]
212 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"]
213 #[doc = ""]
214 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderPassEncoder`*"]
215 #[doc = ""]
216 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
217 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
218 pub fn set_bind_group_with_u32_array_and_u32_and_dynamic_offsets_data_length(
219 this: &GpuRenderPassEncoder,
220 index: u32,
221 bind_group: Option<&GpuBindGroup>,
222 dynamic_offsets_data: &::js_sys::Uint32Array,
223 dynamic_offsets_data_start: u32,
224 dynamic_offsets_data_length: u32,
225 ) -> Result<(), JsValue>;
226 #[cfg(web_sys_unstable_apis)]
227 #[cfg(feature = "GpuBindGroup")]
228 # [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)]
229 #[doc = "The `setBindGroup()` method."]
230 #[doc = ""]
231 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"]
232 #[doc = ""]
233 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderPassEncoder`*"]
234 #[doc = ""]
235 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
236 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
237 pub fn set_bind_group_with_u32_slice_and_f64_and_dynamic_offsets_data_length(
238 this: &GpuRenderPassEncoder,
239 index: u32,
240 bind_group: Option<&GpuBindGroup>,
241 dynamic_offsets_data: &[u32],
242 dynamic_offsets_data_start: f64,
243 dynamic_offsets_data_length: u32,
244 ) -> Result<(), JsValue>;
245 #[cfg(web_sys_unstable_apis)]
246 #[cfg(feature = "GpuBindGroup")]
247 # [wasm_bindgen (catch , method , structural , js_class = "GPURenderPassEncoder" , js_name = setBindGroup)]
248 #[doc = "The `setBindGroup()` method."]
249 #[doc = ""]
250 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setBindGroup)"]
251 #[doc = ""]
252 #[doc = "*This API requires the following crate features to be activated: `GpuBindGroup`, `GpuRenderPassEncoder`*"]
253 #[doc = ""]
254 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
255 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
256 pub fn set_bind_group_with_u32_array_and_f64_and_dynamic_offsets_data_length(
257 this: &GpuRenderPassEncoder,
258 index: u32,
259 bind_group: Option<&GpuBindGroup>,
260 dynamic_offsets_data: &::js_sys::Uint32Array,
261 dynamic_offsets_data_start: f64,
262 dynamic_offsets_data_length: u32,
263 ) -> Result<(), JsValue>;
264 #[cfg(web_sys_unstable_apis)]
265 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = insertDebugMarker)]
266 #[doc = "The `insertDebugMarker()` method."]
267 #[doc = ""]
268 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/insertDebugMarker)"]
269 #[doc = ""]
270 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
271 #[doc = ""]
272 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
273 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
274 pub fn insert_debug_marker(this: &GpuRenderPassEncoder, marker_label: &str);
275 #[cfg(web_sys_unstable_apis)]
276 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = popDebugGroup)]
277 #[doc = "The `popDebugGroup()` method."]
278 #[doc = ""]
279 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/popDebugGroup)"]
280 #[doc = ""]
281 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
282 #[doc = ""]
283 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
284 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
285 pub fn pop_debug_group(this: &GpuRenderPassEncoder);
286 #[cfg(web_sys_unstable_apis)]
287 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = pushDebugGroup)]
288 #[doc = "The `pushDebugGroup()` method."]
289 #[doc = ""]
290 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/pushDebugGroup)"]
291 #[doc = ""]
292 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
293 #[doc = ""]
294 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
295 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
296 pub fn push_debug_group(this: &GpuRenderPassEncoder, group_label: &str);
297 #[cfg(web_sys_unstable_apis)]
298 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = draw)]
299 #[doc = "The `draw()` method."]
300 #[doc = ""]
301 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/draw)"]
302 #[doc = ""]
303 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
304 #[doc = ""]
305 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
306 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
307 pub fn draw(this: &GpuRenderPassEncoder, vertex_count: u32);
308 #[cfg(web_sys_unstable_apis)]
309 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = draw)]
310 #[doc = "The `draw()` method."]
311 #[doc = ""]
312 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/draw)"]
313 #[doc = ""]
314 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
315 #[doc = ""]
316 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
317 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
318 pub fn draw_with_instance_count(
319 this: &GpuRenderPassEncoder,
320 vertex_count: u32,
321 instance_count: u32,
322 );
323 #[cfg(web_sys_unstable_apis)]
324 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = draw)]
325 #[doc = "The `draw()` method."]
326 #[doc = ""]
327 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/draw)"]
328 #[doc = ""]
329 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
330 #[doc = ""]
331 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
332 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
333 pub fn draw_with_instance_count_and_first_vertex(
334 this: &GpuRenderPassEncoder,
335 vertex_count: u32,
336 instance_count: u32,
337 first_vertex: u32,
338 );
339 #[cfg(web_sys_unstable_apis)]
340 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = draw)]
341 #[doc = "The `draw()` method."]
342 #[doc = ""]
343 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/draw)"]
344 #[doc = ""]
345 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
346 #[doc = ""]
347 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
348 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
349 pub fn draw_with_instance_count_and_first_vertex_and_first_instance(
350 this: &GpuRenderPassEncoder,
351 vertex_count: u32,
352 instance_count: u32,
353 first_vertex: u32,
354 first_instance: u32,
355 );
356 #[cfg(web_sys_unstable_apis)]
357 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)]
358 #[doc = "The `drawIndexed()` method."]
359 #[doc = ""]
360 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"]
361 #[doc = ""]
362 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
363 #[doc = ""]
364 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
365 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
366 pub fn draw_indexed(this: &GpuRenderPassEncoder, index_count: u32);
367 #[cfg(web_sys_unstable_apis)]
368 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)]
369 #[doc = "The `drawIndexed()` method."]
370 #[doc = ""]
371 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"]
372 #[doc = ""]
373 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
374 #[doc = ""]
375 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
376 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
377 pub fn draw_indexed_with_instance_count(
378 this: &GpuRenderPassEncoder,
379 index_count: u32,
380 instance_count: u32,
381 );
382 #[cfg(web_sys_unstable_apis)]
383 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)]
384 #[doc = "The `drawIndexed()` method."]
385 #[doc = ""]
386 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"]
387 #[doc = ""]
388 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
389 #[doc = ""]
390 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
391 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
392 pub fn draw_indexed_with_instance_count_and_first_index(
393 this: &GpuRenderPassEncoder,
394 index_count: u32,
395 instance_count: u32,
396 first_index: u32,
397 );
398 #[cfg(web_sys_unstable_apis)]
399 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)]
400 #[doc = "The `drawIndexed()` method."]
401 #[doc = ""]
402 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"]
403 #[doc = ""]
404 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
405 #[doc = ""]
406 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
407 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
408 pub fn draw_indexed_with_instance_count_and_first_index_and_base_vertex(
409 this: &GpuRenderPassEncoder,
410 index_count: u32,
411 instance_count: u32,
412 first_index: u32,
413 base_vertex: i32,
414 );
415 #[cfg(web_sys_unstable_apis)]
416 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexed)]
417 #[doc = "The `drawIndexed()` method."]
418 #[doc = ""]
419 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexed)"]
420 #[doc = ""]
421 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`*"]
422 #[doc = ""]
423 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
424 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
425 pub fn draw_indexed_with_instance_count_and_first_index_and_base_vertex_and_first_instance(
426 this: &GpuRenderPassEncoder,
427 index_count: u32,
428 instance_count: u32,
429 first_index: u32,
430 base_vertex: i32,
431 first_instance: u32,
432 );
433 #[cfg(web_sys_unstable_apis)]
434 #[cfg(feature = "GpuBuffer")]
435 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexedIndirect)]
436 #[doc = "The `drawIndexedIndirect()` method."]
437 #[doc = ""]
438 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexedIndirect)"]
439 #[doc = ""]
440 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
441 #[doc = ""]
442 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
443 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
444 pub fn draw_indexed_indirect_with_u32(
445 this: &GpuRenderPassEncoder,
446 indirect_buffer: &GpuBuffer,
447 indirect_offset: u32,
448 );
449 #[cfg(web_sys_unstable_apis)]
450 #[cfg(feature = "GpuBuffer")]
451 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndexedIndirect)]
452 #[doc = "The `drawIndexedIndirect()` method."]
453 #[doc = ""]
454 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndexedIndirect)"]
455 #[doc = ""]
456 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
457 #[doc = ""]
458 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
459 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
460 pub fn draw_indexed_indirect_with_f64(
461 this: &GpuRenderPassEncoder,
462 indirect_buffer: &GpuBuffer,
463 indirect_offset: f64,
464 );
465 #[cfg(web_sys_unstable_apis)]
466 #[cfg(feature = "GpuBuffer")]
467 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndirect)]
468 #[doc = "The `drawIndirect()` method."]
469 #[doc = ""]
470 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndirect)"]
471 #[doc = ""]
472 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
473 #[doc = ""]
474 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
475 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
476 pub fn draw_indirect_with_u32(
477 this: &GpuRenderPassEncoder,
478 indirect_buffer: &GpuBuffer,
479 indirect_offset: u32,
480 );
481 #[cfg(web_sys_unstable_apis)]
482 #[cfg(feature = "GpuBuffer")]
483 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = drawIndirect)]
484 #[doc = "The `drawIndirect()` method."]
485 #[doc = ""]
486 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/drawIndirect)"]
487 #[doc = ""]
488 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
489 #[doc = ""]
490 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
491 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
492 pub fn draw_indirect_with_f64(
493 this: &GpuRenderPassEncoder,
494 indirect_buffer: &GpuBuffer,
495 indirect_offset: f64,
496 );
497 #[cfg(web_sys_unstable_apis)]
498 #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
499 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)]
500 #[doc = "The `setIndexBuffer()` method."]
501 #[doc = ""]
502 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"]
503 #[doc = ""]
504 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderPassEncoder`*"]
505 #[doc = ""]
506 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
507 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
508 pub fn set_index_buffer(
509 this: &GpuRenderPassEncoder,
510 buffer: &GpuBuffer,
511 index_format: GpuIndexFormat,
512 );
513 #[cfg(web_sys_unstable_apis)]
514 #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
515 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)]
516 #[doc = "The `setIndexBuffer()` method."]
517 #[doc = ""]
518 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"]
519 #[doc = ""]
520 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderPassEncoder`*"]
521 #[doc = ""]
522 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
523 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
524 pub fn set_index_buffer_with_u32(
525 this: &GpuRenderPassEncoder,
526 buffer: &GpuBuffer,
527 index_format: GpuIndexFormat,
528 offset: u32,
529 );
530 #[cfg(web_sys_unstable_apis)]
531 #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
532 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)]
533 #[doc = "The `setIndexBuffer()` method."]
534 #[doc = ""]
535 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"]
536 #[doc = ""]
537 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderPassEncoder`*"]
538 #[doc = ""]
539 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
540 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
541 pub fn set_index_buffer_with_f64(
542 this: &GpuRenderPassEncoder,
543 buffer: &GpuBuffer,
544 index_format: GpuIndexFormat,
545 offset: f64,
546 );
547 #[cfg(web_sys_unstable_apis)]
548 #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
549 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)]
550 #[doc = "The `setIndexBuffer()` method."]
551 #[doc = ""]
552 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"]
553 #[doc = ""]
554 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderPassEncoder`*"]
555 #[doc = ""]
556 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
557 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
558 pub fn set_index_buffer_with_u32_and_u32(
559 this: &GpuRenderPassEncoder,
560 buffer: &GpuBuffer,
561 index_format: GpuIndexFormat,
562 offset: u32,
563 size: u32,
564 );
565 #[cfg(web_sys_unstable_apis)]
566 #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
567 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)]
568 #[doc = "The `setIndexBuffer()` method."]
569 #[doc = ""]
570 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"]
571 #[doc = ""]
572 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderPassEncoder`*"]
573 #[doc = ""]
574 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
575 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
576 pub fn set_index_buffer_with_f64_and_u32(
577 this: &GpuRenderPassEncoder,
578 buffer: &GpuBuffer,
579 index_format: GpuIndexFormat,
580 offset: f64,
581 size: u32,
582 );
583 #[cfg(web_sys_unstable_apis)]
584 #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
585 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)]
586 #[doc = "The `setIndexBuffer()` method."]
587 #[doc = ""]
588 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"]
589 #[doc = ""]
590 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderPassEncoder`*"]
591 #[doc = ""]
592 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
593 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
594 pub fn set_index_buffer_with_u32_and_f64(
595 this: &GpuRenderPassEncoder,
596 buffer: &GpuBuffer,
597 index_format: GpuIndexFormat,
598 offset: u32,
599 size: f64,
600 );
601 #[cfg(web_sys_unstable_apis)]
602 #[cfg(all(feature = "GpuBuffer", feature = "GpuIndexFormat",))]
603 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setIndexBuffer)]
604 #[doc = "The `setIndexBuffer()` method."]
605 #[doc = ""]
606 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setIndexBuffer)"]
607 #[doc = ""]
608 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuIndexFormat`, `GpuRenderPassEncoder`*"]
609 #[doc = ""]
610 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
611 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
612 pub fn set_index_buffer_with_f64_and_f64(
613 this: &GpuRenderPassEncoder,
614 buffer: &GpuBuffer,
615 index_format: GpuIndexFormat,
616 offset: f64,
617 size: f64,
618 );
619 #[cfg(web_sys_unstable_apis)]
620 #[cfg(feature = "GpuRenderPipeline")]
621 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setPipeline)]
622 #[doc = "The `setPipeline()` method."]
623 #[doc = ""]
624 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setPipeline)"]
625 #[doc = ""]
626 #[doc = "*This API requires the following crate features to be activated: `GpuRenderPassEncoder`, `GpuRenderPipeline`*"]
627 #[doc = ""]
628 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
629 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
630 pub fn set_pipeline(this: &GpuRenderPassEncoder, pipeline: &GpuRenderPipeline);
631 #[cfg(web_sys_unstable_apis)]
632 #[cfg(feature = "GpuBuffer")]
633 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)]
634 #[doc = "The `setVertexBuffer()` method."]
635 #[doc = ""]
636 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"]
637 #[doc = ""]
638 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
639 #[doc = ""]
640 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
641 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
642 pub fn set_vertex_buffer(this: &GpuRenderPassEncoder, slot: u32, buffer: Option<&GpuBuffer>);
643 #[cfg(web_sys_unstable_apis)]
644 #[cfg(feature = "GpuBuffer")]
645 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)]
646 #[doc = "The `setVertexBuffer()` method."]
647 #[doc = ""]
648 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"]
649 #[doc = ""]
650 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
651 #[doc = ""]
652 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
653 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
654 pub fn set_vertex_buffer_with_u32(
655 this: &GpuRenderPassEncoder,
656 slot: u32,
657 buffer: Option<&GpuBuffer>,
658 offset: u32,
659 );
660 #[cfg(web_sys_unstable_apis)]
661 #[cfg(feature = "GpuBuffer")]
662 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)]
663 #[doc = "The `setVertexBuffer()` method."]
664 #[doc = ""]
665 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"]
666 #[doc = ""]
667 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
668 #[doc = ""]
669 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
670 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
671 pub fn set_vertex_buffer_with_f64(
672 this: &GpuRenderPassEncoder,
673 slot: u32,
674 buffer: Option<&GpuBuffer>,
675 offset: f64,
676 );
677 #[cfg(web_sys_unstable_apis)]
678 #[cfg(feature = "GpuBuffer")]
679 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)]
680 #[doc = "The `setVertexBuffer()` method."]
681 #[doc = ""]
682 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"]
683 #[doc = ""]
684 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
685 #[doc = ""]
686 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
687 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
688 pub fn set_vertex_buffer_with_u32_and_u32(
689 this: &GpuRenderPassEncoder,
690 slot: u32,
691 buffer: Option<&GpuBuffer>,
692 offset: u32,
693 size: u32,
694 );
695 #[cfg(web_sys_unstable_apis)]
696 #[cfg(feature = "GpuBuffer")]
697 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)]
698 #[doc = "The `setVertexBuffer()` method."]
699 #[doc = ""]
700 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"]
701 #[doc = ""]
702 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
703 #[doc = ""]
704 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
705 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
706 pub fn set_vertex_buffer_with_f64_and_u32(
707 this: &GpuRenderPassEncoder,
708 slot: u32,
709 buffer: Option<&GpuBuffer>,
710 offset: f64,
711 size: u32,
712 );
713 #[cfg(web_sys_unstable_apis)]
714 #[cfg(feature = "GpuBuffer")]
715 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)]
716 #[doc = "The `setVertexBuffer()` method."]
717 #[doc = ""]
718 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"]
719 #[doc = ""]
720 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
721 #[doc = ""]
722 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
723 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
724 pub fn set_vertex_buffer_with_u32_and_f64(
725 this: &GpuRenderPassEncoder,
726 slot: u32,
727 buffer: Option<&GpuBuffer>,
728 offset: u32,
729 size: f64,
730 );
731 #[cfg(web_sys_unstable_apis)]
732 #[cfg(feature = "GpuBuffer")]
733 # [wasm_bindgen (method , structural , js_class = "GPURenderPassEncoder" , js_name = setVertexBuffer)]
734 #[doc = "The `setVertexBuffer()` method."]
735 #[doc = ""]
736 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPURenderPassEncoder/setVertexBuffer)"]
737 #[doc = ""]
738 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuRenderPassEncoder`*"]
739 #[doc = ""]
740 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
741 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
742 pub fn set_vertex_buffer_with_f64_and_f64(
743 this: &GpuRenderPassEncoder,
744 slot: u32,
745 buffer: Option<&GpuBuffer>,
746 offset: f64,
747 size: f64,
748 );
749}