web_sys/features/
gen_GpuRenderBundleEncoder.rs

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