Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-xrview-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/xrview/XRView.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct XRView {
17        pub proj_matrix: crate::unity_engine::matrix4x4::Matrix4x4,
18        pub view_matrix: crate::unity_engine::matrix4x4::Matrix4x4,
19        pub viewport: crate::unity_engine::rect::Rect,
20        pub occlusion_mesh: crate::unity_engine::mesh::Mesh,
21        pub texture_array_slice: i32,
22    }
23    impl ::unity::ClassIdentity for XRView {
24        const NAME: &'static str = "XRView";
25        const NAMESPACE: &'static str = "UnityEngine.Rendering.Universal";
26
27        fn class() -> ::unity::Class {
28            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
29            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
30        }
31    }
32    impl ::unity::IlType for XRView {
33        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35        }
36    }
37}
38
39#[cfg(feature = "unity_engine-rendering-universal-xrview-types")]
40pub use __types::*;
41
42#[cfg(feature = "unity_engine-rendering-universal-xrview")]
43impl XRView {
44    #[doc = "`.ctor(crate::unity_engine::matrix4x4::Matrix4x4, crate::unity_engine::matrix4x4::Matrix4x4, crate::unity_engine::rect::Rect, i32)` overload"]
45    pub fn ctor(
46        &mut self,
47        proj: impl ::core::convert::Into<crate::unity_engine::matrix4x4::Matrix4x4>,
48        view: impl ::core::convert::Into<crate::unity_engine::matrix4x4::Matrix4x4>,
49        vp: impl ::core::convert::Into<crate::unity_engine::rect::Rect>,
50        dst_slice: impl ::core::convert::Into<i32>,
51    ) -> () {
52        unsafe {
53            ::unity::il2cpp_call!((::unity::module_base()+0x2cb2ab0usize)as*mut u8,();
54(*mut XRView)self as*mut XRView,(crate::unity_engine::matrix4x4::Matrix4x4)::core::convert::Into::into(proj),(crate::unity_engine::matrix4x4::Matrix4x4)::core::convert::Into::into(view),(crate::unity_engine::rect::Rect)::core::convert::Into::into(vp),(i32)::core::convert::Into::into(dst_slice))
55        }
56    }
57
58    #[doc = "`.ctor(crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderPass, crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderParameter)` overload"]
59    pub fn ctor_2(
60        &mut self,
61        render_pass: impl ::core::convert::Into<crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderPass>,
62        render_parameter: impl ::core::convert::Into<crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderParameter>,
63    ) -> () {
64        unsafe {
65            ::unity::il2cpp_call!((::unity::module_base()+0x2cb27d0usize)as*mut u8,();
66(*mut XRView)self as*mut XRView,(crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderPass)::core::convert::Into::into(render_pass),(crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderParameter)::core::convert::Into::into(render_parameter))
67        }
68    }
69}
70
71#[cfg(feature = "unity_engine-rendering-universal-xrview")]
72impl XRView {
73    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
74        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
75    }
76
77    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
78        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
79    }
80}
81
82#[cfg(feature = "unity_engine-rendering-universal-xrview")]
83#[doc(hidden)]
84pub mod prelude {
85    pub use super::XRView;
86    #[cfg(feature = "system-object")]
87    pub use crate::system::object::IObjectMethods;
88    #[cfg(feature = "system-valuetype")]
89    pub use crate::system::valuetype::IValueTypeMethods;
90    pub use crate::system::{object::IObject, valuetype::IValueType};
91}