diff options
author | Istvan Miklos <istvan.miklos@h-lab.eu> | 2019-11-15 15:09:04 +0100 |
---|---|---|
committer | Istvan Miklos <istvan.miklos@h-lab.eu> | 2019-12-17 11:00:08 +0100 |
commit | ebfcd0f27f654bcf14fef7dcb2fca3ad2c88f4bf (patch) | |
tree | 7901145807112fcaca7d1a7545dfb1b19e92f38b /components/script/dom/gpubufferusage.rs | |
parent | 6ccad53937c2dcc8d1d24d9d924e236927211cf8 (diff) | |
download | servo-ebfcd0f27f654bcf14fef7dcb2fca3ad2c88f4bf.tar.gz servo-ebfcd0f27f654bcf14fef7dcb2fca3ad2c88f4bf.zip |
Initial implementation of GPUBuffer for WebGPU
Added WebIDL bindings for GPUBuffer, GPUBufferDescriptor, GPUBufferUsage
Implemented the `createBuffer` and `createBufferMapped` functions of GPUDevice
Diffstat (limited to 'components/script/dom/gpubufferusage.rs')
-rw-r--r-- | components/script/dom/gpubufferusage.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/components/script/dom/gpubufferusage.rs b/components/script/dom/gpubufferusage.rs new file mode 100644 index 00000000000..9b3a97d26fd --- /dev/null +++ b/components/script/dom/gpubufferusage.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 GPUBufferUsage { + reflector_: Reflector, +} |