mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 82b73b315ce7ed1554e7a9b7bced66a5831e4ee5
This commit is contained in:
parent
00a9f30773
commit
76712d7d25
353 changed files with 6528 additions and 1307 deletions
|
@ -0,0 +1,19 @@
|
|||
/**
|
||||
* 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
|
Loading…
Add table
Add a link
Reference in a new issue