script/dom/webgpu/gpuqueryset.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
5#![allow(dead_code)] // this file is stub
6
7use dom_struct::dom_struct;
8
9use crate::dom::bindings::codegen::Bindings::WebGPUBinding::GPUQuerySetMethods;
10use crate::dom::bindings::reflector::Reflector;
11use crate::dom::bindings::str::USVString;
12
13#[dom_struct]
14pub(crate) struct GPUQuerySet {
15 reflector_: Reflector,
16 // #[ignore_malloc_size_of = "defined in wgpu-types"]
17}
18
19// TODO: wgpu does not expose right fields right now
20impl GPUQuerySetMethods<crate::DomTypeHolder> for GPUQuerySet {
21 /// <https://gpuweb.github.io/gpuweb/#dom-gpuqueryset-destroy>
22 fn Destroy(&self) {
23 todo!()
24 }
25
26 /// <https://gpuweb.github.io/gpuweb/#dom-gpuobjectbase-label>
27 fn Label(&self) -> USVString {
28 todo!()
29 }
30
31 /// <https://gpuweb.github.io/gpuweb/#dom-gpuobjectbase-label>
32 fn SetLabel(&self, _value: USVString) {
33 todo!()
34 }
35}