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