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