Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-xrsystemdata-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::{
11            object_2::{IObject_2, Object_2},
12            scriptableobject::{IScriptableObject, ScriptableObject},
13        },
14    };
15
16    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/xrsystemdata/XRSystemData.md"))]
17    #[::unity::class(namespace = "UnityEngine.Rendering.Universal", name = "XRSystemData")]
18    #[parent(crate::unity_engine::scriptableobject::ScriptableObject)]
19    pub struct XRSystemData {
20        #[offset(24)]
21        #[rename(name = "shaders")]
22        pub shaders: crate::unity_engine::rendering::universal::xrsystemdata::XRSystemData_ShaderResources,
23    }
24
25    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/xrsystemdata/XRSystemData_ShaderResources.md"))]
26    #[::unity::class(namespace = "UnityEngine.Rendering.Universal", name = "XRSystemData.ShaderResources")]
27    #[parent(crate::system::object::Object)]
28    pub struct XRSystemData_ShaderResources {
29        #[offset(16)]
30        #[rename(name = "xrOcclusionMeshPS")]
31        pub xr_occlusion_mesh_ps: crate::unity_engine::shader::Shader,
32        #[offset(24)]
33        #[rename(name = "xrMirrorViewPS")]
34        pub xr_mirror_view_ps: crate::unity_engine::shader::Shader,
35    }
36}
37
38#[cfg(feature = "unity_engine-rendering-universal-xrsystemdata-types")]
39pub use __types::*;
40
41#[cfg(feature = "unity_engine-rendering-universal-xrsystemdata")]
42pub trait IXRSystemDataMethods: IXRSystemData {
43    #[doc = "`.ctor()` overload"]
44    fn ctor(self) -> () {
45        unsafe {
46            let __receiver = <XRSystemData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
47            ::unity::il2cpp_call!((::unity::module_base()+0x2cb59f0usize)as*mut u8,();
48(XRSystemData)__receiver)
49        }
50    }
51}
52
53#[cfg(feature = "unity_engine-rendering-universal-xrsystemdata")]
54impl<__T: IXRSystemData> IXRSystemDataMethods for __T {}
55
56#[cfg(feature = "unity_engine-rendering-universal-xrsystemdata")]
57impl XRSystemData {
58    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
59        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
60    }
61}
62
63#[cfg(feature = "unity_engine-rendering-universal-xrsystemdata")]
64impl XRSystemData {
65    #[doc = "`.ctor()` — no args"]
66    pub fn new() -> Self {
67        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
68            panic!(
69                "{}
70::{}
71 failed to instantiate",
72                ::core::stringify!(XRSystemData),
73                ::core::stringify!(new),
74            )
75        });
76        <Self as IXRSystemDataMethods>::ctor(this);
77        this
78    }
79}
80
81#[cfg(feature = "unity_engine-rendering-universal-xrsystemdata")]
82pub trait IXRSystemData_ShaderResourcesMethods: IXRSystemData_ShaderResources {
83    #[doc = "`.ctor()` overload"]
84    fn ctor(self) -> () {
85        unsafe {
86            let __receiver =
87                <XRSystemData_ShaderResources as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88            ::unity::il2cpp_call!((::unity::module_base()+0x2cbadb0usize)as*mut u8,();
89(XRSystemData_ShaderResources)__receiver)
90        }
91    }
92}
93
94#[cfg(feature = "unity_engine-rendering-universal-xrsystemdata")]
95impl<__T: IXRSystemData_ShaderResources> IXRSystemData_ShaderResourcesMethods for __T {}
96
97#[cfg(feature = "unity_engine-rendering-universal-xrsystemdata")]
98impl XRSystemData_ShaderResources {
99    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
100        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
101    }
102}
103
104#[cfg(feature = "unity_engine-rendering-universal-xrsystemdata")]
105impl XRSystemData_ShaderResources {
106    #[doc = "`.ctor()` — no args"]
107    pub fn new() -> Self {
108        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
109            panic!(
110                "{}
111::{}
112 failed to instantiate",
113                ::core::stringify!(XRSystemData_ShaderResources),
114                ::core::stringify!(new),
115            )
116        });
117        <Self as IXRSystemData_ShaderResourcesMethods>::ctor(this);
118        this
119    }
120}
121
122#[cfg(feature = "unity_engine-rendering-universal-xrsystemdata")]
123#[doc(hidden)]
124pub mod prelude {
125    pub use super::{
126        IXRSystemData, IXRSystemDataMethods, IXRSystemData_ShaderResources, IXRSystemData_ShaderResourcesMethods, XRSystemData,
127        XRSystemData_ShaderResources,
128    };
129    #[cfg(feature = "system-object")]
130    pub use crate::system::object::IObjectMethods;
131    #[cfg(feature = "unity_engine-object_2")]
132    pub use crate::unity_engine::object_2::IObject_2Methods;
133    #[cfg(feature = "unity_engine-scriptableobject")]
134    pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
135    pub use crate::{
136        system::object::IObject,
137        unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
138    };
139}