aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/webidls/GPUObjectBase.webidl
diff options
context:
space:
mode:
authorIstvan Miklos <istvan.miklos@h-lab.eu>2019-11-12 12:56:57 +0100
committerIstvan Miklos <istvan.miklos@h-lab.eu>2019-12-05 11:50:33 +0100
commitb15d2bb7d70870e26e1834099bf5fdcdcbb8d673 (patch)
tree80f2ab39a3afe7c38ec4934070cff03642e80521 /components/script/dom/webidls/GPUObjectBase.webidl
parent7aa68c8fe7ca0865a7323ab1e5b9526efa588ca2 (diff)
downloadservo-b15d2bb7d70870e26e1834099bf5fdcdcbb8d673.tar.gz
servo-b15d2bb7d70870e26e1834099bf5fdcdcbb8d673.zip
Initial implementation of GPUDevice for WebGPU
Added the WebIDL bindigs for GPUDevice, GPUObjectDescriptorBase, GPUDeviceDescriptor, GPUObjectBase Implemented the `requestDevice` function of `GPUAdapter`
Diffstat (limited to 'components/script/dom/webidls/GPUObjectBase.webidl')
-rw-r--r--components/script/dom/webidls/GPUObjectBase.webidl13
1 files changed, 13 insertions, 0 deletions
diff --git a/components/script/dom/webidls/GPUObjectBase.webidl b/components/script/dom/webidls/GPUObjectBase.webidl
new file mode 100644
index 00000000000..c9a35992fb8
--- /dev/null
+++ b/components/script/dom/webidls/GPUObjectBase.webidl
@@ -0,0 +1,13 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
+
+// https://gpuweb.github.io/gpuweb/#gpuobjectbase
+[Exposed=(Window)]
+interface mixin GPUObjectBase {
+ attribute DOMString? label;
+};
+
+dictionary GPUObjectDescriptorBase {
+ DOMString? label;
+};