diff options
Diffstat (limited to 'dom/webgpu/tests/cts/checkout/src/common/framework/test_config.ts')
-rw-r--r-- | dom/webgpu/tests/cts/checkout/src/common/framework/test_config.ts | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/dom/webgpu/tests/cts/checkout/src/common/framework/test_config.ts b/dom/webgpu/tests/cts/checkout/src/common/framework/test_config.ts new file mode 100644 index 0000000000..2575418299 --- /dev/null +++ b/dom/webgpu/tests/cts/checkout/src/common/framework/test_config.ts @@ -0,0 +1,32 @@ +export type TestConfig = { + maxSubcasesInFlight: number; + testHeartbeatCallback: () => void; + noRaceWithRejectOnTimeout: boolean; + + /** + * Logger for debug messages from the test framework + * (that can't be captured in the logs of a test). + */ + frameworkDebugLog?: (msg: string) => void; + + /** + * Controls the emission of loops in constant-evaluation shaders under + * 'webgpu:shader,execution,expression,*' + * FXC is extremely slow to compile shaders with loops unrolled, where as the + * MSL compiler is extremely slow to compile with loops rolled. + */ + unrollConstEvalLoops: boolean; + + /** + * Whether or not we're running in compatibility mode. + */ + compatibility: boolean; +}; + +export const globalTestConfig: TestConfig = { + maxSubcasesInFlight: 500, + testHeartbeatCallback: () => {}, + noRaceWithRejectOnTimeout: false, + unrollConstEvalLoops: false, + compatibility: false, +}; |