wgpu/backend/webgpu/webgpu_sys/
gen_GpuTextureView.rs1#![allow(unused_imports)]
23#![allow(clippy::all)]
24use super::*;
25use wasm_bindgen::prelude::*;
26
27#[wasm_bindgen]
28extern "C" {
29 #[wasm_bindgen(
30 extends = "::js_sys::Object",
31 js_name = "GPUTextureView",
32 typescript_type = "GPUTextureView"
33 )]
34 #[derive(Debug, Clone, PartialEq, Eq)]
35 #[doc = "The `GpuTextureView` class."]
36 #[doc = ""]
37 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTextureView)"]
38 #[doc = ""]
39 #[doc = "*This API requires the following crate features to be activated: `GpuTextureView`*"]
40 #[doc = ""]
41 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
42 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
43 pub type GpuTextureView;
44
45 #[wasm_bindgen(method, getter, js_class = "GPUTextureView", js_name = "label")]
46 #[doc = "Getter for the `label` field of this object."]
47 #[doc = ""]
48 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTextureView/label)"]
49 #[doc = ""]
50 #[doc = "*This API requires the following crate features to be activated: `GpuTextureView`*"]
51 #[doc = ""]
52 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
53 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
54 pub fn label(this: &GpuTextureView) -> ::alloc::string::String;
55
56 #[wasm_bindgen(method, setter, js_class = "GPUTextureView", js_name = "label")]
57 #[doc = "Setter for the `label` field of this object."]
58 #[doc = ""]
59 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUTextureView/label)"]
60 #[doc = ""]
61 #[doc = "*This API requires the following crate features to be activated: `GpuTextureView`*"]
62 #[doc = ""]
63 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
64 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
65 pub fn set_label(this: &GpuTextureView, value: &str);
66}