maxcountryman_web_sys/features/
gen_GpuCommandEncoder.rs

1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[cfg(web_sys_unstable_apis)]
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUCommandEncoder , typescript_type = "GPUCommandEncoder")]
8    #[derive(Debug, Clone, PartialEq, Eq)]
9    #[doc = "The `GpuCommandEncoder` class."]
10    #[doc = ""]
11    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder)"]
12    #[doc = ""]
13    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
14    #[doc = ""]
15    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
16    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
17    pub type GpuCommandEncoder;
18    #[cfg(web_sys_unstable_apis)]
19    # [wasm_bindgen (structural , method , getter , js_class = "GPUCommandEncoder" , js_name = label)]
20    #[doc = "Getter for the `label` field of this object."]
21    #[doc = ""]
22    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/label)"]
23    #[doc = ""]
24    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
25    #[doc = ""]
26    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
27    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
28    pub fn label(this: &GpuCommandEncoder) -> Option<String>;
29    #[cfg(web_sys_unstable_apis)]
30    # [wasm_bindgen (structural , method , setter , js_class = "GPUCommandEncoder" , js_name = label)]
31    #[doc = "Setter for the `label` field of this object."]
32    #[doc = ""]
33    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/label)"]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
36    #[doc = ""]
37    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
38    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
39    pub fn set_label(this: &GpuCommandEncoder, value: Option<&str>);
40    #[cfg(web_sys_unstable_apis)]
41    #[cfg(feature = "GpuComputePassEncoder")]
42    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = beginComputePass)]
43    #[doc = "The `beginComputePass()` method."]
44    #[doc = ""]
45    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/beginComputePass)"]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuComputePassEncoder`*"]
48    #[doc = ""]
49    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
50    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
51    pub fn begin_compute_pass(this: &GpuCommandEncoder) -> GpuComputePassEncoder;
52    #[cfg(web_sys_unstable_apis)]
53    #[cfg(all(
54        feature = "GpuComputePassDescriptor",
55        feature = "GpuComputePassEncoder",
56    ))]
57    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = beginComputePass)]
58    #[doc = "The `beginComputePass()` method."]
59    #[doc = ""]
60    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/beginComputePass)"]
61    #[doc = ""]
62    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuComputePassDescriptor`, `GpuComputePassEncoder`*"]
63    #[doc = ""]
64    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
65    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
66    pub fn begin_compute_pass_with_descriptor(
67        this: &GpuCommandEncoder,
68        descriptor: &GpuComputePassDescriptor,
69    ) -> GpuComputePassEncoder;
70    #[cfg(web_sys_unstable_apis)]
71    #[cfg(all(feature = "GpuRenderPassDescriptor", feature = "GpuRenderPassEncoder",))]
72    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = beginRenderPass)]
73    #[doc = "The `beginRenderPass()` method."]
74    #[doc = ""]
75    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/beginRenderPass)"]
76    #[doc = ""]
77    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuRenderPassDescriptor`, `GpuRenderPassEncoder`*"]
78    #[doc = ""]
79    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
80    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
81    pub fn begin_render_pass(
82        this: &GpuCommandEncoder,
83        descriptor: &GpuRenderPassDescriptor,
84    ) -> GpuRenderPassEncoder;
85    #[cfg(web_sys_unstable_apis)]
86    #[cfg(feature = "GpuBuffer")]
87    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
88    #[doc = "The `copyBufferToBuffer()` method."]
89    #[doc = ""]
90    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
91    #[doc = ""]
92    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
93    #[doc = ""]
94    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
95    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
96    pub fn copy_buffer_to_buffer_with_u32_and_u32_and_u32(
97        this: &GpuCommandEncoder,
98        source: &GpuBuffer,
99        source_offset: u32,
100        destination: &GpuBuffer,
101        destination_offset: u32,
102        size: u32,
103    );
104    #[cfg(web_sys_unstable_apis)]
105    #[cfg(feature = "GpuBuffer")]
106    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
107    #[doc = "The `copyBufferToBuffer()` method."]
108    #[doc = ""]
109    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
110    #[doc = ""]
111    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
112    #[doc = ""]
113    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
114    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
115    pub fn copy_buffer_to_buffer_with_f64_and_u32_and_u32(
116        this: &GpuCommandEncoder,
117        source: &GpuBuffer,
118        source_offset: f64,
119        destination: &GpuBuffer,
120        destination_offset: u32,
121        size: u32,
122    );
123    #[cfg(web_sys_unstable_apis)]
124    #[cfg(feature = "GpuBuffer")]
125    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
126    #[doc = "The `copyBufferToBuffer()` method."]
127    #[doc = ""]
128    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
129    #[doc = ""]
130    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
131    #[doc = ""]
132    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
133    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
134    pub fn copy_buffer_to_buffer_with_u32_and_f64_and_u32(
135        this: &GpuCommandEncoder,
136        source: &GpuBuffer,
137        source_offset: u32,
138        destination: &GpuBuffer,
139        destination_offset: f64,
140        size: u32,
141    );
142    #[cfg(web_sys_unstable_apis)]
143    #[cfg(feature = "GpuBuffer")]
144    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
145    #[doc = "The `copyBufferToBuffer()` method."]
146    #[doc = ""]
147    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
148    #[doc = ""]
149    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
150    #[doc = ""]
151    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
152    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
153    pub fn copy_buffer_to_buffer_with_f64_and_f64_and_u32(
154        this: &GpuCommandEncoder,
155        source: &GpuBuffer,
156        source_offset: f64,
157        destination: &GpuBuffer,
158        destination_offset: f64,
159        size: u32,
160    );
161    #[cfg(web_sys_unstable_apis)]
162    #[cfg(feature = "GpuBuffer")]
163    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
164    #[doc = "The `copyBufferToBuffer()` method."]
165    #[doc = ""]
166    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
167    #[doc = ""]
168    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
169    #[doc = ""]
170    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
171    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
172    pub fn copy_buffer_to_buffer_with_u32_and_u32_and_f64(
173        this: &GpuCommandEncoder,
174        source: &GpuBuffer,
175        source_offset: u32,
176        destination: &GpuBuffer,
177        destination_offset: u32,
178        size: f64,
179    );
180    #[cfg(web_sys_unstable_apis)]
181    #[cfg(feature = "GpuBuffer")]
182    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
183    #[doc = "The `copyBufferToBuffer()` method."]
184    #[doc = ""]
185    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
186    #[doc = ""]
187    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
188    #[doc = ""]
189    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
190    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
191    pub fn copy_buffer_to_buffer_with_f64_and_u32_and_f64(
192        this: &GpuCommandEncoder,
193        source: &GpuBuffer,
194        source_offset: f64,
195        destination: &GpuBuffer,
196        destination_offset: u32,
197        size: f64,
198    );
199    #[cfg(web_sys_unstable_apis)]
200    #[cfg(feature = "GpuBuffer")]
201    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
202    #[doc = "The `copyBufferToBuffer()` method."]
203    #[doc = ""]
204    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
205    #[doc = ""]
206    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
207    #[doc = ""]
208    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
209    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
210    pub fn copy_buffer_to_buffer_with_u32_and_f64_and_f64(
211        this: &GpuCommandEncoder,
212        source: &GpuBuffer,
213        source_offset: u32,
214        destination: &GpuBuffer,
215        destination_offset: f64,
216        size: f64,
217    );
218    #[cfg(web_sys_unstable_apis)]
219    #[cfg(feature = "GpuBuffer")]
220    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
221    #[doc = "The `copyBufferToBuffer()` method."]
222    #[doc = ""]
223    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
224    #[doc = ""]
225    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
226    #[doc = ""]
227    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
228    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
229    pub fn copy_buffer_to_buffer_with_f64_and_f64_and_f64(
230        this: &GpuCommandEncoder,
231        source: &GpuBuffer,
232        source_offset: f64,
233        destination: &GpuBuffer,
234        destination_offset: f64,
235        size: f64,
236    );
237    #[cfg(web_sys_unstable_apis)]
238    #[cfg(all(feature = "GpuImageCopyBuffer", feature = "GpuImageCopyTexture",))]
239    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToTexture)]
240    #[doc = "The `copyBufferToTexture()` method."]
241    #[doc = ""]
242    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)"]
243    #[doc = ""]
244    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuImageCopyBuffer`, `GpuImageCopyTexture`*"]
245    #[doc = ""]
246    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
247    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
248    pub fn copy_buffer_to_texture_with_u32_sequence(
249        this: &GpuCommandEncoder,
250        source: &GpuImageCopyBuffer,
251        destination: &GpuImageCopyTexture,
252        copy_size: &::wasm_bindgen::JsValue,
253    );
254    #[cfg(web_sys_unstable_apis)]
255    #[cfg(all(
256        feature = "GpuExtent3dDict",
257        feature = "GpuImageCopyBuffer",
258        feature = "GpuImageCopyTexture",
259    ))]
260    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToTexture)]
261    #[doc = "The `copyBufferToTexture()` method."]
262    #[doc = ""]
263    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)"]
264    #[doc = ""]
265    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuImageCopyBuffer`, `GpuImageCopyTexture`*"]
266    #[doc = ""]
267    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
268    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
269    pub fn copy_buffer_to_texture_with_gpu_extent_3d_dict(
270        this: &GpuCommandEncoder,
271        source: &GpuImageCopyBuffer,
272        destination: &GpuImageCopyTexture,
273        copy_size: &GpuExtent3dDict,
274    );
275    #[cfg(web_sys_unstable_apis)]
276    #[cfg(all(feature = "GpuImageCopyBuffer", feature = "GpuImageCopyTexture",))]
277    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToBuffer)]
278    #[doc = "The `copyTextureToBuffer()` method."]
279    #[doc = ""]
280    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)"]
281    #[doc = ""]
282    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuImageCopyBuffer`, `GpuImageCopyTexture`*"]
283    #[doc = ""]
284    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
285    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
286    pub fn copy_texture_to_buffer_with_u32_sequence(
287        this: &GpuCommandEncoder,
288        source: &GpuImageCopyTexture,
289        destination: &GpuImageCopyBuffer,
290        copy_size: &::wasm_bindgen::JsValue,
291    );
292    #[cfg(web_sys_unstable_apis)]
293    #[cfg(all(
294        feature = "GpuExtent3dDict",
295        feature = "GpuImageCopyBuffer",
296        feature = "GpuImageCopyTexture",
297    ))]
298    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToBuffer)]
299    #[doc = "The `copyTextureToBuffer()` method."]
300    #[doc = ""]
301    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)"]
302    #[doc = ""]
303    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuImageCopyBuffer`, `GpuImageCopyTexture`*"]
304    #[doc = ""]
305    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
306    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
307    pub fn copy_texture_to_buffer_with_gpu_extent_3d_dict(
308        this: &GpuCommandEncoder,
309        source: &GpuImageCopyTexture,
310        destination: &GpuImageCopyBuffer,
311        copy_size: &GpuExtent3dDict,
312    );
313    #[cfg(web_sys_unstable_apis)]
314    #[cfg(feature = "GpuImageCopyTexture")]
315    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToTexture)]
316    #[doc = "The `copyTextureToTexture()` method."]
317    #[doc = ""]
318    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)"]
319    #[doc = ""]
320    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuImageCopyTexture`*"]
321    #[doc = ""]
322    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
323    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
324    pub fn copy_texture_to_texture_with_u32_sequence(
325        this: &GpuCommandEncoder,
326        source: &GpuImageCopyTexture,
327        destination: &GpuImageCopyTexture,
328        copy_size: &::wasm_bindgen::JsValue,
329    );
330    #[cfg(web_sys_unstable_apis)]
331    #[cfg(all(feature = "GpuExtent3dDict", feature = "GpuImageCopyTexture",))]
332    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToTexture)]
333    #[doc = "The `copyTextureToTexture()` method."]
334    #[doc = ""]
335    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)"]
336    #[doc = ""]
337    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuImageCopyTexture`*"]
338    #[doc = ""]
339    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
340    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
341    pub fn copy_texture_to_texture_with_gpu_extent_3d_dict(
342        this: &GpuCommandEncoder,
343        source: &GpuImageCopyTexture,
344        destination: &GpuImageCopyTexture,
345        copy_size: &GpuExtent3dDict,
346    );
347    #[cfg(web_sys_unstable_apis)]
348    #[cfg(feature = "GpuCommandBuffer")]
349    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = finish)]
350    #[doc = "The `finish()` method."]
351    #[doc = ""]
352    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/finish)"]
353    #[doc = ""]
354    #[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`, `GpuCommandEncoder`*"]
355    #[doc = ""]
356    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
357    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
358    pub fn finish(this: &GpuCommandEncoder) -> GpuCommandBuffer;
359    #[cfg(web_sys_unstable_apis)]
360    #[cfg(all(feature = "GpuCommandBuffer", feature = "GpuCommandBufferDescriptor",))]
361    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = finish)]
362    #[doc = "The `finish()` method."]
363    #[doc = ""]
364    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/finish)"]
365    #[doc = ""]
366    #[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`, `GpuCommandBufferDescriptor`, `GpuCommandEncoder`*"]
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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
370    pub fn finish_with_descriptor(
371        this: &GpuCommandEncoder,
372        descriptor: &GpuCommandBufferDescriptor,
373    ) -> GpuCommandBuffer;
374    #[cfg(web_sys_unstable_apis)]
375    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = insertDebugMarker)]
376    #[doc = "The `insertDebugMarker()` method."]
377    #[doc = ""]
378    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/insertDebugMarker)"]
379    #[doc = ""]
380    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
381    #[doc = ""]
382    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
383    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
384    pub fn insert_debug_marker(this: &GpuCommandEncoder, marker_label: &str);
385    #[cfg(web_sys_unstable_apis)]
386    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = popDebugGroup)]
387    #[doc = "The `popDebugGroup()` method."]
388    #[doc = ""]
389    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/popDebugGroup)"]
390    #[doc = ""]
391    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
392    #[doc = ""]
393    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
394    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
395    pub fn pop_debug_group(this: &GpuCommandEncoder);
396    #[cfg(web_sys_unstable_apis)]
397    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = pushDebugGroup)]
398    #[doc = "The `pushDebugGroup()` method."]
399    #[doc = ""]
400    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/pushDebugGroup)"]
401    #[doc = ""]
402    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
403    #[doc = ""]
404    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
405    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
406    pub fn push_debug_group(this: &GpuCommandEncoder, group_label: &str);
407    #[cfg(web_sys_unstable_apis)]
408    #[cfg(all(feature = "GpuBuffer", feature = "GpuQuerySet",))]
409    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = resolveQuerySet)]
410    #[doc = "The `resolveQuerySet()` method."]
411    #[doc = ""]
412    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/resolveQuerySet)"]
413    #[doc = ""]
414    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`, `GpuQuerySet`*"]
415    #[doc = ""]
416    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
417    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
418    pub fn resolve_query_set_with_u32(
419        this: &GpuCommandEncoder,
420        query_set: &GpuQuerySet,
421        first_query: u32,
422        query_count: u32,
423        destination: &GpuBuffer,
424        destination_offset: u32,
425    );
426    #[cfg(web_sys_unstable_apis)]
427    #[cfg(all(feature = "GpuBuffer", feature = "GpuQuerySet",))]
428    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = resolveQuerySet)]
429    #[doc = "The `resolveQuerySet()` method."]
430    #[doc = ""]
431    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/resolveQuerySet)"]
432    #[doc = ""]
433    #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`, `GpuQuerySet`*"]
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 resolve_query_set_with_f64(
438        this: &GpuCommandEncoder,
439        query_set: &GpuQuerySet,
440        first_query: u32,
441        query_count: u32,
442        destination: &GpuBuffer,
443        destination_offset: f64,
444    );
445    #[cfg(web_sys_unstable_apis)]
446    #[cfg(feature = "GpuQuerySet")]
447    # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = writeTimestamp)]
448    #[doc = "The `writeTimestamp()` method."]
449    #[doc = ""]
450    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/writeTimestamp)"]
451    #[doc = ""]
452    #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuQuerySet`*"]
453    #[doc = ""]
454    #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
455    #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
456    pub fn write_timestamp(this: &GpuCommandEncoder, query_set: &GpuQuerySet, query_index: u32);
457}