diff options
author | Istvan Miklos <istvan.miklos@h-lab.eu> | 2019-11-12 12:56:57 +0100 |
---|---|---|
committer | Istvan Miklos <istvan.miklos@h-lab.eu> | 2019-12-05 11:50:33 +0100 |
commit | b15d2bb7d70870e26e1834099bf5fdcdcbb8d673 (patch) | |
tree | 80f2ab39a3afe7c38ec4934070cff03642e80521 /components/script/dom/identityhub.rs | |
parent | 7aa68c8fe7ca0865a7323ab1e5b9526efa588ca2 (diff) | |
download | servo-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/identityhub.rs')
-rw-r--r-- | components/script/dom/identityhub.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script/dom/identityhub.rs b/components/script/dom/identityhub.rs index 489eaacc78d..6c79a3c5f46 100644 --- a/components/script/dom/identityhub.rs +++ b/components/script/dom/identityhub.rs @@ -44,4 +44,8 @@ impl Identities { pub fn create_adapter_id(&mut self) -> AdapterId { self.hub.adapters.alloc() } + + pub fn create_device_id(&mut self) -> DeviceId { + self.hub.devices.alloc() + } } |