Skip to main content

script_webgpu/
gputextureusage.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 jstraceable_derive::JSTraceable;
9use malloc_size_of_derive::MallocSizeOf;
10use script_bindings::DomTypes;
11use script_bindings::reflector::Reflector;
12
13#[dom_struct]
14pub struct GPUTextureUsage<D: DomTypes> {
15    reflector_: Reflector,
16    #[no_trace = "PhantomData does not exist"]
17    phantom: PhantomData<D>,
18}