mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
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
19 lines
420 B
JavaScript
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
|