Skip to main content

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