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 // #[ignore_malloc_size_of = "defined in wgpu-types"]
15}
16
17// TODO: wgpu does not expose right fields right now
18impl GPUQuerySetMethods<crate::DomTypeHolder> for GPUQuerySet {
19 /// <https://gpuweb.github.io/gpuweb/#dom-gpuqueryset-destroy>
20 fn Destroy(&self) {
21 todo!()
22 }
23
24 /// <https://gpuweb.github.io/gpuweb/#dom-gpuobjectbase-label>
25 fn Label(&self) -> USVString {
26 todo!()
27 }
28
29 /// <https://gpuweb.github.io/gpuweb/#dom-gpuobjectbase-label>
30 fn SetLabel(&self, _value: USVString) {
31 todo!()
32 }
33}