File tree Expand file tree Collapse file tree
src/webgpu/api/operation/adapter Expand file tree Collapse file tree 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.
1515` ;
1616
1717import { Fixture } from '../../../../common/framework/fixture.js' ;
18+ import { globalTestConfig } from '../../../../common/framework/test_config.js' ;
1819import { makeTestGroup } from '../../../../common/framework/test_group.js' ;
1920import { getGPU } from '../../../../common/util/navigator_gpu.js' ;
2021import { assert , objectEquals , iterRange } from '../../../../common/util/util.js' ;
@@ -132,6 +133,11 @@ g.test('requestAdapter_invalid_featureLevel')
132133 . params ( u => u . combine ( 'featureLevel' , [ ...validFeatureLevels , ...invalidFeatureLevels ] ) )
133134 . fn ( async t => {
134135 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+
135141 const adapter = await getGPU ( t . rec ) . requestAdapter ( { featureLevel } ) ;
136142
137143 if ( ! validFeatureLevels . includes ( featureLevel ) ) {
You can’t perform that action at this time.
0 commit comments