web_sys/features/
gen_XrRenderState.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 = "XRRenderState",
11 typescript_type = "XRRenderState"
12 )]
13 #[derive(Debug, Clone, PartialEq, Eq)]
14 #[doc = "The `XrRenderState` class."]
15 #[doc = ""]
16 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRenderState)"]
17 #[doc = ""]
18 #[doc = "*This API requires the following crate features to be activated: `XrRenderState`*"]
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 XrRenderState;
23 #[cfg(web_sys_unstable_apis)]
24 #[wasm_bindgen(method, getter, js_class = "XRRenderState", js_name = "depthNear")]
25 #[doc = "Getter for the `depthNear` field of this object."]
26 #[doc = ""]
27 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRenderState/depthNear)"]
28 #[doc = ""]
29 #[doc = "*This API requires the following crate features to be activated: `XrRenderState`*"]
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 depth_near(this: &XrRenderState) -> f64;
34 #[cfg(web_sys_unstable_apis)]
35 #[wasm_bindgen(method, getter, js_class = "XRRenderState", js_name = "depthFar")]
36 #[doc = "Getter for the `depthFar` field of this object."]
37 #[doc = ""]
38 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRenderState/depthFar)"]
39 #[doc = ""]
40 #[doc = "*This API requires the following crate features to be activated: `XrRenderState`*"]
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 depth_far(this: &XrRenderState) -> f64;
45 #[cfg(web_sys_unstable_apis)]
46 #[wasm_bindgen(
47 method,
48 getter,
49 js_class = "XRRenderState",
50 js_name = "inlineVerticalFieldOfView"
51 )]
52 #[doc = "Getter for the `inlineVerticalFieldOfView` field of this object."]
53 #[doc = ""]
54 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRenderState/inlineVerticalFieldOfView)"]
55 #[doc = ""]
56 #[doc = "*This API requires the following crate features to be activated: `XrRenderState`*"]
57 #[doc = ""]
58 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
59 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
60 pub fn inline_vertical_field_of_view(this: &XrRenderState) -> Option<f64>;
61 #[cfg(web_sys_unstable_apis)]
62 #[cfg(feature = "XrWebGlLayer")]
63 #[wasm_bindgen(method, getter, js_class = "XRRenderState", js_name = "baseLayer")]
64 #[doc = "Getter for the `baseLayer` field of this object."]
65 #[doc = ""]
66 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRRenderState/baseLayer)"]
67 #[doc = ""]
68 #[doc = "*This API requires the following crate features to be activated: `XrRenderState`, `XrWebGlLayer`*"]
69 #[doc = ""]
70 #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
71 #[doc = "[described in the `wasm-bindgen` guide](https://wasm-bindgen.github.io/wasm-bindgen/web-sys/unstable-apis.html)*"]
72 pub fn base_layer(this: &XrRenderState) -> Option<XrWebGlLayer>;
73}