summaryrefslogtreecommitdiffstats
path: root/vendor/web-sys/src/features/gen_XrWebGlLayer.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/web-sys/src/features/gen_XrWebGlLayer.rs
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/web-sys/src/features/gen_XrWebGlLayer.rs')
-rw-r--r--vendor/web-sys/src/features/gen_XrWebGlLayer.rs190
1 files changed, 190 insertions, 0 deletions
diff --git a/vendor/web-sys/src/features/gen_XrWebGlLayer.rs b/vendor/web-sys/src/features/gen_XrWebGlLayer.rs
new file mode 100644
index 000000000..96ef16db7
--- /dev/null
+++ b/vendor/web-sys/src/features/gen_XrWebGlLayer.rs
@@ -0,0 +1,190 @@
+#![allow(unused_imports)]
+use super::*;
+use wasm_bindgen::prelude::*;
+#[cfg(web_sys_unstable_apis)]
+#[wasm_bindgen]
+extern "C" {
+ # [wasm_bindgen (extends = XrLayer , extends = EventTarget , extends = :: js_sys :: Object , js_name = XRWebGLLayer , typescript_type = "XRWebGLLayer")]
+ #[derive(Debug, Clone, PartialEq, Eq)]
+ #[doc = "The `XrWebGlLayer` class."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayer`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub type XrWebGlLayer;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = antialias)]
+ #[doc = "Getter for the `antialias` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/antialias)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayer`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn antialias(this: &XrWebGlLayer) -> bool;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = ignoreDepthValues)]
+ #[doc = "Getter for the `ignoreDepthValues` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/ignoreDepthValues)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayer`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn ignore_depth_values(this: &XrWebGlLayer) -> bool;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = fixedFoveation)]
+ #[doc = "Getter for the `fixedFoveation` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/fixedFoveation)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayer`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn fixed_foveation(this: &XrWebGlLayer) -> Option<f32>;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (structural , method , setter , js_class = "XRWebGLLayer" , js_name = fixedFoveation)]
+ #[doc = "Setter for the `fixedFoveation` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/fixedFoveation)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayer`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn set_fixed_foveation(this: &XrWebGlLayer, value: Option<f32>);
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "WebGlFramebuffer")]
+ # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = framebuffer)]
+ #[doc = "Getter for the `framebuffer` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/framebuffer)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `WebGlFramebuffer`, `XrWebGlLayer`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn framebuffer(this: &XrWebGlLayer) -> Option<WebGlFramebuffer>;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = framebufferWidth)]
+ #[doc = "Getter for the `framebufferWidth` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/framebufferWidth)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayer`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn framebuffer_width(this: &XrWebGlLayer) -> u32;
+ #[cfg(web_sys_unstable_apis)]
+ # [wasm_bindgen (structural , method , getter , js_class = "XRWebGLLayer" , js_name = framebufferHeight)]
+ #[doc = "Getter for the `framebufferHeight` field of this object."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/framebufferHeight)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `XrWebGlLayer`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn framebuffer_height(this: &XrWebGlLayer) -> u32;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(all(feature = "WebGlRenderingContext", feature = "XrSession",))]
+ #[wasm_bindgen(catch, constructor, js_class = "XRWebGLLayer")]
+ #[doc = "The `new XrWebGlLayer(..)` constructor, creating a new instance of `XrWebGlLayer`."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/XRWebGLLayer)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `XrSession`, `XrWebGlLayer`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn new_with_web_gl_rendering_context(
+ session: &XrSession,
+ context: &WebGlRenderingContext,
+ ) -> Result<XrWebGlLayer, JsValue>;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(all(feature = "WebGl2RenderingContext", feature = "XrSession",))]
+ #[wasm_bindgen(catch, constructor, js_class = "XRWebGLLayer")]
+ #[doc = "The `new XrWebGlLayer(..)` constructor, creating a new instance of `XrWebGlLayer`."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/XRWebGLLayer)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `XrSession`, `XrWebGlLayer`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn new_with_web_gl2_rendering_context(
+ session: &XrSession,
+ context: &WebGl2RenderingContext,
+ ) -> Result<XrWebGlLayer, JsValue>;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(all(
+ feature = "WebGlRenderingContext",
+ feature = "XrSession",
+ feature = "XrWebGlLayerInit",
+ ))]
+ #[wasm_bindgen(catch, constructor, js_class = "XRWebGLLayer")]
+ #[doc = "The `new XrWebGlLayer(..)` constructor, creating a new instance of `XrWebGlLayer`."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/XRWebGLLayer)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `WebGlRenderingContext`, `XrSession`, `XrWebGlLayer`, `XrWebGlLayerInit`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn new_with_web_gl_rendering_context_and_layer_init(
+ session: &XrSession,
+ context: &WebGlRenderingContext,
+ layer_init: &XrWebGlLayerInit,
+ ) -> Result<XrWebGlLayer, JsValue>;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(all(
+ feature = "WebGl2RenderingContext",
+ feature = "XrSession",
+ feature = "XrWebGlLayerInit",
+ ))]
+ #[wasm_bindgen(catch, constructor, js_class = "XRWebGLLayer")]
+ #[doc = "The `new XrWebGlLayer(..)` constructor, creating a new instance of `XrWebGlLayer`."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/XRWebGLLayer)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `WebGl2RenderingContext`, `XrSession`, `XrWebGlLayer`, `XrWebGlLayerInit`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn new_with_web_gl2_rendering_context_and_layer_init(
+ session: &XrSession,
+ context: &WebGl2RenderingContext,
+ layer_init: &XrWebGlLayerInit,
+ ) -> Result<XrWebGlLayer, JsValue>;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(feature = "XrSession")]
+ # [wasm_bindgen (static_method_of = XrWebGlLayer , js_class = "XRWebGLLayer" , js_name = getNativeFramebufferScaleFactor)]
+ #[doc = "The `getNativeFramebufferScaleFactor()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/getNativeFramebufferScaleFactor)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `XrSession`, `XrWebGlLayer`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn get_native_framebuffer_scale_factor(session: &XrSession) -> f64;
+ #[cfg(web_sys_unstable_apis)]
+ #[cfg(all(feature = "XrView", feature = "XrViewport",))]
+ # [wasm_bindgen (method , structural , js_class = "XRWebGLLayer" , js_name = getViewport)]
+ #[doc = "The `getViewport()` method."]
+ #[doc = ""]
+ #[doc = "[MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/API/XRWebGLLayer/getViewport)"]
+ #[doc = ""]
+ #[doc = "*This API requires the following crate features to be activated: `XrView`, `XrViewport`, `XrWebGlLayer`*"]
+ #[doc = ""]
+ #[doc = "*This API is unstable and requires `--cfg=web_sys_unstable_apis` to be activated, as"]
+ #[doc = "[described in the `wasm-bindgen` guide](https://rustwasm.github.io/docs/wasm-bindgen/web-sys/unstable-apis.html)*"]
+ pub fn get_viewport(this: &XrWebGlLayer, view: &XrView) -> Option<XrViewport>;
+}