web_sys/features/
gen_OvrMultiview2.rs1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7 # [wasm_bindgen (is_type_of = | _ | false , extends = "::js_sys::Object" , js_name = "OVR_multiview2" , typescript_type = "OVR_multiview2")]
8 #[derive(Debug, Clone, PartialEq, Eq)]
9 #[doc = "The `OvrMultiview2` class."]
10 #[doc = ""]
11 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OVR_multiview2)"]
12 #[doc = ""]
13 #[doc = "*This API requires the following crate features to be activated: `OvrMultiview2`*"]
14 pub type OvrMultiview2;
15 #[cfg(feature = "WebGlTexture")]
16 #[wasm_bindgen(
17 method,
18 js_class = "OVR_multiview2",
19 js_name = "framebufferTextureMultiviewOVR"
20 )]
21 #[doc = "The `framebufferTextureMultiviewOVR()` method."]
22 #[doc = ""]
23 #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR)"]
24 #[doc = ""]
25 #[doc = "*This API requires the following crate features to be activated: `OvrMultiview2`, `WebGlTexture`*"]
26 pub fn framebuffer_texture_multiview_ovr(
27 this: &OvrMultiview2,
28 target: u32,
29 attachment: u32,
30 texture: Option<&WebGlTexture>,
31 level: i32,
32 base_view_index: i32,
33 num_views: i32,
34 );
35}
36impl OvrMultiview2 {
37 #[doc = "The `OVR_multiview2.FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR` const."]
38 #[doc = ""]
39 #[doc = "*This API requires the following crate features to be activated: `OvrMultiview2`*"]
40 pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: u32 = 38448u64 as u32;
41 #[doc = "The `OVR_multiview2.FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR` const."]
42 #[doc = ""]
43 #[doc = "*This API requires the following crate features to be activated: `OvrMultiview2`*"]
44 pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: u32 = 38450u64 as u32;
45 #[doc = "The `OVR_multiview2.MAX_VIEWS_OVR` const."]
46 #[doc = ""]
47 #[doc = "*This API requires the following crate features to be activated: `OvrMultiview2`*"]
48 pub const MAX_VIEWS_OVR: u32 = 38449u64 as u32;
49 #[doc = "The `OVR_multiview2.FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR` const."]
50 #[doc = ""]
51 #[doc = "*This API requires the following crate features to be activated: `OvrMultiview2`*"]
52 pub const FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: u32 = 38451u64 as u32;
53}