@@ -25,14 +25,14 @@ import {
2525 getDepthOrArrayLayersForViewDimension ,
2626 getTextureTypeForTextureViewDimension ,
2727 isPotentiallyFilterableAndFillable ,
28- isSupportedViewFormatCombo ,
2928 kCubeSamplePointMethods ,
3029 kSamplePointMethods ,
3130 kShortAddressModes ,
3231 kShortAddressModeToAddressMode ,
3332 kShortShaderStages ,
3433 SamplePointMethods ,
3534 skipIfTextureFormatNotSupportedOrNeedsFilteringAndIsUnfilterable ,
35+ skipIfTextureViewAndFormatNotCompatibleForDevice ,
3636 TextureCall ,
3737 vec2 ,
3838 vec3 ,
@@ -385,7 +385,6 @@ Parameters:
385385 . combine ( 'format' , kAllTextureFormats )
386386 . filter ( t => isPotentiallyFilterableAndFillable ( t . format ) )
387387 . combine ( 'dim' , [ '3d' , 'cube' ] as const )
388- . filter ( t => isSupportedViewFormatCombo ( t . format , t . dim ) )
389388 . combine ( 'filt' , [ 'nearest' , 'linear' ] as const )
390389 . filter ( t => t . filt === 'nearest' || isTextureFormatPossiblyFilterableAsTextureF32 ( t . format ) )
391390 . combine ( 'mode' , kShortAddressModes )
@@ -406,6 +405,7 @@ Parameters:
406405 offset,
407406 } = t . params ;
408407 skipIfTextureFormatNotSupportedOrNeedsFilteringAndIsUnfilterable ( t , minFilter , format ) ;
408+ skipIfTextureViewAndFormatNotCompatibleForDevice ( t , format , viewDimension ) ;
409409
410410 const [ width , height ] = chooseTextureSize ( { minSize : 32 , minBlocks : 2 , format, viewDimension } ) ;
411411 const depthOrArrayLayers = getDepthOrArrayLayersForViewDimension ( viewDimension ) ;
@@ -496,7 +496,6 @@ baseMipLevel, lodMinClamp, and lodMaxClamp, with an dwithout filtering.
496496 . combine ( 'format' , kAllTextureFormats )
497497 . filter ( t => isPotentiallyFilterableAndFillable ( t . format ) )
498498 . combine ( 'dim' , [ '3d' , 'cube' ] as const )
499- . filter ( t => isSupportedViewFormatCombo ( t . format , t . dim ) )
500499 . combine ( 'filt' , [ 'nearest' , 'linear' ] as const )
501500 . filter ( t => t . filt === 'nearest' || isTextureFormatPossiblyFilterableAsTextureF32 ( t . format ) )
502501 . beginSubcases ( )
@@ -522,6 +521,7 @@ baseMipLevel, lodMinClamp, and lodMaxClamp, with an dwithout filtering.
522521 lodMinClamp,
523522 } = t . params ;
524523 skipIfTextureFormatNotSupportedOrNeedsFilteringAndIsUnfilterable ( t , minFilter , format ) ;
524+ skipIfTextureViewAndFormatNotCompatibleForDevice ( t , format , viewDimension ) ;
525525
526526 const [ width , height ] = chooseTextureSize ( { minSize : 32 , minBlocks : 2 , format, viewDimension } ) ;
527527 const depthOrArrayLayers = getDepthOrArrayLayersForViewDimension ( viewDimension ) ;
0 commit comments