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_with_u32_and_u32(
216 this: &GpuCommandEncoder,
217 source: &GpuBuffer,
218 source_offset: u32,
219 destination: &GpuBuffer,
220 destination_offset: u32,
221 ) -> Result<(), JsValue>;
222 #[cfg(web_sys_unstable_apis)]
223 #[cfg(feature = "GpuBuffer")]
224 #[wasm_bindgen(
225 catch,
226 method,
227 js_class = "GPUCommandEncoder",
228 js_name = "copyBufferToBuffer"
229 )]
230 #[doc = "The `copyBufferToBuffer()` method."]
231 #[doc = ""]
232 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
233 #[doc = ""]
234 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
235 #[doc = ""]
236 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
237 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
238 pub fn copy_buffer_to_buffer_with_f64_and_u32(
239 this: &GpuCommandEncoder,
240 source: &GpuBuffer,
241 source_offset: f64,
242 destination: &GpuBuffer,
243 destination_offset: u32,
244 ) -> Result<(), JsValue>;
245 #[cfg(web_sys_unstable_apis)]
246 #[cfg(feature = "GpuBuffer")]
247 #[wasm_bindgen(
248 catch,
249 method,
250 js_class = "GPUCommandEncoder",
251 js_name = "copyBufferToBuffer"
252 )]
253 #[doc = "The `copyBufferToBuffer()` method."]
254 #[doc = ""]
255 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
256 #[doc = ""]
257 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
258 #[doc = ""]
259 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
260 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
261 pub fn copy_buffer_to_buffer_with_u32_and_f64(
262 this: &GpuCommandEncoder,
263 source: &GpuBuffer,
264 source_offset: u32,
265 destination: &GpuBuffer,
266 destination_offset: f64,
267 ) -> Result<(), JsValue>;
268 #[cfg(web_sys_unstable_apis)]
269 #[cfg(feature = "GpuBuffer")]
270 #[wasm_bindgen(
271 catch,
272 method,
273 js_class = "GPUCommandEncoder",
274 js_name = "copyBufferToBuffer"
275 )]
276 #[doc = "The `copyBufferToBuffer()` method."]
277 #[doc = ""]
278 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
279 #[doc = ""]
280 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
281 #[doc = ""]
282 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
283 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
284 pub fn copy_buffer_to_buffer_with_f64_and_f64(
285 this: &GpuCommandEncoder,
286 source: &GpuBuffer,
287 source_offset: f64,
288 destination: &GpuBuffer,
289 destination_offset: f64,
290 ) -> Result<(), JsValue>;
291 #[cfg(web_sys_unstable_apis)]
292 #[cfg(feature = "GpuBuffer")]
293 #[wasm_bindgen(
294 catch,
295 method,
296 js_class = "GPUCommandEncoder",
297 js_name = "copyBufferToBuffer"
298 )]
299 #[doc = "The `copyBufferToBuffer()` method."]
300 #[doc = ""]
301 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
302 #[doc = ""]
303 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
307 pub fn copy_buffer_to_buffer_with_u32_and_u32_and_u32(
308 this: &GpuCommandEncoder,
309 source: &GpuBuffer,
310 source_offset: u32,
311 destination: &GpuBuffer,
312 destination_offset: u32,
313 size: u32,
314 ) -> Result<(), JsValue>;
315 #[cfg(web_sys_unstable_apis)]
316 #[cfg(feature = "GpuBuffer")]
317 #[wasm_bindgen(
318 catch,
319 method,
320 js_class = "GPUCommandEncoder",
321 js_name = "copyBufferToBuffer"
322 )]
323 #[doc = "The `copyBufferToBuffer()` method."]
324 #[doc = ""]
325 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
326 #[doc = ""]
327 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
328 #[doc = ""]
329 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
330 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
331 pub fn copy_buffer_to_buffer_with_f64_and_u32_and_u32(
332 this: &GpuCommandEncoder,
333 source: &GpuBuffer,
334 source_offset: f64,
335 destination: &GpuBuffer,
336 destination_offset: u32,
337 size: u32,
338 ) -> Result<(), JsValue>;
339 #[cfg(web_sys_unstable_apis)]
340 #[cfg(feature = "GpuBuffer")]
341 #[wasm_bindgen(
342 catch,
343 method,
344 js_class = "GPUCommandEncoder",
345 js_name = "copyBufferToBuffer"
346 )]
347 #[doc = "The `copyBufferToBuffer()` method."]
348 #[doc = ""]
349 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
350 #[doc = ""]
351 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
352 #[doc = ""]
353 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
354 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
355 pub fn copy_buffer_to_buffer_with_u32_and_f64_and_u32(
356 this: &GpuCommandEncoder,
357 source: &GpuBuffer,
358 source_offset: u32,
359 destination: &GpuBuffer,
360 destination_offset: f64,
361 size: u32,
362 ) -> Result<(), JsValue>;
363 #[cfg(web_sys_unstable_apis)]
364 #[cfg(feature = "GpuBuffer")]
365 #[wasm_bindgen(
366 catch,
367 method,
368 js_class = "GPUCommandEncoder",
369 js_name = "copyBufferToBuffer"
370 )]
371 #[doc = "The `copyBufferToBuffer()` method."]
372 #[doc = ""]
373 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
374 #[doc = ""]
375 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
376 #[doc = ""]
377 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
378 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
379 pub fn copy_buffer_to_buffer_with_f64_and_f64_and_u32(
380 this: &GpuCommandEncoder,
381 source: &GpuBuffer,
382 source_offset: f64,
383 destination: &GpuBuffer,
384 destination_offset: f64,
385 size: u32,
386 ) -> Result<(), JsValue>;
387 #[cfg(web_sys_unstable_apis)]
388 #[cfg(feature = "GpuBuffer")]
389 #[wasm_bindgen(
390 catch,
391 method,
392 js_class = "GPUCommandEncoder",
393 js_name = "copyBufferToBuffer"
394 )]
395 #[doc = "The `copyBufferToBuffer()` method."]
396 #[doc = ""]
397 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
398 #[doc = ""]
399 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
400 #[doc = ""]
401 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
402 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
403 pub fn copy_buffer_to_buffer_with_u32_and_u32_and_f64(
404 this: &GpuCommandEncoder,
405 source: &GpuBuffer,
406 source_offset: u32,
407 destination: &GpuBuffer,
408 destination_offset: u32,
409 size: f64,
410 ) -> Result<(), JsValue>;
411 #[cfg(web_sys_unstable_apis)]
412 #[cfg(feature = "GpuBuffer")]
413 #[wasm_bindgen(
414 catch,
415 method,
416 js_class = "GPUCommandEncoder",
417 js_name = "copyBufferToBuffer"
418 )]
419 #[doc = "The `copyBufferToBuffer()` method."]
420 #[doc = ""]
421 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
422 #[doc = ""]
423 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
424 #[doc = ""]
425 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
426 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
427 pub fn copy_buffer_to_buffer_with_f64_and_u32_and_f64(
428 this: &GpuCommandEncoder,
429 source: &GpuBuffer,
430 source_offset: f64,
431 destination: &GpuBuffer,
432 destination_offset: u32,
433 size: f64,
434 ) -> Result<(), JsValue>;
435 #[cfg(web_sys_unstable_apis)]
436 #[cfg(feature = "GpuBuffer")]
437 #[wasm_bindgen(
438 catch,
439 method,
440 js_class = "GPUCommandEncoder",
441 js_name = "copyBufferToBuffer"
442 )]
443 #[doc = "The `copyBufferToBuffer()` method."]
444 #[doc = ""]
445 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
446 #[doc = ""]
447 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
448 #[doc = ""]
449 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
450 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
451 pub fn copy_buffer_to_buffer_with_u32_and_f64_and_f64(
452 this: &GpuCommandEncoder,
453 source: &GpuBuffer,
454 source_offset: u32,
455 destination: &GpuBuffer,
456 destination_offset: f64,
457 size: f64,
458 ) -> Result<(), JsValue>;
459 #[cfg(web_sys_unstable_apis)]
460 #[cfg(feature = "GpuBuffer")]
461 #[wasm_bindgen(
462 catch,
463 method,
464 js_class = "GPUCommandEncoder",
465 js_name = "copyBufferToBuffer"
466 )]
467 #[doc = "The `copyBufferToBuffer()` method."]
468 #[doc = ""]
469 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)"]
470 #[doc = ""]
471 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`*"]
472 #[doc = ""]
473 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
474 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
475 pub fn copy_buffer_to_buffer_with_f64_and_f64_and_f64(
476 this: &GpuCommandEncoder,
477 source: &GpuBuffer,
478 source_offset: f64,
479 destination: &GpuBuffer,
480 destination_offset: f64,
481 size: f64,
482 ) -> Result<(), JsValue>;
483 #[cfg(web_sys_unstable_apis)]
484 #[cfg(all(
485 feature = "GpuTexelCopyBufferInfo",
486 feature = "GpuTexelCopyTextureInfo",
487 ))]
488 #[wasm_bindgen(
489 catch,
490 method,
491 js_class = "GPUCommandEncoder",
492 js_name = "copyBufferToTexture"
493 )]
494 #[doc = "The `copyBufferToTexture()` method."]
495 #[doc = ""]
496 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)"]
497 #[doc = ""]
498 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuTexelCopyBufferInfo`, `GpuTexelCopyTextureInfo`*"]
499 #[doc = ""]
500 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
501 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
502 pub fn copy_buffer_to_texture_with_u32_sequence(
503 this: &GpuCommandEncoder,
504 source: &GpuTexelCopyBufferInfo,
505 destination: &GpuTexelCopyTextureInfo,
506 copy_size: &[::js_sys::Number],
507 ) -> Result<(), JsValue>;
508 #[cfg(web_sys_unstable_apis)]
509 #[cfg(all(
510 feature = "GpuExtent3dDict",
511 feature = "GpuTexelCopyBufferInfo",
512 feature = "GpuTexelCopyTextureInfo",
513 ))]
514 #[wasm_bindgen(
515 catch,
516 method,
517 js_class = "GPUCommandEncoder",
518 js_name = "copyBufferToTexture"
519 )]
520 #[doc = "The `copyBufferToTexture()` method."]
521 #[doc = ""]
522 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)"]
523 #[doc = ""]
524 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuTexelCopyBufferInfo`, `GpuTexelCopyTextureInfo`*"]
525 #[doc = ""]
526 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
527 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
528 pub fn copy_buffer_to_texture_with_gpu_extent_3d_dict(
529 this: &GpuCommandEncoder,
530 source: &GpuTexelCopyBufferInfo,
531 destination: &GpuTexelCopyTextureInfo,
532 copy_size: &GpuExtent3dDict,
533 ) -> Result<(), JsValue>;
534 #[cfg(web_sys_unstable_apis)]
535 #[cfg(all(
536 feature = "GpuTexelCopyBufferInfo",
537 feature = "GpuTexelCopyTextureInfo",
538 ))]
539 #[wasm_bindgen(
540 catch,
541 method,
542 js_class = "GPUCommandEncoder",
543 js_name = "copyTextureToBuffer"
544 )]
545 #[doc = "The `copyTextureToBuffer()` method."]
546 #[doc = ""]
547 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)"]
548 #[doc = ""]
549 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuTexelCopyBufferInfo`, `GpuTexelCopyTextureInfo`*"]
550 #[doc = ""]
551 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
552 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
553 pub fn copy_texture_to_buffer_with_u32_sequence(
554 this: &GpuCommandEncoder,
555 source: &GpuTexelCopyTextureInfo,
556 destination: &GpuTexelCopyBufferInfo,
557 copy_size: &[::js_sys::Number],
558 ) -> Result<(), JsValue>;
559 #[cfg(web_sys_unstable_apis)]
560 #[cfg(all(
561 feature = "GpuExtent3dDict",
562 feature = "GpuTexelCopyBufferInfo",
563 feature = "GpuTexelCopyTextureInfo",
564 ))]
565 #[wasm_bindgen(
566 catch,
567 method,
568 js_class = "GPUCommandEncoder",
569 js_name = "copyTextureToBuffer"
570 )]
571 #[doc = "The `copyTextureToBuffer()` method."]
572 #[doc = ""]
573 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)"]
574 #[doc = ""]
575 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuTexelCopyBufferInfo`, `GpuTexelCopyTextureInfo`*"]
576 #[doc = ""]
577 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
578 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
579 pub fn copy_texture_to_buffer_with_gpu_extent_3d_dict(
580 this: &GpuCommandEncoder,
581 source: &GpuTexelCopyTextureInfo,
582 destination: &GpuTexelCopyBufferInfo,
583 copy_size: &GpuExtent3dDict,
584 ) -> Result<(), JsValue>;
585 #[cfg(web_sys_unstable_apis)]
586 #[cfg(feature = "GpuTexelCopyTextureInfo")]
587 #[wasm_bindgen(
588 catch,
589 method,
590 js_class = "GPUCommandEncoder",
591 js_name = "copyTextureToTexture"
592 )]
593 #[doc = "The `copyTextureToTexture()` method."]
594 #[doc = ""]
595 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)"]
596 #[doc = ""]
597 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuTexelCopyTextureInfo`*"]
598 #[doc = ""]
599 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
600 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
601 pub fn copy_texture_to_texture_with_u32_sequence(
602 this: &GpuCommandEncoder,
603 source: &GpuTexelCopyTextureInfo,
604 destination: &GpuTexelCopyTextureInfo,
605 copy_size: &[::js_sys::Number],
606 ) -> Result<(), JsValue>;
607 #[cfg(web_sys_unstable_apis)]
608 #[cfg(all(feature = "GpuExtent3dDict", feature = "GpuTexelCopyTextureInfo",))]
609 #[wasm_bindgen(
610 catch,
611 method,
612 js_class = "GPUCommandEncoder",
613 js_name = "copyTextureToTexture"
614 )]
615 #[doc = "The `copyTextureToTexture()` method."]
616 #[doc = ""]
617 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)"]
618 #[doc = ""]
619 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuTexelCopyTextureInfo`*"]
620 #[doc = ""]
621 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
622 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
623 pub fn copy_texture_to_texture_with_gpu_extent_3d_dict(
624 this: &GpuCommandEncoder,
625 source: &GpuTexelCopyTextureInfo,
626 destination: &GpuTexelCopyTextureInfo,
627 copy_size: &GpuExtent3dDict,
628 ) -> Result<(), JsValue>;
629 #[cfg(web_sys_unstable_apis)]
630 #[cfg(feature = "GpuCommandBuffer")]
631 #[wasm_bindgen(method, js_class = "GPUCommandEncoder")]
632 #[doc = "The `finish()` method."]
633 #[doc = ""]
634 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/finish)"]
635 #[doc = ""]
636 #[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`, `GpuCommandEncoder`*"]
637 #[doc = ""]
638 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
639 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
640 pub fn finish(this: &GpuCommandEncoder) -> GpuCommandBuffer;
641 #[cfg(web_sys_unstable_apis)]
642 #[cfg(all(feature = "GpuCommandBuffer", feature = "GpuCommandBufferDescriptor",))]
643 #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "finish")]
644 #[doc = "The `finish()` method."]
645 #[doc = ""]
646 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/finish)"]
647 #[doc = ""]
648 #[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`, `GpuCommandBufferDescriptor`, `GpuCommandEncoder`*"]
649 #[doc = ""]
650 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
651 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
652 pub fn finish_with_descriptor(
653 this: &GpuCommandEncoder,
654 descriptor: &GpuCommandBufferDescriptor,
655 ) -> GpuCommandBuffer;
656 #[cfg(web_sys_unstable_apis)]
657 #[cfg(all(feature = "GpuBuffer", feature = "GpuQuerySet",))]
658 #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "resolveQuerySet")]
659 #[doc = "The `resolveQuerySet()` method."]
660 #[doc = ""]
661 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/resolveQuerySet)"]
662 #[doc = ""]
663 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`, `GpuQuerySet`*"]
664 #[doc = ""]
665 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
666 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
667 pub fn resolve_query_set_with_u32(
668 this: &GpuCommandEncoder,
669 query_set: &GpuQuerySet,
670 first_query: u32,
671 query_count: u32,
672 destination: &GpuBuffer,
673 destination_offset: u32,
674 );
675 #[cfg(web_sys_unstable_apis)]
676 #[cfg(all(feature = "GpuBuffer", feature = "GpuQuerySet",))]
677 #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "resolveQuerySet")]
678 #[doc = "The `resolveQuerySet()` method."]
679 #[doc = ""]
680 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/resolveQuerySet)"]
681 #[doc = ""]
682 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuCommandEncoder`, `GpuQuerySet`*"]
683 #[doc = ""]
684 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
685 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
686 pub fn resolve_query_set_with_f64(
687 this: &GpuCommandEncoder,
688 query_set: &GpuQuerySet,
689 first_query: u32,
690 query_count: u32,
691 destination: &GpuBuffer,
692 destination_offset: f64,
693 );
694 #[cfg(web_sys_unstable_apis)]
695 #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "insertDebugMarker")]
696 #[doc = "The `insertDebugMarker()` method."]
697 #[doc = ""]
698 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/insertDebugMarker)"]
699 #[doc = ""]
700 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
701 #[doc = ""]
702 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
703 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
704 pub fn insert_debug_marker(this: &GpuCommandEncoder, marker_label: &str);
705 #[cfg(web_sys_unstable_apis)]
706 #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "popDebugGroup")]
707 #[doc = "The `popDebugGroup()` method."]
708 #[doc = ""]
709 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/popDebugGroup)"]
710 #[doc = ""]
711 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
712 #[doc = ""]
713 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
714 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
715 pub fn pop_debug_group(this: &GpuCommandEncoder);
716 #[cfg(web_sys_unstable_apis)]
717 #[wasm_bindgen(method, js_class = "GPUCommandEncoder", js_name = "pushDebugGroup")]
718 #[doc = "The `pushDebugGroup()` method."]
719 #[doc = ""]
720 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/pushDebugGroup)"]
721 #[doc = ""]
722 #[doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`*"]
723 #[doc = ""]
724 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
725 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
726 pub fn push_debug_group(this: &GpuCommandEncoder, group_label: &str);
727}