web_sys/features/
gen_WebglDebugShaders.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#![allow(unused_imports)]
#![allow(clippy::all)]
use super::*;
use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
    # [wasm_bindgen (is_type_of = | _ | false , extends = :: js_sys :: Object , js_name = WEBGL_debug_shaders , typescript_type = "WEBGL_debug_shaders")]
    #[derive(Debug, Clone, PartialEq, Eq)]
    #[doc = "The `WebglDebugShaders` class."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_shaders)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `WebglDebugShaders`*"]
    pub type WebglDebugShaders;
    #[cfg(feature = "WebGlShader")]
    # [wasm_bindgen (method , structural , js_class = "WEBGL_debug_shaders" , js_name = getTranslatedShaderSource)]
    #[doc = "The `getTranslatedShaderSource()` method."]
    #[doc = ""]
    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/WEBGL_debug_shaders/getTranslatedShaderSource)"]
    #[doc = ""]
    #[doc = "*This API requires the following crate features to be activated: `WebGlShader`, `WebglDebugShaders`*"]
    pub fn get_translated_shader_source(this: &WebglDebugShaders, shader: &WebGlShader) -> String;
}