1 #![allow(unused_imports)] 2 use super::*; 3 use wasm_bindgen::prelude::*; 4 #[cfg(web_sys_unstable_apis)] 5 #[wasm_bindgen] 6 extern "C" { 7 # [wasm_bindgen (extends = :: js_sys :: Object , js_name = XRWebGLLayer , typescript_type = "XRWebGLLayer")] 8 #[derive(Debug, Clone, PartialEq, Eq)] 9 #[doc = "The `XrWebGlLayer` class."] 10 #[doc = ""] 11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer)"] 12 #[doc = ""] 13 #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayer`*"] 14 #[doc = ""] 15 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 16 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] 17 pub type XrWebGlLayer; 18 #[cfg(web_sys_unstable_apis)] 19 # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = antialias)] 20 #[doc = "Getter for the `antialias` field of this object."] 21 #[doc = ""] 22 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/antialias)"] 23 #[doc = ""] 24 #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayer`*"] 25 #[doc = ""] 26 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 27 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] antialias(this: &XrWebGlLayer) -> bool28 pub fn antialias(this: &XrWebGlLayer) -> bool; 29 #[cfg(web_sys_unstable_apis)] 30 # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = ignoreDepthValues)] 31 #[doc = "Getter for the `ignoreDepthValues` field of this object."] 32 #[doc = ""] 33 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/ignoreDepthValues)"] 34 #[doc = ""] 35 #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayer`*"] 36 #[doc = ""] 37 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 38 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] ignore_depth_values(this: &XrWebGlLayer) -> bool39 pub fn ignore_depth_values(this: &XrWebGlLayer) -> bool; 40 #[cfg(web_sys_unstable_apis)] 41 #[cfg(feature = "WebGlFramebuffer")] 42 # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = framebuffer)] 43 #[doc = "Getter for the `framebuffer` field of this object."] 44 #[doc = ""] 45 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/framebuffer)"] 46 #[doc = ""] 47 #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `XrWebGlLayer`*"] 48 #[doc = ""] 49 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 50 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] framebuffer(this: &XrWebGlLayer) -> WebGlFramebuffer51 pub fn framebuffer(this: &XrWebGlLayer) -> WebGlFramebuffer; 52 #[cfg(web_sys_unstable_apis)] 53 # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = framebufferWidth)] 54 #[doc = "Getter for the `framebufferWidth` field of this object."] 55 #[doc = ""] 56 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/framebufferWidth)"] 57 #[doc = ""] 58 #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayer`*"] 59 #[doc = ""] 60 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 61 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] framebuffer_width(this: &XrWebGlLayer) -> u3262 pub fn framebuffer_width(this: &XrWebGlLayer) -> u32; 63 #[cfg(web_sys_unstable_apis)] 64 # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = framebufferHeight)] 65 #[doc = "Getter for the `framebufferHeight` field of this object."] 66 #[doc = ""] 67 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/framebufferHeight)"] 68 #[doc = ""] 69 #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayer`*"] 70 #[doc = ""] 71 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 72 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] framebuffer_height(this: &XrWebGlLayer) -> u3273 pub fn framebuffer_height(this: &XrWebGlLayer) -> u32; 74 #[cfg(web_sys_unstable_apis)] 75 #[cfg(all(feature = "WebGlRenderingContext", feature = "XrSession",))] 76 #[wasm_bindgen(catch, constructor, js_class = "XRWebGLLayer")] 77 #[doc = "The `new XrWebGlLayer(..)` constructor, creating a new instance of `XrWebGlLayer`."] 78 #[doc = ""] 79 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/XRWebGLLayer)"] 80 #[doc = ""] 81 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `XrSession`, `XrWebGlLayer`*"] 82 #[doc = ""] 83 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 84 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] new_with_web_gl_rendering_context( session: &XrSession, context: &WebGlRenderingContext, ) -> Result<XrWebGlLayer, JsValue>85 pub fn new_with_web_gl_rendering_context( 86 session: &XrSession, 87 context: &WebGlRenderingContext, 88 ) -> Result<XrWebGlLayer, JsValue>; 89 #[cfg(web_sys_unstable_apis)] 90 #[cfg(all(feature = "WebGl2RenderingContext", feature = "XrSession",))] 91 #[wasm_bindgen(catch, constructor, js_class = "XRWebGLLayer")] 92 #[doc = "The `new XrWebGlLayer(..)` constructor, creating a new instance of `XrWebGlLayer`."] 93 #[doc = ""] 94 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/XRWebGLLayer)"] 95 #[doc = ""] 96 #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `XrSession`, `XrWebGlLayer`*"] 97 #[doc = ""] 98 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 99 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] new_with_web_gl2_rendering_context( session: &XrSession, context: &WebGl2RenderingContext, ) -> Result<XrWebGlLayer, JsValue>100 pub fn new_with_web_gl2_rendering_context( 101 session: &XrSession, 102 context: &WebGl2RenderingContext, 103 ) -> Result<XrWebGlLayer, JsValue>; 104 #[cfg(web_sys_unstable_apis)] 105 #[cfg(all( 106 feature = "WebGlRenderingContext", 107 feature = "XrSession", 108 feature = "XrWebGlLayerInit", 109 ))] 110 #[wasm_bindgen(catch, constructor, js_class = "XRWebGLLayer")] 111 #[doc = "The `new XrWebGlLayer(..)` constructor, creating a new instance of `XrWebGlLayer`."] 112 #[doc = ""] 113 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/XRWebGLLayer)"] 114 #[doc = ""] 115 #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `XrSession`, `XrWebGlLayer`, `XrWebGlLayerInit`*"] 116 #[doc = ""] 117 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 118 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] new_with_web_gl_rendering_context_and_layer_init( session: &XrSession, context: &WebGlRenderingContext, layer_init: &XrWebGlLayerInit, ) -> Result<XrWebGlLayer, JsValue>119 pub fn new_with_web_gl_rendering_context_and_layer_init( 120 session: &XrSession, 121 context: &WebGlRenderingContext, 122 layer_init: &XrWebGlLayerInit, 123 ) -> Result<XrWebGlLayer, JsValue>; 124 #[cfg(web_sys_unstable_apis)] 125 #[cfg(all( 126 feature = "WebGl2RenderingContext", 127 feature = "XrSession", 128 feature = "XrWebGlLayerInit", 129 ))] 130 #[wasm_bindgen(catch, constructor, js_class = "XRWebGLLayer")] 131 #[doc = "The `new XrWebGlLayer(..)` constructor, creating a new instance of `XrWebGlLayer`."] 132 #[doc = ""] 133 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/XRWebGLLayer)"] 134 #[doc = ""] 135 #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `XrSession`, `XrWebGlLayer`, `XrWebGlLayerInit`*"] 136 #[doc = ""] 137 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 138 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] new_with_web_gl2_rendering_context_and_layer_init( session: &XrSession, context: &WebGl2RenderingContext, layer_init: &XrWebGlLayerInit, ) -> Result<XrWebGlLayer, JsValue>139 pub fn new_with_web_gl2_rendering_context_and_layer_init( 140 session: &XrSession, 141 context: &WebGl2RenderingContext, 142 layer_init: &XrWebGlLayerInit, 143 ) -> Result<XrWebGlLayer, JsValue>; 144 #[cfg(web_sys_unstable_apis)] 145 #[cfg(feature = "XrSession")] 146 # [wasm_bindgen (static_method_of = XrWebGlLayer , js_class = "XRWebGLLayer" , js_name = getNativeFramebufferScaleFactor)] 147 #[doc = "The `getNativeFramebufferScaleFactor()` method."] 148 #[doc = ""] 149 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/getNativeFramebufferScaleFactor)"] 150 #[doc = ""] 151 #[doc = "*This API requires the following crate features to be activated: `XrSession`, `XrWebGlLayer`*"] 152 #[doc = ""] 153 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 154 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] get_native_framebuffer_scale_factor(session: &XrSession) -> f64155 pub fn get_native_framebuffer_scale_factor(session: &XrSession) -> f64; 156 #[cfg(web_sys_unstable_apis)] 157 #[cfg(all(feature = "XrView", feature = "XrViewport",))] 158 # [wasm_bindgen (method , structural , js_class = "XRWebGLLayer" , js_name = getViewport)] 159 #[doc = "The `getViewport()` method."] 160 #[doc = ""] 161 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/getViewport)"] 162 #[doc = ""] 163 #[doc = "*This API requires the following crate features to be activated: `XrView`, `XrViewport`, `XrWebGlLayer`*"] 164 #[doc = ""] 165 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"] 166 #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"] get_viewport(this: &XrWebGlLayer, view: &XrView) -> Option<XrViewport>167 pub fn get_viewport(this: &XrWebGlLayer, view: &XrView) -> Option<XrViewport>; 168 } 169