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