File tree 1 file changed +6
-0
lines changed
src/webgpu/api/operation/adapter
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ values and then checks the result to test the adapter for basic functionality.
15
15
` ;
16
16
17
17
import { Fixture } from '../../../../common/framework/fixture.js' ;
18
+ import { globalTestConfig } from '../../../../common/framework/test_config.js' ;
18
19
import { makeTestGroup } from '../../../../common/framework/test_group.js' ;
19
20
import { getGPU } from '../../../../common/util/navigator_gpu.js' ;
20
21
import { assert , objectEquals , iterRange } from '../../../../common/util/util.js' ;
@@ -132,6 +133,11 @@ g.test('requestAdapter_invalid_featureLevel')
132
133
. params ( u => u . combine ( 'featureLevel' , [ ...validFeatureLevels , ...invalidFeatureLevels ] ) )
133
134
. fn ( async t => {
134
135
const { featureLevel } = t . params ;
136
+ t . skipIf (
137
+ globalTestConfig . compatibility && ( featureLevel === undefined || featureLevel === 'core' ) ,
138
+ 'core adapters are not available in compat-only'
139
+ ) ;
140
+
135
141
const adapter = await getGPU ( t . rec ) . requestAdapter ( { featureLevel } ) ;
136
142
137
143
if ( ! validFeatureLevels . includes ( featureLevel ) ) {
You can’t perform that action at this time.
0 commit comments