@@ -24,11 +24,11 @@ import {
24
24
texBindingTypeInfo ,
25
25
} from '../../capability_info.js' ;
26
26
import { GPUConst } from '../../constants.js' ;
27
- import { kAllTextureFormats , kTextureFormatInfo } from '../../format_info.js' ;
28
- import { kResourceStates , MaxLimitsTestMixin } from '../../gpu_test.js' ;
27
+ import { kPossibleStorageTextureFormats } from '../../format_info.js' ;
28
+ import { kResourceStates } from '../../gpu_test.js' ;
29
29
import { getTextureDimensionFromView } from '../../util/texture/base.js' ;
30
30
31
- import { ValidationTest } from './validation_test.js' ;
31
+ import { AllFeaturesMaxLimitsValidationTest } from './validation_test.js' ;
32
32
33
33
const kTestFormat : GPUTextureFormat = 'r32float' ;
34
34
@@ -37,7 +37,7 @@ function clone<T extends GPUTextureDescriptor>(descriptor: T): T {
37
37
}
38
38
39
39
function skipIfResourceNotSupportedInStages (
40
- t : ValidationTest ,
40
+ t : AllFeaturesMaxLimitsValidationTest ,
41
41
entry : BGLEntry ,
42
42
visibility : number
43
43
) {
@@ -69,9 +69,7 @@ function skipIfResourceNotSupportedInStages(
69
69
}
70
70
}
71
71
72
- export const g = makeTestGroup ( MaxLimitsTestMixin ( ValidationTest ) ) ;
73
-
74
- const kStorageTextureFormats = kAllTextureFormats . filter ( f => kTextureFormatInfo [ f ] . color ?. storage ) ;
72
+ export const g = makeTestGroup ( AllFeaturesMaxLimitsValidationTest ) ;
75
73
76
74
g . test ( 'binding_count_mismatch' )
77
75
. desc ( 'Test that the number of entries must match the number of entries in the BindGroupLayout.' )
@@ -871,15 +869,12 @@ g.test('storage_texture,format')
871
869
)
872
870
. params ( u =>
873
871
u //
874
- . combine ( 'storageTextureFormat' , kStorageTextureFormats )
875
- . combine ( 'resourceFormat' , kStorageTextureFormats )
872
+ . combine ( 'storageTextureFormat' , kPossibleStorageTextureFormats )
873
+ . combine ( 'resourceFormat' , kPossibleStorageTextureFormats )
876
874
)
877
- . beforeAllSubcases ( t => {
878
- const { storageTextureFormat, resourceFormat } = t . params ;
879
- t . skipIfTextureFormatNotUsableAsStorageTextureDeprecated ( storageTextureFormat , resourceFormat ) ;
880
- } )
881
875
. fn ( t => {
882
876
const { storageTextureFormat, resourceFormat } = t . params ;
877
+ t . skipIfTextureFormatNotUsableAsStorageTexture ( storageTextureFormat , resourceFormat ) ;
883
878
884
879
const bindGroupLayout = t . device . createBindGroupLayout ( {
885
880
entries : [
0 commit comments