@@ -189,7 +189,7 @@ extern "C" {
189
189
) ;
190
190
#[ cfg( web_sys_unstable_apis) ]
191
191
#[ cfg( feature = "GpuBuffer" ) ]
192
- # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer) ]
192
+ # [ wasm_bindgen ( catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer) ]
193
193
#[ doc = "The `copyBufferToBuffer()` method." ]
194
194
#[ doc = "" ]
195
195
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)" ]
@@ -205,10 +205,10 @@ extern "C" {
205
205
destination : & GpuBuffer ,
206
206
destination_offset : u32 ,
207
207
size : u32 ,
208
- ) ;
208
+ ) -> Result < ( ) , JsValue > ;
209
209
#[ cfg( web_sys_unstable_apis) ]
210
210
#[ cfg( feature = "GpuBuffer" ) ]
211
- # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer) ]
211
+ # [ wasm_bindgen ( catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer) ]
212
212
#[ doc = "The `copyBufferToBuffer()` method." ]
213
213
#[ doc = "" ]
214
214
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)" ]
@@ -224,10 +224,10 @@ extern "C" {
224
224
destination : & GpuBuffer ,
225
225
destination_offset : u32 ,
226
226
size : u32 ,
227
- ) ;
227
+ ) -> Result < ( ) , JsValue > ;
228
228
#[ cfg( web_sys_unstable_apis) ]
229
229
#[ cfg( feature = "GpuBuffer" ) ]
230
- # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer) ]
230
+ # [ wasm_bindgen ( catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer) ]
231
231
#[ doc = "The `copyBufferToBuffer()` method." ]
232
232
#[ doc = "" ]
233
233
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)" ]
@@ -243,10 +243,10 @@ extern "C" {
243
243
destination : & GpuBuffer ,
244
244
destination_offset : f64 ,
245
245
size : u32 ,
246
- ) ;
246
+ ) -> Result < ( ) , JsValue > ;
247
247
#[ cfg( web_sys_unstable_apis) ]
248
248
#[ cfg( feature = "GpuBuffer" ) ]
249
- # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer) ]
249
+ # [ wasm_bindgen ( catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer) ]
250
250
#[ doc = "The `copyBufferToBuffer()` method." ]
251
251
#[ doc = "" ]
252
252
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)" ]
@@ -262,10 +262,10 @@ extern "C" {
262
262
destination : & GpuBuffer ,
263
263
destination_offset : f64 ,
264
264
size : u32 ,
265
- ) ;
265
+ ) -> Result < ( ) , JsValue > ;
266
266
#[ cfg( web_sys_unstable_apis) ]
267
267
#[ cfg( feature = "GpuBuffer" ) ]
268
- # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer) ]
268
+ # [ wasm_bindgen ( catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer) ]
269
269
#[ doc = "The `copyBufferToBuffer()` method." ]
270
270
#[ doc = "" ]
271
271
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)" ]
@@ -281,10 +281,10 @@ extern "C" {
281
281
destination : & GpuBuffer ,
282
282
destination_offset : u32 ,
283
283
size : f64 ,
284
- ) ;
284
+ ) -> Result < ( ) , JsValue > ;
285
285
#[ cfg( web_sys_unstable_apis) ]
286
286
#[ cfg( feature = "GpuBuffer" ) ]
287
- # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer) ]
287
+ # [ wasm_bindgen ( catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer) ]
288
288
#[ doc = "The `copyBufferToBuffer()` method." ]
289
289
#[ doc = "" ]
290
290
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)" ]
@@ -300,10 +300,10 @@ extern "C" {
300
300
destination : & GpuBuffer ,
301
301
destination_offset : u32 ,
302
302
size : f64 ,
303
- ) ;
303
+ ) -> Result < ( ) , JsValue > ;
304
304
#[ cfg( web_sys_unstable_apis) ]
305
305
#[ cfg( feature = "GpuBuffer" ) ]
306
- # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer) ]
306
+ # [ wasm_bindgen ( catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer) ]
307
307
#[ doc = "The `copyBufferToBuffer()` method." ]
308
308
#[ doc = "" ]
309
309
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)" ]
@@ -319,10 +319,10 @@ extern "C" {
319
319
destination : & GpuBuffer ,
320
320
destination_offset : f64 ,
321
321
size : f64 ,
322
- ) ;
322
+ ) -> Result < ( ) , JsValue > ;
323
323
#[ cfg( web_sys_unstable_apis) ]
324
324
#[ cfg( feature = "GpuBuffer" ) ]
325
- # [ wasm_bindgen ( method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer) ]
325
+ # [ wasm_bindgen ( catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToBuffer) ]
326
326
#[ doc = "The `copyBufferToBuffer()` method." ]
327
327
#[ doc = "" ]
328
328
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToBuffer)" ]
@@ -338,115 +338,121 @@ extern "C" {
338
338
destination : & GpuBuffer ,
339
339
destination_offset : f64 ,
340
340
size : f64 ,
341
- ) ;
341
+ ) -> Result < ( ) , JsValue > ;
342
342
#[ cfg( web_sys_unstable_apis) ]
343
- #[ cfg( all( feature = "GpuImageCopyBuffer" , feature = "GpuImageCopyTexture" , ) ) ]
343
+ #[ cfg( all(
344
+ feature = "GpuTexelCopyBufferInfo" ,
345
+ feature = "GpuTexelCopyTextureInfo" ,
346
+ ) ) ]
344
347
# [ wasm_bindgen ( catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToTexture) ]
345
348
#[ doc = "The `copyBufferToTexture()` method." ]
346
349
#[ doc = "" ]
347
350
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)" ]
348
351
#[ doc = "" ]
349
- #[ doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuImageCopyBuffer `, `GpuImageCopyTexture `*" ]
352
+ #[ doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuTexelCopyBufferInfo `, `GpuTexelCopyTextureInfo `*" ]
350
353
#[ doc = "" ]
351
354
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
352
355
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
353
356
pub fn copy_buffer_to_texture_with_u32_sequence (
354
357
this : & GpuCommandEncoder ,
355
- source : & GpuImageCopyBuffer ,
356
- destination : & GpuImageCopyTexture ,
358
+ source : & GpuTexelCopyBufferInfo ,
359
+ destination : & GpuTexelCopyTextureInfo ,
357
360
copy_size : & :: wasm_bindgen:: JsValue ,
358
361
) -> Result < ( ) , JsValue > ;
359
362
#[ cfg( web_sys_unstable_apis) ]
360
363
#[ cfg( all(
361
364
feature = "GpuExtent3dDict" ,
362
- feature = "GpuImageCopyBuffer " ,
363
- feature = "GpuImageCopyTexture " ,
365
+ feature = "GpuTexelCopyBufferInfo " ,
366
+ feature = "GpuTexelCopyTextureInfo " ,
364
367
) ) ]
365
368
# [ wasm_bindgen ( catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyBufferToTexture) ]
366
369
#[ doc = "The `copyBufferToTexture()` method." ]
367
370
#[ doc = "" ]
368
371
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyBufferToTexture)" ]
369
372
#[ doc = "" ]
370
- #[ doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuImageCopyBuffer `, `GpuImageCopyTexture `*" ]
373
+ #[ doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuTexelCopyBufferInfo `, `GpuTexelCopyTextureInfo `*" ]
371
374
#[ doc = "" ]
372
375
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
373
376
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
374
377
pub fn copy_buffer_to_texture_with_gpu_extent_3d_dict (
375
378
this : & GpuCommandEncoder ,
376
- source : & GpuImageCopyBuffer ,
377
- destination : & GpuImageCopyTexture ,
379
+ source : & GpuTexelCopyBufferInfo ,
380
+ destination : & GpuTexelCopyTextureInfo ,
378
381
copy_size : & GpuExtent3dDict ,
379
382
) -> Result < ( ) , JsValue > ;
380
383
#[ cfg( web_sys_unstable_apis) ]
381
- #[ cfg( all( feature = "GpuImageCopyBuffer" , feature = "GpuImageCopyTexture" , ) ) ]
384
+ #[ cfg( all(
385
+ feature = "GpuTexelCopyBufferInfo" ,
386
+ feature = "GpuTexelCopyTextureInfo" ,
387
+ ) ) ]
382
388
# [ wasm_bindgen ( catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToBuffer) ]
383
389
#[ doc = "The `copyTextureToBuffer()` method." ]
384
390
#[ doc = "" ]
385
391
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)" ]
386
392
#[ doc = "" ]
387
- #[ doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuImageCopyBuffer `, `GpuImageCopyTexture `*" ]
393
+ #[ doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuTexelCopyBufferInfo `, `GpuTexelCopyTextureInfo `*" ]
388
394
#[ doc = "" ]
389
395
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
390
396
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
391
397
pub fn copy_texture_to_buffer_with_u32_sequence (
392
398
this : & GpuCommandEncoder ,
393
- source : & GpuImageCopyTexture ,
394
- destination : & GpuImageCopyBuffer ,
399
+ source : & GpuTexelCopyTextureInfo ,
400
+ destination : & GpuTexelCopyBufferInfo ,
395
401
copy_size : & :: wasm_bindgen:: JsValue ,
396
402
) -> Result < ( ) , JsValue > ;
397
403
#[ cfg( web_sys_unstable_apis) ]
398
404
#[ cfg( all(
399
405
feature = "GpuExtent3dDict" ,
400
- feature = "GpuImageCopyBuffer " ,
401
- feature = "GpuImageCopyTexture " ,
406
+ feature = "GpuTexelCopyBufferInfo " ,
407
+ feature = "GpuTexelCopyTextureInfo " ,
402
408
) ) ]
403
409
# [ wasm_bindgen ( catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToBuffer) ]
404
410
#[ doc = "The `copyTextureToBuffer()` method." ]
405
411
#[ doc = "" ]
406
412
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToBuffer)" ]
407
413
#[ doc = "" ]
408
- #[ doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuImageCopyBuffer `, `GpuImageCopyTexture `*" ]
414
+ #[ doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuTexelCopyBufferInfo `, `GpuTexelCopyTextureInfo `*" ]
409
415
#[ doc = "" ]
410
416
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
411
417
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
412
418
pub fn copy_texture_to_buffer_with_gpu_extent_3d_dict (
413
419
this : & GpuCommandEncoder ,
414
- source : & GpuImageCopyTexture ,
415
- destination : & GpuImageCopyBuffer ,
420
+ source : & GpuTexelCopyTextureInfo ,
421
+ destination : & GpuTexelCopyBufferInfo ,
416
422
copy_size : & GpuExtent3dDict ,
417
423
) -> Result < ( ) , JsValue > ;
418
424
#[ cfg( web_sys_unstable_apis) ]
419
- #[ cfg( feature = "GpuImageCopyTexture " ) ]
425
+ #[ cfg( feature = "GpuTexelCopyTextureInfo " ) ]
420
426
# [ wasm_bindgen ( catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToTexture) ]
421
427
#[ doc = "The `copyTextureToTexture()` method." ]
422
428
#[ doc = "" ]
423
429
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)" ]
424
430
#[ doc = "" ]
425
- #[ doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuImageCopyTexture `*" ]
431
+ #[ doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuTexelCopyTextureInfo `*" ]
426
432
#[ doc = "" ]
427
433
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
428
434
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
429
435
pub fn copy_texture_to_texture_with_u32_sequence (
430
436
this : & GpuCommandEncoder ,
431
- source : & GpuImageCopyTexture ,
432
- destination : & GpuImageCopyTexture ,
437
+ source : & GpuTexelCopyTextureInfo ,
438
+ destination : & GpuTexelCopyTextureInfo ,
433
439
copy_size : & :: wasm_bindgen:: JsValue ,
434
440
) -> Result < ( ) , JsValue > ;
435
441
#[ cfg( web_sys_unstable_apis) ]
436
- #[ cfg( all( feature = "GpuExtent3dDict" , feature = "GpuImageCopyTexture " , ) ) ]
442
+ #[ cfg( all( feature = "GpuExtent3dDict" , feature = "GpuTexelCopyTextureInfo " , ) ) ]
437
443
# [ wasm_bindgen ( catch , method , structural , js_class = "GPUCommandEncoder" , js_name = copyTextureToTexture) ]
438
444
#[ doc = "The `copyTextureToTexture()` method." ]
439
445
#[ doc = "" ]
440
446
#[ doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUCommandEncoder/copyTextureToTexture)" ]
441
447
#[ doc = "" ]
442
- #[ doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuImageCopyTexture `*" ]
448
+ #[ doc = "*This API requires the following crate features to be activated: `GpuCommandEncoder`, `GpuExtent3dDict`, `GpuTexelCopyTextureInfo `*" ]
443
449
#[ doc = "" ]
444
450
#[ doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as" ]
445
451
#[ doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*" ]
446
452
pub fn copy_texture_to_texture_with_gpu_extent_3d_dict (
447
453
this : & GpuCommandEncoder ,
448
- source : & GpuImageCopyTexture ,
449
- destination : & GpuImageCopyTexture ,
454
+ source : & GpuTexelCopyTextureInfo ,
455
+ destination : & GpuTexelCopyTextureInfo ,
450
456
copy_size : & GpuExtent3dDict ,
451
457
) -> Result < ( ) , JsValue > ;
452
458
#[ cfg( web_sys_unstable_apis) ]
0 commit comments