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