blob: 6d394f998cda358b9b1ec84d2fd50733ea13d0d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
import { kMaximumLimitBaseParams, makeLimitTestGroup } from './limit_utils.js';
const limit = 'maxComputeWorkgroupSizeX';
export const { g, description } = makeLimitTestGroup(limit);
g.test('createComputePipeline,at_over')
.desc(`Test using createComputePipeline(Async) at and over ${limit} limit`)
.params(kMaximumLimitBaseParams.combine('async', [false, true] as const))
.fn(async t => {
const { limitTest, testValueName, async } = t.params;
await t.testMaxComputeWorkgroupSize(limitTest, testValueName, async, 'X');
});
g.test('validate,maxComputeInvocationsPerWorkgroup')
.desc(`Test that ${limit} <= maxComputeInvocationsPerWorkgroup`)
.fn(t => {
const { adapter, defaultLimit, adapterLimit } = t;
t.expect(defaultLimit <= t.getDefaultLimit('maxComputeInvocationsPerWorkgroup'));
t.expect(adapterLimit <= adapter.limits.maxComputeInvocationsPerWorkgroup);
});
|