web_sys/features/
gen_GpuShaderModule.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[cfg(web_sys_unstable_apis)]
6#[wasm_bindgen]
7extern "C" {
8 #[wasm_bindgen(
9 extends = "::js_sys::Object",
10 js_name = "GPUShaderModule",
11 typescript_type = "GPUShaderModule"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `GpuShaderModule` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderModule)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `GpuShaderModule`*"]
19 #[doc = ""]
20 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
21 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
22 pub type GpuShaderModule;
23 #[cfg(web_sys_unstable_apis)]
24 #[wasm_bindgen(method, getter, js_class = "GPUShaderModule", js_name = "label")]
25 #[doc = "Getter for the `label` field of this object."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderModule/label)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `GpuShaderModule`*"]
30 #[doc = ""]
31 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
32 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
33 pub fn label(this: &GpuShaderModule) -> ::alloc::string::String;
34 #[cfg(web_sys_unstable_apis)]
35 #[wasm_bindgen(method, setter, js_class = "GPUShaderModule", js_name = "label")]
36 #[doc = "Setter for the `label` field of this object."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderModule/label)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `GpuShaderModule`*"]
41 #[doc = ""]
42 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
43 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
44 pub fn set_label(this: &GpuShaderModule, value: &str);
45 #[cfg(web_sys_unstable_apis)]
46 #[cfg(feature = "GpuCompilationInfo")]
47 #[wasm_bindgen(method, js_class = "GPUShaderModule", js_name = "getCompilationInfo")]
48 #[doc = "The `getCompilationInfo()` method."]
49 #[doc = ""]
50 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/GPUShaderModule/getCompilationInfo)"]
51 #[doc = ""]
52 #[doc = "*This API requires the following crate features to be activated: `GpuCompilationInfo`, `GpuShaderModule`*"]
53 #[doc = ""]
54 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
55 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
56 pub fn get_compilation_info(this: &GpuShaderModule) -> ::js_sys::Promise<GpuCompilationInfo>;
57}