1#![allow(unused_imports)]
23#![allow(clippy::all)]
24use super::*;
25use wasm_bindgen::prelude::*;
26
27#[wasm_bindgen]
28extern "C" {
29 #[wasm_bindgen(
30 extends = "::js_sys::Object",
31 js_name = "GPUQueue",
32 typescript_type = "GPUQueue"
33 )]
34 #[derive(Debug, Clone, PartialEq, Eq)]
35 #[doc = "The `GpuQueue` class."]
36 #[doc = ""]
37 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue)"]
38 #[doc = ""]
39 #[doc = "*This API requires the following crate features to be activated: `GpuQueue`*"]
40 #[doc = ""]
41 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
42 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
43 pub type GpuQueue;
44
45 #[wasm_bindgen(method, getter, js_class = "GPUQueue", js_name = "label")]
46 #[doc = "Getter for the `label` field of this object."]
47 #[doc = ""]
48 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/label)"]
49 #[doc = ""]
50 #[doc = "*This API requires the following crate features to be activated: `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
54 pub fn label(this: &GpuQueue) -> ::alloc::string::String;
55
56 #[wasm_bindgen(method, setter, js_class = "GPUQueue", js_name = "label")]
57 #[doc = "Setter for the `label` field of this object."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/label)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `GpuQueue`*"]
62 #[doc = ""]
63 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
64 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
65 pub fn set_label(this: &GpuQueue, value: &str);
66
67 #[wasm_bindgen(
68 catch,
69 method,
70 js_class = "GPUQueue",
71 js_name = "copyExternalImageToTexture"
72 )]
73 #[doc = "The `copyExternalImageToTexture()` method."]
74 #[doc = ""]
75 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/copyExternalImageToTexture)"]
76 #[doc = ""]
77 #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `GpuCopyExternalImageSourceInfo`, `GpuQueue`*"]
78 #[doc = ""]
79 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
80 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
81 pub fn copy_external_image_to_texture_with_u32_sequence(
82 this: &GpuQueue,
83 source: &GpuCopyExternalImageSourceInfo,
84 destination: &GpuCopyExternalImageDestInfo,
85 copy_size: &[::js_sys::Number],
86 ) -> Result<(), JsValue>;
87
88 #[wasm_bindgen(
89 catch,
90 method,
91 js_class = "GPUQueue",
92 js_name = "copyExternalImageToTexture"
93 )]
94 #[doc = "The `copyExternalImageToTexture()` method."]
95 #[doc = ""]
96 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/copyExternalImageToTexture)"]
97 #[doc = ""]
98 #[doc = "*This API requires the following crate features to be activated: `GpuCopyExternalImageDestInfo`, `GpuCopyExternalImageSourceInfo`, `GpuExtent3dDict`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
102 pub fn copy_external_image_to_texture_with_gpu_extent_3d_dict(
103 this: &GpuQueue,
104 source: &GpuCopyExternalImageSourceInfo,
105 destination: &GpuCopyExternalImageDestInfo,
106 copy_size: &GpuExtent3dDict,
107 ) -> Result<(), JsValue>;
108
109 #[wasm_bindgen(method, js_class = "GPUQueue", js_name = "onSubmittedWorkDone")]
110 #[doc = "The `onSubmittedWorkDone()` method."]
111 #[doc = ""]
112 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/onSubmittedWorkDone)"]
113 #[doc = ""]
114 #[doc = "*This API requires the following crate features to be activated: `GpuQueue`*"]
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 on_submitted_work_done(this: &GpuQueue) -> ::js_sys::Promise<::js_sys::Undefined>;
119
120 #[wasm_bindgen(method, js_class = "GPUQueue")]
121 #[doc = "The `submit()` method."]
122 #[doc = ""]
123 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/submit)"]
124 #[doc = ""]
125 #[doc = "*This API requires the following crate features to be activated: `GpuCommandBuffer`, `GpuQueue`*"]
126 #[doc = ""]
127 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
128 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
129 pub fn submit(this: &GpuQueue, command_buffers: &[GpuCommandBuffer]);
130
131 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
132 #[doc = "The `writeBuffer()` method."]
133 #[doc = ""]
134 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
135 #[doc = ""]
136 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
137 #[doc = ""]
138 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
139 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
140 pub fn write_buffer_with_u32_and_buffer_source(
141 this: &GpuQueue,
142 buffer: &GpuBuffer,
143 buffer_offset: u32,
144 data: &::js_sys::Object,
145 ) -> Result<(), JsValue>;
146
147 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
148 #[doc = "The `writeBuffer()` method."]
149 #[doc = ""]
150 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
151 #[doc = ""]
152 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
153 #[doc = ""]
154 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
155 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
156 pub fn write_buffer_with_f64_and_buffer_source(
157 this: &GpuQueue,
158 buffer: &GpuBuffer,
159 buffer_offset: f64,
160 data: &::js_sys::Object,
161 ) -> Result<(), JsValue>;
162
163 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
164 #[doc = "The `writeBuffer()` method."]
165 #[doc = ""]
166 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
167 #[doc = ""]
168 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
169 #[doc = ""]
170 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
171 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
172 pub fn write_buffer_with_u32_and_u8_slice(
173 this: &GpuQueue,
174 buffer: &GpuBuffer,
175 buffer_offset: u32,
176 data: &[u8],
177 ) -> Result<(), JsValue>;
178
179 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
180 #[doc = "The `writeBuffer()` method."]
181 #[doc = ""]
182 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
183 #[doc = ""]
184 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
185 #[doc = ""]
186 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
187 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
188 pub fn write_buffer_with_f64_and_u8_slice(
189 this: &GpuQueue,
190 buffer: &GpuBuffer,
191 buffer_offset: f64,
192 data: &[u8],
193 ) -> Result<(), JsValue>;
194
195 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
196 #[doc = "The `writeBuffer()` method."]
197 #[doc = ""]
198 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
199 #[doc = ""]
200 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
201 #[doc = ""]
202 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
203 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
204 pub fn write_buffer_with_u32_and_u8_array(
205 this: &GpuQueue,
206 buffer: &GpuBuffer,
207 buffer_offset: u32,
208 data: &::js_sys::Uint8Array,
209 ) -> Result<(), JsValue>;
210
211 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
212 #[doc = "The `writeBuffer()` method."]
213 #[doc = ""]
214 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
215 #[doc = ""]
216 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
217 #[doc = ""]
218 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
219 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
220 pub fn write_buffer_with_f64_and_u8_array(
221 this: &GpuQueue,
222 buffer: &GpuBuffer,
223 buffer_offset: f64,
224 data: &::js_sys::Uint8Array,
225 ) -> Result<(), JsValue>;
226
227 #[wasm_bindgen(catch, method, 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
236 pub fn write_buffer_with_u32_and_buffer_source_and_u32(
237 this: &GpuQueue,
238 buffer: &GpuBuffer,
239 buffer_offset: u32,
240 data: &::js_sys::Object,
241 data_offset: u32,
242 ) -> Result<(), JsValue>;
243
244 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
245 #[doc = "The `writeBuffer()` method."]
246 #[doc = ""]
247 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
248 #[doc = ""]
249 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
250 #[doc = ""]
251 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
252 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
253 pub fn write_buffer_with_f64_and_buffer_source_and_u32(
254 this: &GpuQueue,
255 buffer: &GpuBuffer,
256 buffer_offset: f64,
257 data: &::js_sys::Object,
258 data_offset: u32,
259 ) -> Result<(), JsValue>;
260
261 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
262 #[doc = "The `writeBuffer()` method."]
263 #[doc = ""]
264 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
265 #[doc = ""]
266 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
267 #[doc = ""]
268 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
269 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
270 pub fn write_buffer_with_u32_and_u8_slice_and_u32(
271 this: &GpuQueue,
272 buffer: &GpuBuffer,
273 buffer_offset: u32,
274 data: &[u8],
275 data_offset: u32,
276 ) -> Result<(), JsValue>;
277
278 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
279 #[doc = "The `writeBuffer()` method."]
280 #[doc = ""]
281 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
282 #[doc = ""]
283 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
284 #[doc = ""]
285 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
286 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
287 pub fn write_buffer_with_f64_and_u8_slice_and_u32(
288 this: &GpuQueue,
289 buffer: &GpuBuffer,
290 buffer_offset: f64,
291 data: &[u8],
292 data_offset: u32,
293 ) -> Result<(), JsValue>;
294
295 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
296 #[doc = "The `writeBuffer()` method."]
297 #[doc = ""]
298 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
299 #[doc = ""]
300 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
301 #[doc = ""]
302 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
303 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
304 pub fn write_buffer_with_u32_and_u8_array_and_u32(
305 this: &GpuQueue,
306 buffer: &GpuBuffer,
307 buffer_offset: u32,
308 data: &::js_sys::Uint8Array,
309 data_offset: u32,
310 ) -> Result<(), JsValue>;
311
312 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
313 #[doc = "The `writeBuffer()` method."]
314 #[doc = ""]
315 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
316 #[doc = ""]
317 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
318 #[doc = ""]
319 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
320 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
321 pub fn write_buffer_with_f64_and_u8_array_and_u32(
322 this: &GpuQueue,
323 buffer: &GpuBuffer,
324 buffer_offset: f64,
325 data: &::js_sys::Uint8Array,
326 data_offset: u32,
327 ) -> Result<(), JsValue>;
328
329 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
330 #[doc = "The `writeBuffer()` method."]
331 #[doc = ""]
332 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
333 #[doc = ""]
334 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
335 #[doc = ""]
336 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
337 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
338 pub fn write_buffer_with_u32_and_buffer_source_and_f64(
339 this: &GpuQueue,
340 buffer: &GpuBuffer,
341 buffer_offset: u32,
342 data: &::js_sys::Object,
343 data_offset: f64,
344 ) -> Result<(), JsValue>;
345
346 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
347 #[doc = "The `writeBuffer()` method."]
348 #[doc = ""]
349 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
350 #[doc = ""]
351 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
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 write_buffer_with_f64_and_buffer_source_and_f64(
356 this: &GpuQueue,
357 buffer: &GpuBuffer,
358 buffer_offset: f64,
359 data: &::js_sys::Object,
360 data_offset: f64,
361 ) -> Result<(), JsValue>;
362
363 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
364 #[doc = "The `writeBuffer()` method."]
365 #[doc = ""]
366 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
367 #[doc = ""]
368 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
369 #[doc = ""]
370 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
371 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
372 pub fn write_buffer_with_u32_and_u8_slice_and_f64(
373 this: &GpuQueue,
374 buffer: &GpuBuffer,
375 buffer_offset: u32,
376 data: &[u8],
377 data_offset: f64,
378 ) -> Result<(), JsValue>;
379
380 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
381 #[doc = "The `writeBuffer()` method."]
382 #[doc = ""]
383 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
384 #[doc = ""]
385 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
386 #[doc = ""]
387 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
388 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
389 pub fn write_buffer_with_f64_and_u8_slice_and_f64(
390 this: &GpuQueue,
391 buffer: &GpuBuffer,
392 buffer_offset: f64,
393 data: &[u8],
394 data_offset: f64,
395 ) -> Result<(), JsValue>;
396
397 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
398 #[doc = "The `writeBuffer()` method."]
399 #[doc = ""]
400 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
401 #[doc = ""]
402 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
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 write_buffer_with_u32_and_u8_array_and_f64(
407 this: &GpuQueue,
408 buffer: &GpuBuffer,
409 buffer_offset: u32,
410 data: &::js_sys::Uint8Array,
411 data_offset: f64,
412 ) -> Result<(), JsValue>;
413
414 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
415 #[doc = "The `writeBuffer()` method."]
416 #[doc = ""]
417 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
418 #[doc = ""]
419 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
420 #[doc = ""]
421 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
422 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
423 pub fn write_buffer_with_f64_and_u8_array_and_f64(
424 this: &GpuQueue,
425 buffer: &GpuBuffer,
426 buffer_offset: f64,
427 data: &::js_sys::Uint8Array,
428 data_offset: f64,
429 ) -> Result<(), JsValue>;
430
431 #[wasm_bindgen(catch, method, 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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
440 pub fn write_buffer_with_u32_and_buffer_source_and_u32_and_u32(
441 this: &GpuQueue,
442 buffer: &GpuBuffer,
443 buffer_offset: u32,
444 data: &::js_sys::Object,
445 data_offset: u32,
446 size: u32,
447 ) -> Result<(), JsValue>;
448
449 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
450 #[doc = "The `writeBuffer()` method."]
451 #[doc = ""]
452 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
453 #[doc = ""]
454 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
455 #[doc = ""]
456 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
457 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
458 pub fn write_buffer_with_f64_and_buffer_source_and_u32_and_u32(
459 this: &GpuQueue,
460 buffer: &GpuBuffer,
461 buffer_offset: f64,
462 data: &::js_sys::Object,
463 data_offset: u32,
464 size: u32,
465 ) -> Result<(), JsValue>;
466
467 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
468 #[doc = "The `writeBuffer()` method."]
469 #[doc = ""]
470 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
471 #[doc = ""]
472 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
473 #[doc = ""]
474 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
475 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
476 pub fn write_buffer_with_u32_and_u8_slice_and_u32_and_u32(
477 this: &GpuQueue,
478 buffer: &GpuBuffer,
479 buffer_offset: u32,
480 data: &[u8],
481 data_offset: u32,
482 size: u32,
483 ) -> Result<(), JsValue>;
484
485 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
486 #[doc = "The `writeBuffer()` method."]
487 #[doc = ""]
488 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
489 #[doc = ""]
490 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
491 #[doc = ""]
492 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
493 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
494 pub fn write_buffer_with_f64_and_u8_slice_and_u32_and_u32(
495 this: &GpuQueue,
496 buffer: &GpuBuffer,
497 buffer_offset: f64,
498 data: &[u8],
499 data_offset: u32,
500 size: u32,
501 ) -> Result<(), JsValue>;
502
503 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
504 #[doc = "The `writeBuffer()` method."]
505 #[doc = ""]
506 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
507 #[doc = ""]
508 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
509 #[doc = ""]
510 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
511 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
512 pub fn write_buffer_with_u32_and_u8_array_and_u32_and_u32(
513 this: &GpuQueue,
514 buffer: &GpuBuffer,
515 buffer_offset: u32,
516 data: &::js_sys::Uint8Array,
517 data_offset: u32,
518 size: u32,
519 ) -> Result<(), JsValue>;
520
521 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
522 #[doc = "The `writeBuffer()` method."]
523 #[doc = ""]
524 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
525 #[doc = ""]
526 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
527 #[doc = ""]
528 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
529 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
530 pub fn write_buffer_with_f64_and_u8_array_and_u32_and_u32(
531 this: &GpuQueue,
532 buffer: &GpuBuffer,
533 buffer_offset: f64,
534 data: &::js_sys::Uint8Array,
535 data_offset: u32,
536 size: u32,
537 ) -> Result<(), JsValue>;
538
539 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
540 #[doc = "The `writeBuffer()` method."]
541 #[doc = ""]
542 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
543 #[doc = ""]
544 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
545 #[doc = ""]
546 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
547 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
548 pub fn write_buffer_with_u32_and_buffer_source_and_f64_and_u32(
549 this: &GpuQueue,
550 buffer: &GpuBuffer,
551 buffer_offset: u32,
552 data: &::js_sys::Object,
553 data_offset: f64,
554 size: u32,
555 ) -> Result<(), JsValue>;
556
557 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
558 #[doc = "The `writeBuffer()` method."]
559 #[doc = ""]
560 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
561 #[doc = ""]
562 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
563 #[doc = ""]
564 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
565 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
566 pub fn write_buffer_with_f64_and_buffer_source_and_f64_and_u32(
567 this: &GpuQueue,
568 buffer: &GpuBuffer,
569 buffer_offset: f64,
570 data: &::js_sys::Object,
571 data_offset: f64,
572 size: u32,
573 ) -> Result<(), JsValue>;
574
575 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
576 #[doc = "The `writeBuffer()` method."]
577 #[doc = ""]
578 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
579 #[doc = ""]
580 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
581 #[doc = ""]
582 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
583 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
584 pub fn write_buffer_with_u32_and_u8_slice_and_f64_and_u32(
585 this: &GpuQueue,
586 buffer: &GpuBuffer,
587 buffer_offset: u32,
588 data: &[u8],
589 data_offset: f64,
590 size: u32,
591 ) -> Result<(), JsValue>;
592
593 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
594 #[doc = "The `writeBuffer()` method."]
595 #[doc = ""]
596 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
597 #[doc = ""]
598 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
599 #[doc = ""]
600 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
601 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
602 pub fn write_buffer_with_f64_and_u8_slice_and_f64_and_u32(
603 this: &GpuQueue,
604 buffer: &GpuBuffer,
605 buffer_offset: f64,
606 data: &[u8],
607 data_offset: f64,
608 size: u32,
609 ) -> Result<(), JsValue>;
610
611 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
612 #[doc = "The `writeBuffer()` method."]
613 #[doc = ""]
614 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
615 #[doc = ""]
616 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
617 #[doc = ""]
618 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
619 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
620 pub fn write_buffer_with_u32_and_u8_array_and_f64_and_u32(
621 this: &GpuQueue,
622 buffer: &GpuBuffer,
623 buffer_offset: u32,
624 data: &::js_sys::Uint8Array,
625 data_offset: f64,
626 size: u32,
627 ) -> Result<(), JsValue>;
628
629 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
630 #[doc = "The `writeBuffer()` method."]
631 #[doc = ""]
632 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
633 #[doc = ""]
634 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
635 #[doc = ""]
636 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
637 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
638 pub fn write_buffer_with_f64_and_u8_array_and_f64_and_u32(
639 this: &GpuQueue,
640 buffer: &GpuBuffer,
641 buffer_offset: f64,
642 data: &::js_sys::Uint8Array,
643 data_offset: f64,
644 size: u32,
645 ) -> Result<(), JsValue>;
646
647 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
648 #[doc = "The `writeBuffer()` method."]
649 #[doc = ""]
650 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
651 #[doc = ""]
652 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
653 #[doc = ""]
654 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
655 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
656 pub fn write_buffer_with_u32_and_buffer_source_and_u32_and_f64(
657 this: &GpuQueue,
658 buffer: &GpuBuffer,
659 buffer_offset: u32,
660 data: &::js_sys::Object,
661 data_offset: u32,
662 size: f64,
663 ) -> Result<(), JsValue>;
664
665 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
666 #[doc = "The `writeBuffer()` method."]
667 #[doc = ""]
668 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
669 #[doc = ""]
670 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
671 #[doc = ""]
672 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
673 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
674 pub fn write_buffer_with_f64_and_buffer_source_and_u32_and_f64(
675 this: &GpuQueue,
676 buffer: &GpuBuffer,
677 buffer_offset: f64,
678 data: &::js_sys::Object,
679 data_offset: u32,
680 size: f64,
681 ) -> Result<(), JsValue>;
682
683 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
684 #[doc = "The `writeBuffer()` method."]
685 #[doc = ""]
686 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
687 #[doc = ""]
688 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `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://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
692 pub fn write_buffer_with_u32_and_u8_slice_and_u32_and_f64(
693 this: &GpuQueue,
694 buffer: &GpuBuffer,
695 buffer_offset: u32,
696 data: &[u8],
697 data_offset: u32,
698 size: f64,
699 ) -> Result<(), JsValue>;
700
701 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
702 #[doc = "The `writeBuffer()` method."]
703 #[doc = ""]
704 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
705 #[doc = ""]
706 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
707 #[doc = ""]
708 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
709 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
710 pub fn write_buffer_with_f64_and_u8_slice_and_u32_and_f64(
711 this: &GpuQueue,
712 buffer: &GpuBuffer,
713 buffer_offset: f64,
714 data: &[u8],
715 data_offset: u32,
716 size: f64,
717 ) -> Result<(), JsValue>;
718
719 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
720 #[doc = "The `writeBuffer()` method."]
721 #[doc = ""]
722 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
723 #[doc = ""]
724 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
725 #[doc = ""]
726 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
727 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
728 pub fn write_buffer_with_u32_and_u8_array_and_u32_and_f64(
729 this: &GpuQueue,
730 buffer: &GpuBuffer,
731 buffer_offset: u32,
732 data: &::js_sys::Uint8Array,
733 data_offset: u32,
734 size: f64,
735 ) -> Result<(), JsValue>;
736
737 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
738 #[doc = "The `writeBuffer()` method."]
739 #[doc = ""]
740 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
741 #[doc = ""]
742 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
743 #[doc = ""]
744 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
745 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
746 pub fn write_buffer_with_f64_and_u8_array_and_u32_and_f64(
747 this: &GpuQueue,
748 buffer: &GpuBuffer,
749 buffer_offset: f64,
750 data: &::js_sys::Uint8Array,
751 data_offset: u32,
752 size: f64,
753 ) -> Result<(), JsValue>;
754
755 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
756 #[doc = "The `writeBuffer()` method."]
757 #[doc = ""]
758 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
759 #[doc = ""]
760 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
761 #[doc = ""]
762 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
763 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
764 pub fn write_buffer_with_u32_and_buffer_source_and_f64_and_f64(
765 this: &GpuQueue,
766 buffer: &GpuBuffer,
767 buffer_offset: u32,
768 data: &::js_sys::Object,
769 data_offset: f64,
770 size: f64,
771 ) -> Result<(), JsValue>;
772
773 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
774 #[doc = "The `writeBuffer()` method."]
775 #[doc = ""]
776 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
777 #[doc = ""]
778 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
779 #[doc = ""]
780 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
781 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
782 pub fn write_buffer_with_f64_and_buffer_source_and_f64_and_f64(
783 this: &GpuQueue,
784 buffer: &GpuBuffer,
785 buffer_offset: f64,
786 data: &::js_sys::Object,
787 data_offset: f64,
788 size: f64,
789 ) -> Result<(), JsValue>;
790
791 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
792 #[doc = "The `writeBuffer()` method."]
793 #[doc = ""]
794 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
795 #[doc = ""]
796 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
797 #[doc = ""]
798 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
799 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
800 pub fn write_buffer_with_u32_and_u8_slice_and_f64_and_f64(
801 this: &GpuQueue,
802 buffer: &GpuBuffer,
803 buffer_offset: u32,
804 data: &[u8],
805 data_offset: f64,
806 size: f64,
807 ) -> Result<(), JsValue>;
808
809 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
810 #[doc = "The `writeBuffer()` method."]
811 #[doc = ""]
812 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
813 #[doc = ""]
814 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
815 #[doc = ""]
816 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
817 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
818 pub fn write_buffer_with_f64_and_u8_slice_and_f64_and_f64(
819 this: &GpuQueue,
820 buffer: &GpuBuffer,
821 buffer_offset: f64,
822 data: &[u8],
823 data_offset: f64,
824 size: f64,
825 ) -> Result<(), JsValue>;
826
827 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
828 #[doc = "The `writeBuffer()` method."]
829 #[doc = ""]
830 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
831 #[doc = ""]
832 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
833 #[doc = ""]
834 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
835 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
836 pub fn write_buffer_with_u32_and_u8_array_and_f64_and_f64(
837 this: &GpuQueue,
838 buffer: &GpuBuffer,
839 buffer_offset: u32,
840 data: &::js_sys::Uint8Array,
841 data_offset: f64,
842 size: f64,
843 ) -> Result<(), JsValue>;
844
845 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeBuffer")]
846 #[doc = "The `writeBuffer()` method."]
847 #[doc = ""]
848 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeBuffer)"]
849 #[doc = ""]
850 #[doc = "*This API requires the following crate features to be activated: `GpuBuffer`, `GpuQueue`*"]
851 #[doc = ""]
852 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
853 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
854 pub fn write_buffer_with_f64_and_u8_array_and_f64_and_f64(
855 this: &GpuQueue,
856 buffer: &GpuBuffer,
857 buffer_offset: f64,
858 data: &::js_sys::Uint8Array,
859 data_offset: f64,
860 size: f64,
861 ) -> Result<(), JsValue>;
862
863 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeTexture")]
864 #[doc = "The `writeTexture()` method."]
865 #[doc = ""]
866 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"]
867 #[doc = ""]
868 #[doc = "*This API requires the following crate features to be activated: `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"]
869 #[doc = ""]
870 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
871 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
872 pub fn write_texture_with_buffer_source_and_u32_sequence(
873 this: &GpuQueue,
874 destination: &GpuTexelCopyTextureInfo,
875 data: &::js_sys::Object,
876 data_layout: &GpuTexelCopyBufferLayout,
877 size: &[::js_sys::Number],
878 ) -> Result<(), JsValue>;
879
880 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeTexture")]
881 #[doc = "The `writeTexture()` method."]
882 #[doc = ""]
883 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"]
884 #[doc = ""]
885 #[doc = "*This API requires the following crate features to be activated: `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"]
886 #[doc = ""]
887 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
888 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
889 pub fn write_texture_with_u8_slice_and_u32_sequence(
890 this: &GpuQueue,
891 destination: &GpuTexelCopyTextureInfo,
892 data: &[u8],
893 data_layout: &GpuTexelCopyBufferLayout,
894 size: &[::js_sys::Number],
895 ) -> Result<(), JsValue>;
896
897 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeTexture")]
898 #[doc = "The `writeTexture()` method."]
899 #[doc = ""]
900 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"]
901 #[doc = ""]
902 #[doc = "*This API requires the following crate features to be activated: `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"]
903 #[doc = ""]
904 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
905 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
906 pub fn write_texture_with_u8_array_and_u32_sequence(
907 this: &GpuQueue,
908 destination: &GpuTexelCopyTextureInfo,
909 data: &::js_sys::Uint8Array,
910 data_layout: &GpuTexelCopyBufferLayout,
911 size: &[::js_sys::Number],
912 ) -> Result<(), JsValue>;
913
914 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeTexture")]
915 #[doc = "The `writeTexture()` method."]
916 #[doc = ""]
917 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"]
918 #[doc = ""]
919 #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"]
920 #[doc = ""]
921 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
922 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
923 pub fn write_texture_with_buffer_source_and_gpu_extent_3d_dict(
924 this: &GpuQueue,
925 destination: &GpuTexelCopyTextureInfo,
926 data: &::js_sys::Object,
927 data_layout: &GpuTexelCopyBufferLayout,
928 size: &GpuExtent3dDict,
929 ) -> Result<(), JsValue>;
930
931 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeTexture")]
932 #[doc = "The `writeTexture()` method."]
933 #[doc = ""]
934 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"]
935 #[doc = ""]
936 #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"]
937 #[doc = ""]
938 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
939 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
940 pub fn write_texture_with_u8_slice_and_gpu_extent_3d_dict(
941 this: &GpuQueue,
942 destination: &GpuTexelCopyTextureInfo,
943 data: &[u8],
944 data_layout: &GpuTexelCopyBufferLayout,
945 size: &GpuExtent3dDict,
946 ) -> Result<(), JsValue>;
947
948 #[wasm_bindgen(catch, method, js_class = "GPUQueue", js_name = "writeTexture")]
949 #[doc = "The `writeTexture()` method."]
950 #[doc = ""]
951 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUQueue/writeTexture)"]
952 #[doc = ""]
953 #[doc = "*This API requires the following crate features to be activated: `GpuExtent3dDict`, `GpuQueue`, `GpuTexelCopyBufferLayout`, `GpuTexelCopyTextureInfo`*"]
954 #[doc = ""]
955 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
956 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
957 pub fn write_texture_with_u8_array_and_gpu_extent_3d_dict(
958 this: &GpuQueue,
959 destination: &GpuTexelCopyTextureInfo,
960 data: &::js_sys::Uint8Array,
961 data_layout: &GpuTexelCopyBufferLayout,
962 size: &GpuExtent3dDict,
963 ) -> Result<(), JsValue>;
964}