File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -920,11 +920,9 @@ impl TextureFormat {
920920
921921 // Features that enable filtering don't affect blendability
922922 let sample_type2 = self . sample_type ( None , None ) ;
923- let is_blendable = matches ! (
924- sample_type2,
925- Some ( TextureSampleType :: Float { filterable: true } )
926- ) || device_features. contains ( Features :: FLOAT32_BLENDABLE )
927- && matches ! ( self , Self :: R32Float | Self :: Rg32Float | Self :: Rgba32Float ) ;
923+ let is_blendable = sample_type2 == Some ( TextureSampleType :: Float { filterable : true } )
924+ || device_features. contains ( Features :: FLOAT32_BLENDABLE )
925+ && matches ! ( self , Self :: R32Float | Self :: Rg32Float | Self :: Rgba32Float ) ;
928926
929927 flags. set ( TextureFormatFeatureFlags :: FILTERABLE , is_filterable) ;
930928 flags. set ( TextureFormatFeatureFlags :: BLENDABLE , is_blendable) ;
You can’t perform that action at this time.
0 commit comments