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