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