@@ -417,56 +417,56 @@ pub(crate) struct GPUVertexAttribute {
417
417
#[ derive( WebIDL ) ]
418
418
#[ webidl( enum ) ]
419
419
pub ( crate ) enum GPUVertexFormat {
420
- // #[webidl(rename = "uint8")]
421
- // Uint8,
420
+ #[ webidl( rename = "uint8" ) ]
421
+ Uint8 ,
422
422
#[ webidl( rename = "uint8x2" ) ]
423
423
Uint8x2 ,
424
424
#[ webidl( rename = "uint8x4" ) ]
425
425
Uint8x4 ,
426
- // #[webidl(rename = "sint8")]
427
- // Sint8,
426
+ #[ webidl( rename = "sint8" ) ]
427
+ Sint8 ,
428
428
#[ webidl( rename = "sint8x2" ) ]
429
429
Sint8x2 ,
430
430
#[ webidl( rename = "sint8x4" ) ]
431
431
Sint8x4 ,
432
- // #[webidl(rename = "unorm8")]
433
- // Unorm8,
432
+ #[ webidl( rename = "unorm8" ) ]
433
+ Unorm8 ,
434
434
#[ webidl( rename = "unorm8x2" ) ]
435
435
Unorm8x2 ,
436
436
#[ webidl( rename = "unorm8x4" ) ]
437
437
Unorm8x4 ,
438
- // #[webidl(rename = "snorm8")]
439
- // Snorm8,
438
+ #[ webidl( rename = "snorm8" ) ]
439
+ Snorm8 ,
440
440
#[ webidl( rename = "snorm8x2" ) ]
441
441
Snorm8x2 ,
442
442
#[ webidl( rename = "snorm8x4" ) ]
443
443
Snorm8x4 ,
444
- // #[webidl(rename = "uint16")]
445
- // Uint16,
444
+ #[ webidl( rename = "uint16" ) ]
445
+ Uint16 ,
446
446
#[ webidl( rename = "uint16x2" ) ]
447
447
Uint16x2 ,
448
448
#[ webidl( rename = "uint16x4" ) ]
449
449
Uint16x4 ,
450
- // #[webidl(rename = "sint16")]
451
- // Sint16,
450
+ #[ webidl( rename = "sint16" ) ]
451
+ Sint16 ,
452
452
#[ webidl( rename = "sint16x2" ) ]
453
453
Sint16x2 ,
454
454
#[ webidl( rename = "sint16x4" ) ]
455
455
Sint16x4 ,
456
- // #[webidl(rename = "unorm16")]
457
- // Unorm16,
456
+ #[ webidl( rename = "unorm16" ) ]
457
+ Unorm16 ,
458
458
#[ webidl( rename = "unorm16x2" ) ]
459
459
Unorm16x2 ,
460
460
#[ webidl( rename = "unorm16x4" ) ]
461
461
Unorm16x4 ,
462
- // #[webidl(rename = "snorm16")]
463
- // Snorm16,
462
+ #[ webidl( rename = "snorm16" ) ]
463
+ Snorm16 ,
464
464
#[ webidl( rename = "snorm16x2" ) ]
465
465
Snorm16x2 ,
466
466
#[ webidl( rename = "snorm16x4" ) ]
467
467
Snorm16x4 ,
468
- // #[webidl(rename = "float16")]
469
- // Float16,
468
+ #[ webidl( rename = "float16" ) ]
469
+ Float16 ,
470
470
#[ webidl( rename = "float16x2" ) ]
471
471
Float16x2 ,
472
472
#[ webidl( rename = "float16x4" ) ]
@@ -497,38 +497,38 @@ pub(crate) enum GPUVertexFormat {
497
497
Sint32x4 ,
498
498
#[ webidl( rename = "unorm10-10-10-2" ) ]
499
499
Unorm1010102 ,
500
- // #[webidl(rename = "unorm8x4-bgra")]
501
- // Unorm8x4Bgra,
500
+ #[ webidl( rename = "unorm8x4-bgra" ) ]
501
+ Unorm8x4Bgra ,
502
502
}
503
503
504
504
impl From < GPUVertexFormat > for wgpu_types:: VertexFormat {
505
505
fn from ( value : GPUVertexFormat ) -> Self {
506
506
match value {
507
- // GPUVertexFormat::Uint8 => Self::Uint8,
507
+ GPUVertexFormat :: Uint8 => Self :: Uint8 ,
508
508
GPUVertexFormat :: Uint8x2 => Self :: Uint8x2 ,
509
509
GPUVertexFormat :: Uint8x4 => Self :: Uint8x4 ,
510
- // GPUVertexFormat::Sint8 => Self::Sint8,
510
+ GPUVertexFormat :: Sint8 => Self :: Sint8 ,
511
511
GPUVertexFormat :: Sint8x2 => Self :: Sint8x2 ,
512
512
GPUVertexFormat :: Sint8x4 => Self :: Sint8x4 ,
513
- // GPUVertexFormat::Unorm8 => Self::Unorm8,
513
+ GPUVertexFormat :: Unorm8 => Self :: Unorm8 ,
514
514
GPUVertexFormat :: Unorm8x2 => Self :: Unorm8x2 ,
515
515
GPUVertexFormat :: Unorm8x4 => Self :: Unorm8x4 ,
516
- // GPUVertexFormat::Snorm8 => Self::Snorm8,
516
+ GPUVertexFormat :: Snorm8 => Self :: Snorm8 ,
517
517
GPUVertexFormat :: Snorm8x2 => Self :: Snorm8x2 ,
518
518
GPUVertexFormat :: Snorm8x4 => Self :: Snorm8x4 ,
519
- // GPUVertexFormat::Uint16 => Self::Uint16,
519
+ GPUVertexFormat :: Uint16 => Self :: Uint16 ,
520
520
GPUVertexFormat :: Uint16x2 => Self :: Uint16x2 ,
521
521
GPUVertexFormat :: Uint16x4 => Self :: Uint16x4 ,
522
- // GPUVertexFormat::Sint16 => Self::Sint16,
522
+ GPUVertexFormat :: Sint16 => Self :: Sint16 ,
523
523
GPUVertexFormat :: Sint16x2 => Self :: Sint16x2 ,
524
524
GPUVertexFormat :: Sint16x4 => Self :: Sint16x4 ,
525
- // GPUVertexFormat::Unorm16 => Self::Unorm16,
525
+ GPUVertexFormat :: Unorm16 => Self :: Unorm16 ,
526
526
GPUVertexFormat :: Unorm16x2 => Self :: Unorm16x2 ,
527
527
GPUVertexFormat :: Unorm16x4 => Self :: Unorm16x4 ,
528
- // GPUVertexFormat::Snorm16 => Self::Snorm16,
528
+ GPUVertexFormat :: Snorm16 => Self :: Snorm16 ,
529
529
GPUVertexFormat :: Snorm16x2 => Self :: Snorm16x2 ,
530
530
GPUVertexFormat :: Snorm16x4 => Self :: Snorm16x4 ,
531
- // GPUVertexFormat::Float16 => Self::Float16,
531
+ GPUVertexFormat :: Float16 => Self :: Float16 ,
532
532
GPUVertexFormat :: Float16x2 => Self :: Float16x2 ,
533
533
GPUVertexFormat :: Float16x4 => Self :: Float16x4 ,
534
534
GPUVertexFormat :: Float32 => Self :: Float32 ,
@@ -544,7 +544,7 @@ impl From<GPUVertexFormat> for wgpu_types::VertexFormat {
544
544
GPUVertexFormat :: Sint32x3 => Self :: Sint32x3 ,
545
545
GPUVertexFormat :: Sint32x4 => Self :: Sint32x4 ,
546
546
GPUVertexFormat :: Unorm1010102 => Self :: Unorm10_10_10_2 ,
547
- // GPUVertexFormat::Unorm8x4Bgra => Self::Unorm8x4Bgra,
547
+ GPUVertexFormat :: Unorm8x4Bgra => Self :: Unorm8x4Bgra ,
548
548
}
549
549
}
550
550
}
0 commit comments