@@ -394,6 +394,8 @@ pub enum GPUFeatureName {
394394 Bgra8unormStorage ,
395395 #[ webidl( rename = "float32-filterable" ) ]
396396 Float32Filterable ,
397+ #[ webidl( rename = "clip-distances" ) ]
398+ ClipDistances ,
397399 #[ webidl( rename = "dual-source-blending" ) ]
398400 DualSourceBlending ,
399401 #[ webidl( rename = "subgroups" ) ]
@@ -484,6 +486,7 @@ pub fn feature_names_to_features(
484486 GPUFeatureName :: Rg11b10ufloatRenderable => Features :: RG11B10UFLOAT_RENDERABLE ,
485487 GPUFeatureName :: Bgra8unormStorage => Features :: BGRA8UNORM_STORAGE ,
486488 GPUFeatureName :: Float32Filterable => Features :: FLOAT32_FILTERABLE ,
489+ GPUFeatureName :: ClipDistances => Features :: CLIP_DISTANCES ,
487490 GPUFeatureName :: DualSourceBlending => Features :: DUAL_SOURCE_BLENDING ,
488491 GPUFeatureName :: Subgroups => Features :: SUBGROUP ,
489492 GPUFeatureName :: TextureFormat16BitNorm => Features :: TEXTURE_FORMAT_16BIT_NORM ,
@@ -572,6 +575,9 @@ pub fn features_to_feature_names(
572575 if features. contains ( wgpu_types:: Features :: FLOAT32_FILTERABLE ) {
573576 return_features. insert ( Float32Filterable ) ;
574577 }
578+ if features. contains ( wgpu_types:: Features :: CLIP_DISTANCES ) {
579+ return_features. insert ( ClipDistances ) ;
580+ }
575581 if features. contains ( wgpu_types:: Features :: DUAL_SOURCE_BLENDING ) {
576582 return_features. insert ( DualSourceBlending ) ;
577583 }
0 commit comments