mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Initial implementation of GPUBuffer for WebGPU
Added WebIDL bindings for GPUBuffer, GPUBufferDescriptor, GPUBufferUsage Implemented the `createBuffer` and `createBufferMapped` functions of GPUDevice
This commit is contained in:
parent
6ccad53937
commit
ebfcd0f27f
14 changed files with 428 additions and 12 deletions
11
components/script/dom/gpubufferusage.rs
Normal file
11
components/script/dom/gpubufferusage.rs
Normal file
|
@ -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,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue