Skip to main content

script_webgpu/
gpumapmode.rs

1/* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
4
5use std::marker::PhantomData;
6
7use dom_struct::dom_struct;
8use malloc_size_of_derive::MallocSizeOf;
9use script_bindings::DomTypes;
10use script_bindings::reflector::Reflector;
11
12use crate::JSTraceable;
13
14#[dom_struct]
15pub struct GPUMapMode<D: DomTypes> {
16    reflector_: Reflector,
17    #[no_trace = "PhantomData does not exist"]
18    phantom: PhantomData<D>,
19}