Files
firefox/testing/web-platform/tests/webgpu/framework/gpu/implementation.js
T
Kai Ninomiya fbe2119366 Bug 1573718 [wpt PR 18414] - Add and run the WebGPU CTS under WPT, a=testonly
Automatic update from web-platform-tests
Add and run the WebGPU CTS under WPT

This adds a build of the WebGPU CTS (https://github.com/gpuweb/cts) to WPT.
(The version hash is saved in wpt/webgpu/framework/version.js.)

This also deletes the existing WebGPU web_tests, as they have been ported into the CTS.

Bug: 984818
Change-Id: I5b514a2a893b530bcc522ff131f6c653bb996210
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1707578
Reviewed-by: Kenneth Russell <[email protected]>
Reviewed-by: Austin Eng <[email protected]>
Commit-Queue: Kai Ninomiya <[email protected]>
Cr-Commit-Position: refs/heads/master@{#687932}

--

wpt-commits: 7a9cb992767821c707c922d1cae1dffe3c8613b0
wpt-pr: 18414
2019-08-27 04:11:31 +00:00

19 lines
420 B
JavaScript

/**
* AUTO-GENERATED - DO NOT EDIT. Source: https://github.com/gpuweb/cts
**/
/// <reference types="@webgpu/types" />
let impl = undefined;
export function getGPU() {
if (impl) {
return impl;
}
if (typeof navigator === 'undefined' || navigator.gpu === undefined) {
throw new Error('No WebGPU implementation found');
}
impl = navigator.gpu;
return impl;
}
//# sourceMappingURL=implementation.js.map