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 = GPUCommandEncoder , typescript_type = "GPUCommandEncoder")]
9 #[derive(Debug, Clone, PartialEq, Eq)]
10 #[doc = "The `GpuCommandEncoder` class."]
11 #[doc = ""]
12 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder)"]
13 #[doc = ""]
14 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
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 GpuCommandEncoder;
19 #[cfg(web_sys_unstable_apis)]
20 # [wasm_bindgen (structural , method , getter , js_class = "GPUCommandEncoder" , 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/GPUCommandEncoder/label)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
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: &GpuCommandEncoder) -> ::alloc::string::String;
30 #[cfg(web_sys_unstable_apis)]
31 # [wasm_bindgen (structural , method , setter , js_class = "GPUCommandEncoder" , 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/GPUCommandEncoder/label)"]
35 #[doc = ""]
36 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
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: &GpuCommandEncoder, value: &str);
41 #[cfg(web_sys_unstable_apis)]
42 #[cfg(feature = "GpuComputePassEncoder")]
43 # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = beginComputePass)]
44 #[doc = "The `beginComputePass()` method."]
45 #[doc = ""]
46 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/beginComputePass)"]
47 #[doc = ""]
48 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuComputePassEncoder`*"]
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 begin_compute_pass(this: &GpuCommandEncoder) -> GpuComputePassEncoder;
53 #[cfg(web_sys_unstable_apis)]
54 #[cfg(all(
55 feature = "GpuComputePassDescriptor",
56 feature = "GpuComputePassEncoder",
57 ))]
58 # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = beginComputePass)]
59 #[doc = "The `beginComputePass()` method."]
60 #[doc = ""]
61 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/beginComputePass)"]
62 #[doc = ""]
63 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuComputePassDescriptor`, `GpuComputePassEncoder`*"]
64 #[doc = ""]
65 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
66 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
67 pub fn begin_compute_pass_with_descriptor(
68 this: &GpuCommandEncoder,
69 descriptor: &GpuComputePassDescriptor,
70 ) -> GpuComputePassEncoder;
71 #[cfg(web_sys_unstable_apis)]
72 #[cfg(all(feature = "GpuRenderPassDescriptor", feature = "GpuRenderPassEncoder",))]
73 # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = beginRenderPass)]
74 #[doc = "The `beginRenderPass()` method."]
75 #[doc = ""]
76 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/beginRenderPass)"]
77 #[doc = ""]
78 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuRenderPassDescriptor`, `GpuRenderPassEncoder`*"]
79 #[doc = ""]
80 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
81 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
82 pub fn begin_render_pass(
83 this: &GpuCommandEncoder,
84 descriptor: &GpuRenderPassDescriptor,
85 ) -> Result<GpuRenderPassEncoder, JsValue>;
86 #[cfg(web_sys_unstable_apis)]
87 #[cfg(feature = "GpuBuffer")]
88 # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)]
89 #[doc = "The `clearBuffer()` method."]
90 #[doc = ""]
91 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"]
92 #[doc = ""]
93 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
94 #[doc = ""]
95 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
96 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
97 pub fn clear_buffer(this: &GpuCommandEncoder, buffer: &GpuBuffer);
98 #[cfg(web_sys_unstable_apis)]
99 #[cfg(feature = "GpuBuffer")]
100 # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)]
101 #[doc = "The `clearBuffer()` method."]
102 #[doc = ""]
103 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"]
104 #[doc = ""]
105 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
106 #[doc = ""]
107 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
108 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
109 pub fn clear_buffer_with_u32(this: &GpuCommandEncoder, buffer: &GpuBuffer, offset: u32);
110 #[cfg(web_sys_unstable_apis)]
111 #[cfg(feature = "GpuBuffer")]
112 # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)]
113 #[doc = "The `clearBuffer()` method."]
114 #[doc = ""]
115 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"]
116 #[doc = ""]
117 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
118 #[doc = ""]
119 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
120 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
121 pub fn clear_buffer_with_f64(this: &GpuCommandEncoder, buffer: &GpuBuffer, offset: f64);
122 #[cfg(web_sys_unstable_apis)]
123 #[cfg(feature = "GpuBuffer")]
124 # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)]
125 #[doc = "The `clearBuffer()` method."]
126 #[doc = ""]
127 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"]
128 #[doc = ""]
129 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
130 #[doc = ""]
131 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
132 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
133 pub fn clear_buffer_with_u32_and_u32(
134 this: &GpuCommandEncoder,
135 buffer: &GpuBuffer,
136 offset: u32,
137 size: u32,
138 );
139 #[cfg(web_sys_unstable_apis)]
140 #[cfg(feature = "GpuBuffer")]
141 # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)]
142 #[doc = "The `clearBuffer()` method."]
143 #[doc = ""]
144 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"]
145 #[doc = ""]
146 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
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 clear_buffer_with_f64_and_u32(
151 this: &GpuCommandEncoder,
152 buffer: &GpuBuffer,
153 offset: f64,
154 size: u32,
155 );
156 #[cfg(web_sys_unstable_apis)]
157 #[cfg(feature = "GpuBuffer")]
158 # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)]
159 #[doc = "The `clearBuffer()` method."]
160 #[doc = ""]
161 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"]
162 #[doc = ""]
163 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
164 #[doc = ""]
165 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
166 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
167 pub fn clear_buffer_with_u32_and_f64(
168 this: &GpuCommandEncoder,
169 buffer: &GpuBuffer,
170 offset: u32,
171 size: f64,
172 );
173 #[cfg(web_sys_unstable_apis)]
174 #[cfg(feature = "GpuBuffer")]
175 # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = clearBuffer)]
176 #[doc = "The `clearBuffer()` method."]
177 #[doc = ""]
178 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/clearBuffer)"]
179 #[doc = ""]
180 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
181 #[doc = ""]
182 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
183 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
184 pub fn clear_buffer_with_f64_and_f64(
185 this: &GpuCommandEncoder,
186 buffer: &GpuBuffer,
187 offset: f64,
188 size: f64,
189 );
190 #[cfg(web_sys_unstable_apis)]
191 #[cfg(feature = "GpuBuffer")]
192 # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
193 #[doc = "The `copyBufferToBuffer()` method."]
194 #[doc = ""]
195 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
196 #[doc = ""]
197 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
198 #[doc = ""]
199 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
200 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
201 pub fn copy_buffer_to_buffer_with_u32_and_u32_and_u32(
202 this: &GpuCommandEncoder,
203 source: &GpuBuffer,
204 source_offset: u32,
205 destination: &GpuBuffer,
206 destination_offset: u32,
207 size: u32,
208 ) -> Result<(), JsValue>;
209 #[cfg(web_sys_unstable_apis)]
210 #[cfg(feature = "GpuBuffer")]
211 # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
212 #[doc = "The `copyBufferToBuffer()` method."]
213 #[doc = ""]
214 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
215 #[doc = ""]
216 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
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 copy_buffer_to_buffer_with_f64_and_u32_and_u32(
221 this: &GpuCommandEncoder,
222 source: &GpuBuffer,
223 source_offset: f64,
224 destination: &GpuBuffer,
225 destination_offset: u32,
226 size: u32,
227 ) -> Result<(), JsValue>;
228 #[cfg(web_sys_unstable_apis)]
229 #[cfg(feature = "GpuBuffer")]
230 # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
231 #[doc = "The `copyBufferToBuffer()` method."]
232 #[doc = ""]
233 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
234 #[doc = ""]
235 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
236 #[doc = ""]
237 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
238 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
239 pub fn copy_buffer_to_buffer_with_u32_and_f64_and_u32(
240 this: &GpuCommandEncoder,
241 source: &GpuBuffer,
242 source_offset: u32,
243 destination: &GpuBuffer,
244 destination_offset: f64,
245 size: u32,
246 ) -> Result<(), JsValue>;
247 #[cfg(web_sys_unstable_apis)]
248 #[cfg(feature = "GpuBuffer")]
249 # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
258 pub fn copy_buffer_to_buffer_with_f64_and_f64_and_u32(
259 this: &GpuCommandEncoder,
260 source: &GpuBuffer,
261 source_offset: f64,
262 destination: &GpuBuffer,
263 destination_offset: f64,
264 size: u32,
265 ) -> Result<(), JsValue>;
266 #[cfg(web_sys_unstable_apis)]
267 #[cfg(feature = "GpuBuffer")]
268 # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
269 #[doc = "The `copyBufferToBuffer()` method."]
270 #[doc = ""]
271 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
272 #[doc = ""]
273 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
274 #[doc = ""]
275 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
276 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
277 pub fn copy_buffer_to_buffer_with_u32_and_u32_and_f64(
278 this: &GpuCommandEncoder,
279 source: &GpuBuffer,
280 source_offset: u32,
281 destination: &GpuBuffer,
282 destination_offset: u32,
283 size: f64,
284 ) -> Result<(), JsValue>;
285 #[cfg(web_sys_unstable_apis)]
286 #[cfg(feature = "GpuBuffer")]
287 # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
288 #[doc = "The `copyBufferToBuffer()` method."]
289 #[doc = ""]
290 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
291 #[doc = ""]
292 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
293 #[doc = ""]
294 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
295 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
296 pub fn copy_buffer_to_buffer_with_f64_and_u32_and_f64(
297 this: &GpuCommandEncoder,
298 source: &GpuBuffer,
299 source_offset: f64,
300 destination: &GpuBuffer,
301 destination_offset: u32,
302 size: f64,
303 ) -> Result<(), JsValue>;
304 #[cfg(web_sys_unstable_apis)]
305 #[cfg(feature = "GpuBuffer")]
306 # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
307 #[doc = "The `copyBufferToBuffer()` method."]
308 #[doc = ""]
309 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
310 #[doc = ""]
311 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
312 #[doc = ""]
313 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
314 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
315 pub fn copy_buffer_to_buffer_with_u32_and_f64_and_f64(
316 this: &GpuCommandEncoder,
317 source: &GpuBuffer,
318 source_offset: u32,
319 destination: &GpuBuffer,
320 destination_offset: f64,
321 size: f64,
322 ) -> Result<(), JsValue>;
323 #[cfg(web_sys_unstable_apis)]
324 #[cfg(feature = "GpuBuffer")]
325 # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer)]
326 #[doc = "The `copyBufferToBuffer()` method."]
327 #[doc = ""]
328 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
329 #[doc = ""]
330 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
331 #[doc = ""]
332 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
333 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
334 pub fn copy_buffer_to_buffer_with_f64_and_f64_and_f64(
335 this: &GpuCommandEncoder,
336 source: &GpuBuffer,
337 source_offset: f64,
338 destination: &GpuBuffer,
339 destination_offset: f64,
340 size: f64,
341 ) -> Result<(), JsValue>;
342 #[cfg(web_sys_unstable_apis)]
343 #[cfg(all(
344 feature = "GpuTexelCopyBufferInfo",
345 feature = "GpuTexelCopyTextureInfo",
346 ))]
347 # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToTexture)]
348 #[doc = "The `copyBufferToTexture()` method."]
349 #[doc = ""]
350 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)"]
351 #[doc = ""]
352 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuTexelCopyBufferInfo`, `GpuTexelCopyTextureInfo`*"]
353 #[doc = ""]
354 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
355 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
356 pub fn copy_buffer_to_texture_with_u32_sequence(
357 this: &GpuCommandEncoder,
358 source: &GpuTexelCopyBufferInfo,
359 destination: &GpuTexelCopyTextureInfo,
360 copy_size: &::wasm_bindgen::JsValue,
361 ) -> Result<(), JsValue>;
362 #[cfg(web_sys_unstable_apis)]
363 #[cfg(all(
364 feature = "GpuExtent3dDict",
365 feature = "GpuTexelCopyBufferInfo",
366 feature = "GpuTexelCopyTextureInfo",
367 ))]
368 # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToTexture)]
369 #[doc = "The `copyBufferToTexture()` method."]
370 #[doc = ""]
371 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)"]
372 #[doc = ""]
373 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuTexelCopyBufferInfo`, `GpuTexelCopyTextureInfo`*"]
374 #[doc = ""]
375 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
376 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
377 pub fn copy_buffer_to_texture_with_gpu_extent_3d_dict(
378 this: &GpuCommandEncoder,
379 source: &GpuTexelCopyBufferInfo,
380 destination: &GpuTexelCopyTextureInfo,
381 copy_size: &GpuExtent3dDict,
382 ) -> Result<(), JsValue>;
383 #[cfg(web_sys_unstable_apis)]
384 #[cfg(all(
385 feature = "GpuTexelCopyBufferInfo",
386 feature = "GpuTexelCopyTextureInfo",
387 ))]
388 # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToBuffer)]
389 #[doc = "The `copyTextureToBuffer()` method."]
390 #[doc = ""]
391 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)"]
392 #[doc = ""]
393 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuTexelCopyBufferInfo`, `GpuTexelCopyTextureInfo`*"]
394 #[doc = ""]
395 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
396 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
397 pub fn copy_texture_to_buffer_with_u32_sequence(
398 this: &GpuCommandEncoder,
399 source: &GpuTexelCopyTextureInfo,
400 destination: &GpuTexelCopyBufferInfo,
401 copy_size: &::wasm_bindgen::JsValue,
402 ) -> Result<(), JsValue>;
403 #[cfg(web_sys_unstable_apis)]
404 #[cfg(all(
405 feature = "GpuExtent3dDict",
406 feature = "GpuTexelCopyBufferInfo",
407 feature = "GpuTexelCopyTextureInfo",
408 ))]
409 # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToBuffer)]
410 #[doc = "The `copyTextureToBuffer()` method."]
411 #[doc = ""]
412 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)"]
413 #[doc = ""]
414 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuTexelCopyBufferInfo`, `GpuTexelCopyTextureInfo`*"]
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 copy_texture_to_buffer_with_gpu_extent_3d_dict(
419 this: &GpuCommandEncoder,
420 source: &GpuTexelCopyTextureInfo,
421 destination: &GpuTexelCopyBufferInfo,
422 copy_size: &GpuExtent3dDict,
423 ) -> Result<(), JsValue>;
424 #[cfg(web_sys_unstable_apis)]
425 #[cfg(feature = "GpuTexelCopyTextureInfo")]
426 # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToTexture)]
427 #[doc = "The `copyTextureToTexture()` method."]
428 #[doc = ""]
429 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)"]
430 #[doc = ""]
431 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuTexelCopyTextureInfo`*"]
432 #[doc = ""]
433 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
434 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
435 pub fn copy_texture_to_texture_with_u32_sequence(
436 this: &GpuCommandEncoder,
437 source: &GpuTexelCopyTextureInfo,
438 destination: &GpuTexelCopyTextureInfo,
439 copy_size: &::wasm_bindgen::JsValue,
440 ) -> Result<(), JsValue>;
441 #[cfg(web_sys_unstable_apis)]
442 #[cfg(all(feature = "GpuExtent3dDict", feature = "GpuTexelCopyTextureInfo",))]
443 # [wasm_bindgen (catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToTexture)]
444 #[doc = "The `copyTextureToTexture()` method."]
445 #[doc = ""]
446 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)"]
447 #[doc = ""]
448 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuTexelCopyTextureInfo`*"]
449 #[doc = ""]
450 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
451 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
452 pub fn copy_texture_to_texture_with_gpu_extent_3d_dict(
453 this: &GpuCommandEncoder,
454 source: &GpuTexelCopyTextureInfo,
455 destination: &GpuTexelCopyTextureInfo,
456 copy_size: &GpuExtent3dDict,
457 ) -> Result<(), JsValue>;
458 #[cfg(web_sys_unstable_apis)]
459 #[cfg(feature = "GpuCommandBuffer")]
460 # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = finish)]
461 #[doc = "The `finish()` method."]
462 #[doc = ""]
463 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/finish)"]
464 #[doc = ""]
465 #[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`, `GpuCommandEncoder`*"]
466 #[doc = ""]
467 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
468 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
469 pub fn finish(this: &GpuCommandEncoder) -> GpuCommandBuffer;
470 #[cfg(web_sys_unstable_apis)]
471 #[cfg(all(feature = "GpuCommandBuffer", feature = "GpuCommandBufferDescriptor",))]
472 # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = finish)]
473 #[doc = "The `finish()` method."]
474 #[doc = ""]
475 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/finish)"]
476 #[doc = ""]
477 #[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`, `GpuCommandBufferDescriptor`, `GpuCommandEncoder`*"]
478 #[doc = ""]
479 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
480 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
481 pub fn finish_with_descriptor(
482 this: &GpuCommandEncoder,
483 descriptor: &GpuCommandBufferDescriptor,
484 ) -> GpuCommandBuffer;
485 #[cfg(web_sys_unstable_apis)]
486 #[cfg(all(feature = "GpuBuffer", feature = "GpuQuerySet",))]
487 # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = resolveQuerySet)]
488 #[doc = "The `resolveQuerySet()` method."]
489 #[doc = ""]
490 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/resolveQuerySet)"]
491 #[doc = ""]
492 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`, `GpuQuerySet`*"]
493 #[doc = ""]
494 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
495 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
496 pub fn resolve_query_set_with_u32(
497 this: &GpuCommandEncoder,
498 query_set: &GpuQuerySet,
499 first_query: u32,
500 query_count: u32,
501 destination: &GpuBuffer,
502 destination_offset: u32,
503 );
504 #[cfg(web_sys_unstable_apis)]
505 #[cfg(all(feature = "GpuBuffer", feature = "GpuQuerySet",))]
506 # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = resolveQuerySet)]
507 #[doc = "The `resolveQuerySet()` method."]
508 #[doc = ""]
509 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/resolveQuerySet)"]
510 #[doc = ""]
511 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`, `GpuQuerySet`*"]
512 #[doc = ""]
513 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
514 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
515 pub fn resolve_query_set_with_f64(
516 this: &GpuCommandEncoder,
517 query_set: &GpuQuerySet,
518 first_query: u32,
519 query_count: u32,
520 destination: &GpuBuffer,
521 destination_offset: f64,
522 );
523 #[cfg(web_sys_unstable_apis)]
524 # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = insertDebugMarker)]
525 #[doc = "The `insertDebugMarker()` method."]
526 #[doc = ""]
527 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/insertDebugMarker)"]
528 #[doc = ""]
529 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
530 #[doc = ""]
531 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
532 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
533 pub fn insert_debug_marker(this: &GpuCommandEncoder, marker_label: &str);
534 #[cfg(web_sys_unstable_apis)]
535 # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = popDebugGroup)]
536 #[doc = "The `popDebugGroup()` method."]
537 #[doc = ""]
538 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/popDebugGroup)"]
539 #[doc = ""]
540 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
541 #[doc = ""]
542 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
543 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
544 pub fn pop_debug_group(this: &GpuCommandEncoder);
545 #[cfg(web_sys_unstable_apis)]
546 # [wasm_bindgen (method , structural , js_class = "GPUCommandEncoder" , js_name = pushDebugGroup)]
547 #[doc = "The `pushDebugGroup()` method."]
548 #[doc = ""]
549 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/pushDebugGroup)"]
550 #[doc = ""]
551 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
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 push_debug_group(this: &GpuCommandEncoder, group_label: &str);
556}