1#![allow(unused_imports)]
2use super::*;
3use wasm_bindgen::prelude::*;
4#[cfg(web_sys_unstable_apis)]
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = GPUQueue , typescript_type = "GPUQueue")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `GpuQueue` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `GpuQueue`*"]
14 #[doc = ""]
15 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
16 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
17 pub type GpuQueue;
18 #[cfg(web_sys_unstable_apis)]
19 # [wasm_bindgen (structural , method , getter , js_class = "GPUQueue" , js_name = label)]
20 #[doc = "Getter for the `label` field of this object."]
21 #[doc = ""]
22 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/label)"]
23 #[doc = ""]
24 #[doc = "*This API requires the following crate features to be activated: `GpuQueue`*"]
25 #[doc = ""]
26 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
27 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
28 pub fn label(this: &GpuQueue) -> Option<String>;
29 #[cfg(web_sys_unstable_apis)]
30 # [wasm_bindgen (structural , method , setter , js_class = "GPUQueue" , js_name = label)]
31 #[doc = "Setter for the `label` field of this object."]
32 #[doc = ""]
33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/label)"]
34 #[doc = ""]
35 #[doc = "*This API requires the following crate features to be activated: `GpuQueue`*"]
36 #[doc = ""]
37 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
38 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
39 pub fn set_label(this: &GpuQueue, value: Option<&str>);
40 #[cfg(web_sys_unstable_apis)]
41 #[cfg(all(
42 feature = "GpuImageCopyExternalImage",
43 feature = "GpuImageCopyTextureTagged",
44 ))]
45 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = copyExternalImageToTexture)]
46 #[doc = "The `copyExternalImageToTexture()` method."]
47 #[doc = ""]
48 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/copyExternalImageToTexture)"]
49 #[doc = ""]
50 #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyExternalImage`, `GpuImageCopyTextureTagged`, `GpuQueue`*"]
51 #[doc = ""]
52 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
53 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
54 pub fn copy_external_image_to_texture_with_u32_sequence(
55 this: &GpuQueue,
56 source: &GpuImageCopyExternalImage,
57 destination: &GpuImageCopyTextureTagged,
58 copy_size: &::wasm_bindgen::JsValue,
59 );
60 #[cfg(web_sys_unstable_apis)]
61 #[cfg(all(
62 feature = "GpuExtent3dDict",
63 feature = "GpuImageCopyExternalImage",
64 feature = "GpuImageCopyTextureTagged",
65 ))]
66 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = copyExternalImageToTexture)]
67 #[doc = "The `copyExternalImageToTexture()` method."]
68 #[doc = ""]
69 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/copyExternalImageToTexture)"]
70 #[doc = ""]
71 #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuImageCopyExternalImage`, `GpuImageCopyTextureTagged`, `GpuQueue`*"]
72 #[doc = ""]
73 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
74 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
75 pub fn copy_external_image_to_texture_with_gpu_extent_3d_dict(
76 this: &GpuQueue,
77 source: &GpuImageCopyExternalImage,
78 destination: &GpuImageCopyTextureTagged,
79 copy_size: &GpuExtent3dDict,
80 );
81 #[cfg(web_sys_unstable_apis)]
82 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = onSubmittedWorkDone)]
83 #[doc = "The `onSubmittedWorkDone()` method."]
84 #[doc = ""]
85 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/onSubmittedWorkDone)"]
86 #[doc = ""]
87 #[doc = "*This API requires the following crate features to be activated: `GpuQueue`*"]
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://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
91 pub fn on_submitted_work_done(this: &GpuQueue) -> ::js_sys::Promise;
92 #[cfg(web_sys_unstable_apis)]
93 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = submit)]
94 #[doc = "The `submit()` method."]
95 #[doc = ""]
96 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/submit)"]
97 #[doc = ""]
98 #[doc = "*This API requires the following crate features to be activated: `GpuQueue`*"]
99 #[doc = ""]
100 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
101 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
102 pub fn submit(this: &GpuQueue, command_buffers: &::wasm_bindgen::JsValue);
103 #[cfg(web_sys_unstable_apis)]
104 #[cfg(feature = "GpuBuffer")]
105 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
106 #[doc = "The `writeBuffer()` method."]
107 #[doc = ""]
108 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
109 #[doc = ""]
110 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
111 #[doc = ""]
112 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
113 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
114 pub fn write_buffer_with_u32_and_buffer_source(
115 this: &GpuQueue,
116 buffer: &GpuBuffer,
117 buffer_offset: u32,
118 data: &::js_sys::Object,
119 );
120 #[cfg(web_sys_unstable_apis)]
121 #[cfg(feature = "GpuBuffer")]
122 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
123 #[doc = "The `writeBuffer()` method."]
124 #[doc = ""]
125 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
126 #[doc = ""]
127 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
128 #[doc = ""]
129 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
130 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
131 pub fn write_buffer_with_f64_and_buffer_source(
132 this: &GpuQueue,
133 buffer: &GpuBuffer,
134 buffer_offset: f64,
135 data: &::js_sys::Object,
136 );
137 #[cfg(web_sys_unstable_apis)]
138 #[cfg(feature = "GpuBuffer")]
139 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
140 #[doc = "The `writeBuffer()` method."]
141 #[doc = ""]
142 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
143 #[doc = ""]
144 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
145 #[doc = ""]
146 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
147 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
148 pub fn write_buffer_with_u32_and_u8_array(
149 this: &GpuQueue,
150 buffer: &GpuBuffer,
151 buffer_offset: u32,
152 data: &[u8],
153 );
154 #[cfg(web_sys_unstable_apis)]
155 #[cfg(feature = "GpuBuffer")]
156 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
157 #[doc = "The `writeBuffer()` method."]
158 #[doc = ""]
159 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
160 #[doc = ""]
161 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
162 #[doc = ""]
163 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
164 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
165 pub fn write_buffer_with_f64_and_u8_array(
166 this: &GpuQueue,
167 buffer: &GpuBuffer,
168 buffer_offset: f64,
169 data: &[u8],
170 );
171 #[cfg(web_sys_unstable_apis)]
172 #[cfg(feature = "GpuBuffer")]
173 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
174 #[doc = "The `writeBuffer()` method."]
175 #[doc = ""]
176 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
177 #[doc = ""]
178 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
179 #[doc = ""]
180 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
181 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
182 pub fn write_buffer_with_u32_and_buffer_source_and_u32(
183 this: &GpuQueue,
184 buffer: &GpuBuffer,
185 buffer_offset: u32,
186 data: &::js_sys::Object,
187 data_offset: u32,
188 );
189 #[cfg(web_sys_unstable_apis)]
190 #[cfg(feature = "GpuBuffer")]
191 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
192 #[doc = "The `writeBuffer()` method."]
193 #[doc = ""]
194 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
195 #[doc = ""]
196 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
197 #[doc = ""]
198 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
199 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
200 pub fn write_buffer_with_f64_and_buffer_source_and_u32(
201 this: &GpuQueue,
202 buffer: &GpuBuffer,
203 buffer_offset: f64,
204 data: &::js_sys::Object,
205 data_offset: u32,
206 );
207 #[cfg(web_sys_unstable_apis)]
208 #[cfg(feature = "GpuBuffer")]
209 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
210 #[doc = "The `writeBuffer()` method."]
211 #[doc = ""]
212 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
213 #[doc = ""]
214 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
215 #[doc = ""]
216 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
217 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
218 pub fn write_buffer_with_u32_and_u8_array_and_u32(
219 this: &GpuQueue,
220 buffer: &GpuBuffer,
221 buffer_offset: u32,
222 data: &[u8],
223 data_offset: u32,
224 );
225 #[cfg(web_sys_unstable_apis)]
226 #[cfg(feature = "GpuBuffer")]
227 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
228 #[doc = "The `writeBuffer()` method."]
229 #[doc = ""]
230 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
231 #[doc = ""]
232 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
233 #[doc = ""]
234 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
235 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
236 pub fn write_buffer_with_f64_and_u8_array_and_u32(
237 this: &GpuQueue,
238 buffer: &GpuBuffer,
239 buffer_offset: f64,
240 data: &[u8],
241 data_offset: u32,
242 );
243 #[cfg(web_sys_unstable_apis)]
244 #[cfg(feature = "GpuBuffer")]
245 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
246 #[doc = "The `writeBuffer()` method."]
247 #[doc = ""]
248 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
249 #[doc = ""]
250 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
251 #[doc = ""]
252 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
253 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
254 pub fn write_buffer_with_u32_and_buffer_source_and_f64(
255 this: &GpuQueue,
256 buffer: &GpuBuffer,
257 buffer_offset: u32,
258 data: &::js_sys::Object,
259 data_offset: f64,
260 );
261 #[cfg(web_sys_unstable_apis)]
262 #[cfg(feature = "GpuBuffer")]
263 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
264 #[doc = "The `writeBuffer()` method."]
265 #[doc = ""]
266 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
267 #[doc = ""]
268 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
269 #[doc = ""]
270 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
271 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
272 pub fn write_buffer_with_f64_and_buffer_source_and_f64(
273 this: &GpuQueue,
274 buffer: &GpuBuffer,
275 buffer_offset: f64,
276 data: &::js_sys::Object,
277 data_offset: f64,
278 );
279 #[cfg(web_sys_unstable_apis)]
280 #[cfg(feature = "GpuBuffer")]
281 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
282 #[doc = "The `writeBuffer()` method."]
283 #[doc = ""]
284 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
285 #[doc = ""]
286 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
287 #[doc = ""]
288 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
289 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
290 pub fn write_buffer_with_u32_and_u8_array_and_f64(
291 this: &GpuQueue,
292 buffer: &GpuBuffer,
293 buffer_offset: u32,
294 data: &[u8],
295 data_offset: f64,
296 );
297 #[cfg(web_sys_unstable_apis)]
298 #[cfg(feature = "GpuBuffer")]
299 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
300 #[doc = "The `writeBuffer()` method."]
301 #[doc = ""]
302 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
303 #[doc = ""]
304 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
305 #[doc = ""]
306 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
307 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
308 pub fn write_buffer_with_f64_and_u8_array_and_f64(
309 this: &GpuQueue,
310 buffer: &GpuBuffer,
311 buffer_offset: f64,
312 data: &[u8],
313 data_offset: f64,
314 );
315 #[cfg(web_sys_unstable_apis)]
316 #[cfg(feature = "GpuBuffer")]
317 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
318 #[doc = "The `writeBuffer()` method."]
319 #[doc = ""]
320 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
321 #[doc = ""]
322 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
323 #[doc = ""]
324 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
325 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
326 pub fn write_buffer_with_u32_and_buffer_source_and_u32_and_u32(
327 this: &GpuQueue,
328 buffer: &GpuBuffer,
329 buffer_offset: u32,
330 data: &::js_sys::Object,
331 data_offset: u32,
332 size: u32,
333 );
334 #[cfg(web_sys_unstable_apis)]
335 #[cfg(feature = "GpuBuffer")]
336 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
337 #[doc = "The `writeBuffer()` method."]
338 #[doc = ""]
339 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
340 #[doc = ""]
341 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
342 #[doc = ""]
343 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
344 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
345 pub fn write_buffer_with_f64_and_buffer_source_and_u32_and_u32(
346 this: &GpuQueue,
347 buffer: &GpuBuffer,
348 buffer_offset: f64,
349 data: &::js_sys::Object,
350 data_offset: u32,
351 size: u32,
352 );
353 #[cfg(web_sys_unstable_apis)]
354 #[cfg(feature = "GpuBuffer")]
355 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
356 #[doc = "The `writeBuffer()` method."]
357 #[doc = ""]
358 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
359 #[doc = ""]
360 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
361 #[doc = ""]
362 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
363 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
364 pub fn write_buffer_with_u32_and_u8_array_and_u32_and_u32(
365 this: &GpuQueue,
366 buffer: &GpuBuffer,
367 buffer_offset: u32,
368 data: &[u8],
369 data_offset: u32,
370 size: u32,
371 );
372 #[cfg(web_sys_unstable_apis)]
373 #[cfg(feature = "GpuBuffer")]
374 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
375 #[doc = "The `writeBuffer()` method."]
376 #[doc = ""]
377 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
378 #[doc = ""]
379 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
380 #[doc = ""]
381 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
382 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
383 pub fn write_buffer_with_f64_and_u8_array_and_u32_and_u32(
384 this: &GpuQueue,
385 buffer: &GpuBuffer,
386 buffer_offset: f64,
387 data: &[u8],
388 data_offset: u32,
389 size: u32,
390 );
391 #[cfg(web_sys_unstable_apis)]
392 #[cfg(feature = "GpuBuffer")]
393 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
394 #[doc = "The `writeBuffer()` method."]
395 #[doc = ""]
396 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
397 #[doc = ""]
398 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
399 #[doc = ""]
400 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
401 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
402 pub fn write_buffer_with_u32_and_buffer_source_and_f64_and_u32(
403 this: &GpuQueue,
404 buffer: &GpuBuffer,
405 buffer_offset: u32,
406 data: &::js_sys::Object,
407 data_offset: f64,
408 size: u32,
409 );
410 #[cfg(web_sys_unstable_apis)]
411 #[cfg(feature = "GpuBuffer")]
412 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
413 #[doc = "The `writeBuffer()` method."]
414 #[doc = ""]
415 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
416 #[doc = ""]
417 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
418 #[doc = ""]
419 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
420 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
421 pub fn write_buffer_with_f64_and_buffer_source_and_f64_and_u32(
422 this: &GpuQueue,
423 buffer: &GpuBuffer,
424 buffer_offset: f64,
425 data: &::js_sys::Object,
426 data_offset: f64,
427 size: u32,
428 );
429 #[cfg(web_sys_unstable_apis)]
430 #[cfg(feature = "GpuBuffer")]
431 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
432 #[doc = "The `writeBuffer()` method."]
433 #[doc = ""]
434 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
435 #[doc = ""]
436 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
437 #[doc = ""]
438 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
439 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
440 pub fn write_buffer_with_u32_and_u8_array_and_f64_and_u32(
441 this: &GpuQueue,
442 buffer: &GpuBuffer,
443 buffer_offset: u32,
444 data: &[u8],
445 data_offset: f64,
446 size: u32,
447 );
448 #[cfg(web_sys_unstable_apis)]
449 #[cfg(feature = "GpuBuffer")]
450 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
451 #[doc = "The `writeBuffer()` method."]
452 #[doc = ""]
453 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
454 #[doc = ""]
455 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
456 #[doc = ""]
457 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
458 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
459 pub fn write_buffer_with_f64_and_u8_array_and_f64_and_u32(
460 this: &GpuQueue,
461 buffer: &GpuBuffer,
462 buffer_offset: f64,
463 data: &[u8],
464 data_offset: f64,
465 size: u32,
466 );
467 #[cfg(web_sys_unstable_apis)]
468 #[cfg(feature = "GpuBuffer")]
469 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
470 #[doc = "The `writeBuffer()` method."]
471 #[doc = ""]
472 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
473 #[doc = ""]
474 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
475 #[doc = ""]
476 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
477 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
478 pub fn write_buffer_with_u32_and_buffer_source_and_u32_and_f64(
479 this: &GpuQueue,
480 buffer: &GpuBuffer,
481 buffer_offset: u32,
482 data: &::js_sys::Object,
483 data_offset: u32,
484 size: f64,
485 );
486 #[cfg(web_sys_unstable_apis)]
487 #[cfg(feature = "GpuBuffer")]
488 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
489 #[doc = "The `writeBuffer()` method."]
490 #[doc = ""]
491 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
492 #[doc = ""]
493 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
494 #[doc = ""]
495 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
496 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
497 pub fn write_buffer_with_f64_and_buffer_source_and_u32_and_f64(
498 this: &GpuQueue,
499 buffer: &GpuBuffer,
500 buffer_offset: f64,
501 data: &::js_sys::Object,
502 data_offset: u32,
503 size: f64,
504 );
505 #[cfg(web_sys_unstable_apis)]
506 #[cfg(feature = "GpuBuffer")]
507 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
508 #[doc = "The `writeBuffer()` method."]
509 #[doc = ""]
510 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
511 #[doc = ""]
512 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
513 #[doc = ""]
514 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
515 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
516 pub fn write_buffer_with_u32_and_u8_array_and_u32_and_f64(
517 this: &GpuQueue,
518 buffer: &GpuBuffer,
519 buffer_offset: u32,
520 data: &[u8],
521 data_offset: u32,
522 size: f64,
523 );
524 #[cfg(web_sys_unstable_apis)]
525 #[cfg(feature = "GpuBuffer")]
526 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
527 #[doc = "The `writeBuffer()` method."]
528 #[doc = ""]
529 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
530 #[doc = ""]
531 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
532 #[doc = ""]
533 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
534 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
535 pub fn write_buffer_with_f64_and_u8_array_and_u32_and_f64(
536 this: &GpuQueue,
537 buffer: &GpuBuffer,
538 buffer_offset: f64,
539 data: &[u8],
540 data_offset: u32,
541 size: f64,
542 );
543 #[cfg(web_sys_unstable_apis)]
544 #[cfg(feature = "GpuBuffer")]
545 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
546 #[doc = "The `writeBuffer()` method."]
547 #[doc = ""]
548 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
549 #[doc = ""]
550 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
551 #[doc = ""]
552 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
553 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
554 pub fn write_buffer_with_u32_and_buffer_source_and_f64_and_f64(
555 this: &GpuQueue,
556 buffer: &GpuBuffer,
557 buffer_offset: u32,
558 data: &::js_sys::Object,
559 data_offset: f64,
560 size: f64,
561 );
562 #[cfg(web_sys_unstable_apis)]
563 #[cfg(feature = "GpuBuffer")]
564 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
565 #[doc = "The `writeBuffer()` method."]
566 #[doc = ""]
567 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
568 #[doc = ""]
569 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
570 #[doc = ""]
571 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
572 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
573 pub fn write_buffer_with_f64_and_buffer_source_and_f64_and_f64(
574 this: &GpuQueue,
575 buffer: &GpuBuffer,
576 buffer_offset: f64,
577 data: &::js_sys::Object,
578 data_offset: f64,
579 size: f64,
580 );
581 #[cfg(web_sys_unstable_apis)]
582 #[cfg(feature = "GpuBuffer")]
583 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
584 #[doc = "The `writeBuffer()` method."]
585 #[doc = ""]
586 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
587 #[doc = ""]
588 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
589 #[doc = ""]
590 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
591 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
592 pub fn write_buffer_with_u32_and_u8_array_and_f64_and_f64(
593 this: &GpuQueue,
594 buffer: &GpuBuffer,
595 buffer_offset: u32,
596 data: &[u8],
597 data_offset: f64,
598 size: f64,
599 );
600 #[cfg(web_sys_unstable_apis)]
601 #[cfg(feature = "GpuBuffer")]
602 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeBuffer)]
603 #[doc = "The `writeBuffer()` method."]
604 #[doc = ""]
605 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
606 #[doc = ""]
607 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
608 #[doc = ""]
609 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
610 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
611 pub fn write_buffer_with_f64_and_u8_array_and_f64_and_f64(
612 this: &GpuQueue,
613 buffer: &GpuBuffer,
614 buffer_offset: f64,
615 data: &[u8],
616 data_offset: f64,
617 size: f64,
618 );
619 #[cfg(web_sys_unstable_apis)]
620 #[cfg(all(feature = "GpuImageCopyTexture", feature = "GpuImageDataLayout",))]
621 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeTexture)]
622 #[doc = "The `writeTexture()` method."]
623 #[doc = ""]
624 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"]
625 #[doc = ""]
626 #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`, `GpuImageDataLayout`, `GpuQueue`*"]
627 #[doc = ""]
628 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
629 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
630 pub fn write_texture_with_buffer_source_and_u32_sequence(
631 this: &GpuQueue,
632 destination: &GpuImageCopyTexture,
633 data: &::js_sys::Object,
634 data_layout: &GpuImageDataLayout,
635 size: &::wasm_bindgen::JsValue,
636 );
637 #[cfg(web_sys_unstable_apis)]
638 #[cfg(all(feature = "GpuImageCopyTexture", feature = "GpuImageDataLayout",))]
639 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeTexture)]
640 #[doc = "The `writeTexture()` method."]
641 #[doc = ""]
642 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"]
643 #[doc = ""]
644 #[doc = "*This API requires the following crate features to be activated: `GpuImageCopyTexture`, `GpuImageDataLayout`, `GpuQueue`*"]
645 #[doc = ""]
646 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
647 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
648 pub fn write_texture_with_u8_array_and_u32_sequence(
649 this: &GpuQueue,
650 destination: &GpuImageCopyTexture,
651 data: &[u8],
652 data_layout: &GpuImageDataLayout,
653 size: &::wasm_bindgen::JsValue,
654 );
655 #[cfg(web_sys_unstable_apis)]
656 #[cfg(all(
657 feature = "GpuExtent3dDict",
658 feature = "GpuImageCopyTexture",
659 feature = "GpuImageDataLayout",
660 ))]
661 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeTexture)]
662 #[doc = "The `writeTexture()` method."]
663 #[doc = ""]
664 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"]
665 #[doc = ""]
666 #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuImageCopyTexture`, `GpuImageDataLayout`, `GpuQueue`*"]
667 #[doc = ""]
668 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
669 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
670 pub fn write_texture_with_buffer_source_and_gpu_extent_3d_dict(
671 this: &GpuQueue,
672 destination: &GpuImageCopyTexture,
673 data: &::js_sys::Object,
674 data_layout: &GpuImageDataLayout,
675 size: &GpuExtent3dDict,
676 );
677 #[cfg(web_sys_unstable_apis)]
678 #[cfg(all(
679 feature = "GpuExtent3dDict",
680 feature = "GpuImageCopyTexture",
681 feature = "GpuImageDataLayout",
682 ))]
683 # [wasm_bindgen (method , structural , js_class = "GPUQueue" , js_name = writeTexture)]
684 #[doc = "The `writeTexture()` method."]
685 #[doc = ""]
686 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"]
687 #[doc = ""]
688 #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuImageCopyTexture`, `GpuImageDataLayout`, `GpuQueue`*"]
689 #[doc = ""]
690 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
691 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
692 pub fn write_texture_with_u8_array_and_gpu_extent_3d_dict(
693 this: &GpuQueue,
694 destination: &GpuImageCopyTexture,
695 data: &[u8],
696 data_layout: &GpuImageDataLayout,
697 size: &GpuExtent3dDict,
698 );
699}