aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/gpumapmode.rs
diff options
context:
space:
mode:
authorKunal Mohan <kunalmohan99@gmail.com>2020-06-22 19:52:02 +0530
committerKunal Mohan <kunalmohan99@gmail.com>2020-06-27 20:27:17 +0530
commitb74cea3a4698ca7e35a801b37b8b61479a46ede5 (patch)
tree4644030edaa4b041872676302271fb85c158c12c /components/script/dom/gpumapmode.rs
parent0afe412d632a14b54da78ffb25418bdb510233a4 (diff)
downloadservo-b74cea3a4698ca7e35a801b37b8b61479a46ede5.tar.gz
servo-b74cea3a4698ca7e35a801b37b8b61479a46ede5.zip
Implement GPUBuffer.mapAsync and update wgpu-core
Diffstat (limited to 'components/script/dom/gpumapmode.rs')
-rw-r--r--components/script/dom/gpumapmode.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/components/script/dom/gpumapmode.rs b/components/script/dom/gpumapmode.rs
new file mode 100644
index 00000000000..b216d3f839d
--- /dev/null
+++ b/components/script/dom/gpumapmode.rs
@@ -0,0 +1,11 @@
+/* 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/. */
+
+use crate::dom::bindings::reflector::Reflector;
+use dom_struct::dom_struct;
+
+#[dom_struct]
+pub struct GPUMapMode {
+ reflector_: Reflector,
+}