Skip to main content

engage/generated/unity_engine/rendering/universal/
xrlayout.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-xrlayout-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/xrlayout/XRLayout.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct XRLayout {
17        pub camera: crate::unity_engine::camera::Camera,
18        pub xr_system: crate::unity_engine::rendering::universal::xrsystem::XRSystem,
19    }
20    impl ::unity::ClassIdentity for XRLayout {
21        const NAME: &'static str = "XRLayout";
22        const NAMESPACE: &'static str = "UnityEngine.Rendering.Universal";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for XRLayout {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34}
35
36#[cfg(feature = "unity_engine-rendering-universal-xrlayout-types")]
37pub use __types::*;
38
39#[cfg(feature = "unity_engine-rendering-universal-xrlayout")]
40impl XRLayout {
41    #[doc = "`CreatePass(crate::unity_engine::rendering::universal::xrpasscreateinfo::XRPassCreateInfo)` overload"]
42    pub fn create_pass(
43        &mut self,
44        pass_create_info: impl ::core::convert::Into<crate::unity_engine::rendering::universal::xrpasscreateinfo::XRPassCreateInfo>,
45    ) -> crate::unity_engine::rendering::universal::xrpass::XRPass {
46        unsafe {
47            ::unity::il2cpp_call!((::unity::module_base()+0x2cb13b0usize)as*mut u8,crate::unity_engine::rendering::universal::xrpass::XRPass;
48(*mut XRLayout)self as*mut XRLayout,(crate::unity_engine::rendering::universal::xrpasscreateinfo::XRPassCreateInfo)::core::convert::Into::into(pass_create_info))
49        }
50    }
51
52    #[doc = "`AddViewToPass(crate::unity_engine::rendering::universal::xrviewcreateinfo::XRViewCreateInfo, crate::unity_engine::rendering::universal::xrpass::XRPass)` overload"]
53    pub fn add_view_to_pass(
54        &mut self,
55        view_create_info: impl ::core::convert::Into<crate::unity_engine::rendering::universal::xrviewcreateinfo::XRViewCreateInfo>,
56        pass: impl ::core::convert::Into<crate::unity_engine::rendering::universal::xrpass::XRPass>,
57    ) -> () {
58        unsafe {
59            ::unity::il2cpp_call!((::unity::module_base()+0x2cb1770usize)as*mut u8,();
60(*mut XRLayout)self as*mut XRLayout,(crate::unity_engine::rendering::universal::xrviewcreateinfo::XRViewCreateInfo)::core::convert::Into::into(view_create_info),(crate::unity_engine::rendering::universal::xrpass::XRPass)::core::convert::Into::into(pass))
61        }
62    }
63}
64
65#[cfg(feature = "unity_engine-rendering-universal-xrlayout")]
66impl XRLayout {
67    pub fn create_pass_method_info() -> &'static ::unity::il2cpp::MethodInfo {
68        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
69    }
70
71    pub fn add_view_to_pass_method_info() -> &'static ::unity::il2cpp::MethodInfo {
72        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
73    }
74}
75
76#[cfg(feature = "unity_engine-rendering-universal-xrlayout")]
77#[doc(hidden)]
78pub mod prelude {
79    pub use super::XRLayout;
80    #[cfg(feature = "system-object")]
81    pub use crate::system::object::IObjectMethods;
82    #[cfg(feature = "system-valuetype")]
83    pub use crate::system::valuetype::IValueTypeMethods;
84    pub use crate::system::{object::IObject, valuetype::IValueType};
85}