web_sys/features/
gen_OvrMultiview2.rs

1#![allow(unused_imports)]
2#![allow(clippy::all)]
3use super::*;
4use wasm_bindgen::prelude::*;
5#[wasm_bindgen]
6extern "C" {
7    # [wasm_bindgen (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 (method , structural , js_class = "OVR_multiview2" , js_name = framebufferTextureMultiviewOVR)]
17    #[doc = "The `framebufferTextureMultiviewOVR()` method."]
18    #[doc = ""]
19    #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/OVR_multiview2/framebufferTextureMultiviewOVR)"]
20    #[doc = ""]
21    #[doc = "*This API requires the following crate features to be activated: `OvrMultiview2`, `WebGlTexture`*"]
22    pub fn framebuffer_texture_multiview_ovr(
23        this: &OvrMultiview2,
24        target: u32,
25        attachment: u32,
26        texture: Option<&WebGlTexture>,
27        level: i32,
28        base_view_index: i32,
29        num_views: i32,
30    );
31}
32impl OvrMultiview2 {
33    #[doc = "The `OVR_multiview2.FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR` const."]
34    #[doc = ""]
35    #[doc = "*This API requires the following crate features to be activated: `OvrMultiview2`*"]
36    pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_NUM_VIEWS_OVR: u32 = 38448u64 as u32;
37    #[doc = "The `OVR_multiview2.FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR` const."]
38    #[doc = ""]
39    #[doc = "*This API requires the following crate features to be activated: `OvrMultiview2`*"]
40    pub const FRAMEBUFFER_ATTACHMENT_TEXTURE_BASE_VIEW_INDEX_OVR: u32 = 38450u64 as u32;
41    #[doc = "The `OVR_multiview2.MAX_VIEWS_OVR` const."]
42    #[doc = ""]
43    #[doc = "*This API requires the following crate features to be activated: `OvrMultiview2`*"]
44    pub const MAX_VIEWS_OVR: u32 = 38449u64 as u32;
45    #[doc = "The `OVR_multiview2.FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR` const."]
46    #[doc = ""]
47    #[doc = "*This API requires the following crate features to be activated: `OvrMultiview2`*"]
48    pub const FRAMEBUFFER_INCOMPLETE_VIEW_TARGETS_OVR: u32 = 38451u64 as u32;
49}