Skip to main content

engage/generated/unity_engine/xr/
xrdisplaysubsystem.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-xr-xrdisplaysubsystem-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::{
10            object::{IObject, Object},
11            r#enum::{Enum, IEnum},
12            valuetype::{IValueType, ValueType},
13        },
14        unity_engine::{
15            integratedsubsystem::{IIntegratedSubsystem, IntegratedSubsystem},
16            integratedsubsystem_1::{IIntegratedSubsystem_1, IntegratedSubsystem_1},
17        },
18    };
19
20    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/xr/xrdisplaysubsystem/XRDisplaySubsystem_TextureLayout.md"))]
21    #[repr(C)]
22    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
23    pub struct XRDisplaySubsystem_TextureLayout {
24        pub value: i32,
25    }
26    impl ::unity::ClassIdentity for XRDisplaySubsystem_TextureLayout {
27        const NAME: &'static str = "XRDisplaySubsystem.TextureLayout";
28        const NAMESPACE: &'static str = "UnityEngine.XR";
29
30        fn class() -> ::unity::Class {
31            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
32            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
33        }
34    }
35    impl ::unity::IlType for XRDisplaySubsystem_TextureLayout {
36        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
37            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
38        }
39    }
40    impl XRDisplaySubsystem_TextureLayout {
41        pub fn texture2_d_array() -> Self {
42            Self { value: 1 }
43        }
44
45        pub fn single_texture2_d() -> Self {
46            Self { value: 2 }
47        }
48
49        pub fn separate_texture2_ds() -> Self {
50            Self { value: 4 }
51        }
52    }
53
54    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/xr/xrdisplaysubsystem/XRDisplaySubsystem_XRBlitParams.md"))]
55    #[repr(C)]
56    #[derive(::core::clone::Clone, ::core::marker::Copy)]
57    pub struct XRDisplaySubsystem_XRBlitParams {
58        pub src_tex: crate::unity_engine::rendertexture::RenderTexture,
59        pub src_tex_array_slice: i32,
60        pub src_rect: crate::unity_engine::rect::Rect,
61        pub dest_rect: crate::unity_engine::rect::Rect,
62    }
63    impl ::unity::ClassIdentity for XRDisplaySubsystem_XRBlitParams {
64        const NAME: &'static str = "XRDisplaySubsystem.XRBlitParams";
65        const NAMESPACE: &'static str = "UnityEngine.XR";
66
67        fn class() -> ::unity::Class {
68            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
69            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
70        }
71    }
72    impl ::unity::IlType for XRDisplaySubsystem_XRBlitParams {
73        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
74            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
75        }
76    }
77
78    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/xr/xrdisplaysubsystem/XRDisplaySubsystem_XRRenderParameter.md"))]
79    #[repr(C)]
80    #[derive(::core::clone::Clone, ::core::marker::Copy)]
81    pub struct XRDisplaySubsystem_XRRenderParameter {
82        pub view: crate::unity_engine::matrix4x4::Matrix4x4,
83        pub projection: crate::unity_engine::matrix4x4::Matrix4x4,
84        pub viewport: crate::unity_engine::rect::Rect,
85        pub occlusion_mesh: crate::unity_engine::mesh::Mesh,
86        pub texture_array_slice: i32,
87    }
88    impl ::unity::ClassIdentity for XRDisplaySubsystem_XRRenderParameter {
89        const NAME: &'static str = "XRDisplaySubsystem.XRRenderParameter";
90        const NAMESPACE: &'static str = "UnityEngine.XR";
91
92        fn class() -> ::unity::Class {
93            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
94            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
95        }
96    }
97    impl ::unity::IlType for XRDisplaySubsystem_XRRenderParameter {
98        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
99            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
100        }
101    }
102
103    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/xr/xrdisplaysubsystem/XRDisplaySubsystem_XRMirrorViewBlitDesc.md"))]
104    #[repr(C)]
105    #[derive(::core::clone::Clone, ::core::marker::Copy)]
106    pub struct XRDisplaySubsystem_XRMirrorViewBlitDesc {
107        pub display_subsystem_instance: ::unity::IntPtr,
108        pub native_blit_available: bool,
109        pub native_blit_invalid_states: bool,
110        pub blit_params_count: i32,
111    }
112    impl ::unity::ClassIdentity for XRDisplaySubsystem_XRMirrorViewBlitDesc {
113        const NAME: &'static str = "XRDisplaySubsystem.XRMirrorViewBlitDesc";
114        const NAMESPACE: &'static str = "UnityEngine.XR";
115
116        fn class() -> ::unity::Class {
117            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
118            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
119        }
120    }
121    impl ::unity::IlType for XRDisplaySubsystem_XRMirrorViewBlitDesc {
122        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
123            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
124        }
125    }
126
127    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/xr/xrdisplaysubsystem/XRDisplaySubsystem.md"))]
128    #[::unity::class(namespace = "UnityEngine.XR", name = "XRDisplaySubsystem")]
129    #[parent(crate::unity_engine::integratedsubsystem_1::IntegratedSubsystem_1<crate::unity_engine::xr::xrdisplaysubsystemdescriptor::XRDisplaySubsystemDescriptor>)]
130    pub struct XRDisplaySubsystem {
131        #[offset(32)]
132        #[rename(name = "displayFocusChanged")]
133        pub display_focus_changed: crate::system::action_1::Action_1<bool>,
134    }
135
136    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/xr/xrdisplaysubsystem/XRDisplaySubsystem_XRRenderPass.md"))]
137    #[repr(C)]
138    #[derive(::core::clone::Clone, ::core::marker::Copy)]
139    pub struct XRDisplaySubsystem_XRRenderPass {
140        pub display_subsystem_instance: ::unity::IntPtr,
141        pub render_pass_index: i32,
142        pub render_target: crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier,
143        pub render_target_desc: crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor,
144        pub should_fill_out_depth: bool,
145        pub culling_pass_index: i32,
146    }
147    impl ::unity::ClassIdentity for XRDisplaySubsystem_XRRenderPass {
148        const NAME: &'static str = "XRDisplaySubsystem.XRRenderPass";
149        const NAMESPACE: &'static str = "UnityEngine.XR";
150
151        fn class() -> ::unity::Class {
152            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
153            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
154        }
155    }
156    impl ::unity::IlType for XRDisplaySubsystem_XRRenderPass {
157        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
158            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
159        }
160    }
161}
162
163#[cfg(feature = "unity_engine-xr-xrdisplaysubsystem-types")]
164pub use __types::*;
165
166#[cfg(feature = "unity_engine-xr-xrdisplaysubsystem")]
167impl XRDisplaySubsystem_XRMirrorViewBlitDesc {
168    #[doc = "`GetBlitParameter_Injected(*mutcrate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRMirrorViewBlitDesc, i32, *mutcrate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRBlitParams)` overload"]
169    pub fn get_blit_parameter_injected(
170        blit_parameter_index: impl ::core::convert::Into<i32>,
171    ) -> (
172        crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRMirrorViewBlitDesc,
173        crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRBlitParams,
174    ) {
175        unsafe {
176            let mut __out_0 =
177                ::core::mem::MaybeUninit::<crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRMirrorViewBlitDesc>::uninit();
178            let mut __out_1 = ::core::mem::MaybeUninit::<crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRBlitParams>::uninit();
179            ::unity::il2cpp_call!((::unity::module_base()+0x3f1fe70usize)as*mut u8,();
180(*mut crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRMirrorViewBlitDesc)__out_0.as_mut_ptr(),(i32)::core::convert::Into::into(blit_parameter_index),(*mut crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRBlitParams)__out_1.as_mut_ptr());
181            (__out_0.assume_init(), __out_1.assume_init())
182        }
183    }
184}
185
186#[cfg(feature = "unity_engine-xr-xrdisplaysubsystem")]
187impl XRDisplaySubsystem_XRMirrorViewBlitDesc {
188    #[doc = "`GetBlitParameter(i32, *mutcrate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRBlitParams)` overload"]
189    pub fn get_blit_parameter(
190        &mut self,
191        blit_parameter_index: impl ::core::convert::Into<i32>,
192    ) -> crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRBlitParams {
193        unsafe {
194            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRBlitParams>::uninit();
195            ::unity::il2cpp_call!((::unity::module_base()+0x3f1fe10usize)as*mut u8,();
196(*mut XRDisplaySubsystem_XRMirrorViewBlitDesc)self as*mut XRDisplaySubsystem_XRMirrorViewBlitDesc,(i32)::core::convert::Into::into(blit_parameter_index),(*mut crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRBlitParams)__out_0.as_mut_ptr());
197            __out_0.assume_init()
198        }
199    }
200}
201
202#[cfg(feature = "unity_engine-xr-xrdisplaysubsystem")]
203impl XRDisplaySubsystem_XRMirrorViewBlitDesc {
204    pub fn get_blit_parameter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
206    }
207
208    pub fn get_blit_parameter_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
210    }
211}
212
213#[cfg(feature = "unity_engine-xr-xrdisplaysubsystem")]
214pub trait IXRDisplaySubsystemMethods: IXRDisplaySubsystem {
215    #[doc = "`InvokeDisplayFocusChanged(bool)` overload"]
216    fn invoke_display_focus_changed(self, focus: impl ::core::convert::Into<bool>) -> () {
217        unsafe {
218            let __receiver = <XRDisplaySubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
219            ::unity::il2cpp_call!((::unity::module_base()+0x3f1f260usize)as*mut u8,();
220(XRDisplaySubsystem)__receiver,(bool)::core::convert::Into::into(focus))
221        }
222    }
223    #[doc = "`set_scaleOfAllRenderTargets(f32)` overload"]
224    fn set_scale_of_all_render_targets(self, value: impl ::core::convert::Into<f32>) -> () {
225        unsafe {
226            let __receiver = <XRDisplaySubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
227            ::unity::il2cpp_call!((::unity::module_base()+0x3f1f2d0usize)as*mut u8,();
228(XRDisplaySubsystem)__receiver,(f32)::core::convert::Into::into(value))
229        }
230    }
231    #[doc = "`set_zNear(f32)` overload"]
232    fn set_z_near(self, value: impl ::core::convert::Into<f32>) -> () {
233        unsafe {
234            let __receiver = <XRDisplaySubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235            ::unity::il2cpp_call!((::unity::module_base()+0x3f1f320usize)as*mut u8,();
236(XRDisplaySubsystem)__receiver,(f32)::core::convert::Into::into(value))
237        }
238    }
239    #[doc = "`set_zFar(f32)` overload"]
240    fn set_z_far(self, value: impl ::core::convert::Into<f32>) -> () {
241        unsafe {
242            let __receiver = <XRDisplaySubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
243            ::unity::il2cpp_call!((::unity::module_base()+0x3f1f370usize)as*mut u8,();
244(XRDisplaySubsystem)__receiver,(f32)::core::convert::Into::into(value))
245        }
246    }
247    #[doc = "`set_sRGB(bool)` overload"]
248    fn set_s_rgb(self, value: impl ::core::convert::Into<bool>) -> () {
249        unsafe {
250            let __receiver = <XRDisplaySubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
251            ::unity::il2cpp_call!((::unity::module_base()+0x3f1f3c0usize)as*mut u8,();
252(XRDisplaySubsystem)__receiver,(bool)::core::convert::Into::into(value))
253        }
254    }
255    #[doc = "`set_textureLayout(crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_TextureLayout)` overload"]
256    fn set_texture_layout(
257        self,
258        value: impl ::core::convert::Into<crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_TextureLayout>,
259    ) -> () {
260        unsafe {
261            let __receiver = <XRDisplaySubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
262            ::unity::il2cpp_call!((::unity::module_base()+0x3f1f410usize)as*mut u8,();
263(XRDisplaySubsystem)__receiver,(crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_TextureLayout)::core::convert::Into::into(value))
264        }
265    }
266    #[doc = "`SetMSAALevel(i32)` overload"]
267    fn set_msaa_level(self, level: impl ::core::convert::Into<i32>) -> () {
268        unsafe {
269            let __receiver = <XRDisplaySubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
270            ::unity::il2cpp_call!((::unity::module_base()+0x3f1f460usize)as*mut u8,();
271(XRDisplaySubsystem)__receiver,(i32)::core::convert::Into::into(level))
272        }
273    }
274    #[doc = "`set_disableLegacyRenderer(bool)` overload"]
275    fn set_disable_legacy_renderer(self, value: impl ::core::convert::Into<bool>) -> () {
276        unsafe {
277            let __receiver = <XRDisplaySubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
278            ::unity::il2cpp_call!((::unity::module_base()+0x3f1f4b0usize)as*mut u8,();
279(XRDisplaySubsystem)__receiver,(bool)::core::convert::Into::into(value))
280        }
281    }
282    #[doc = "`GetRenderPassCount()` overload"]
283    fn get_render_pass_count(self) -> i32 {
284        unsafe {
285            let __receiver = <XRDisplaySubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
286            ::unity::il2cpp_call!((::unity::module_base()+0x3f1f500usize)as*mut u8,i32;
287(XRDisplaySubsystem)__receiver)
288        }
289    }
290    #[doc = "`GetRenderPass(i32, *mutcrate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderPass)` overload"]
291    fn get_render_pass(
292        self,
293        render_pass_index: impl ::core::convert::Into<i32>,
294    ) -> crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderPass {
295        unsafe {
296            let __receiver = <XRDisplaySubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
297            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderPass>::uninit();
298            ::unity::il2cpp_call!((::unity::module_base()+0x3f1f550usize)as*mut u8,();
299(XRDisplaySubsystem)__receiver,(i32)::core::convert::Into::into(render_pass_index),(*mut crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderPass)__out_0.as_mut_ptr());
300            __out_0.assume_init()
301        }
302    }
303    #[doc = "`Internal_TryGetRenderPass(i32, *mutcrate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderPass)` overload"]
304    fn internal_try_get_render_pass(
305        self,
306        render_pass_index: impl ::core::convert::Into<i32>,
307    ) -> (bool, crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderPass) {
308        unsafe {
309            let __receiver = <XRDisplaySubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
310            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderPass>::uninit();
311            let __ret = {
312                ::unity::il2cpp_call!((::unity::module_base()+0x3f1f600usize)as*mut u8,bool;
313(XRDisplaySubsystem)__receiver,(i32)::core::convert::Into::into(render_pass_index),(*mut crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderPass)__out_0.as_mut_ptr())
314            };
315            (__ret, __out_0.assume_init())
316        }
317    }
318    #[doc = "`GetCullingParameters(crate::unity_engine::camera::Camera, i32, *mutcrate::unity_engine::rendering::scriptablecullingparameters::ScriptableCullingParameters)` overload"]
319    fn get_culling_parameters(
320        self,
321        camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
322        culling_pass_index: impl ::core::convert::Into<i32>,
323    ) -> crate::unity_engine::rendering::scriptablecullingparameters::ScriptableCullingParameters {
324        unsafe {
325            let __receiver = <XRDisplaySubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
326            let mut __out_0 =
327                ::core::mem::MaybeUninit::<crate::unity_engine::rendering::scriptablecullingparameters::ScriptableCullingParameters>::uninit();
328            ::unity::il2cpp_call!((::unity::module_base()+0x3f1f660usize)as*mut u8,();
329(XRDisplaySubsystem)__receiver,(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera),(i32)::core::convert::Into::into(culling_pass_index),(*mut crate::unity_engine::rendering::scriptablecullingparameters::ScriptableCullingParameters)__out_0.as_mut_ptr());
330            __out_0.assume_init()
331        }
332    }
333    #[doc = "`Internal_TryGetCullingParams(crate::unity_engine::camera::Camera, i32, *mutcrate::unity_engine::rendering::scriptablecullingparameters::ScriptableCullingParameters)` overload"]
334    fn internal_try_get_culling_params(
335        self,
336        camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
337        culling_pass_index: impl ::core::convert::Into<i32>,
338    ) -> (
339        bool,
340        crate::unity_engine::rendering::scriptablecullingparameters::ScriptableCullingParameters,
341    ) {
342        unsafe {
343            let __receiver = <XRDisplaySubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
344            let mut __out_0 =
345                ::core::mem::MaybeUninit::<crate::unity_engine::rendering::scriptablecullingparameters::ScriptableCullingParameters>::uninit();
346            let __ret = {
347                ::unity::il2cpp_call!((::unity::module_base()+0x3f1f7a0usize)as*mut u8,bool;
348(XRDisplaySubsystem)__receiver,(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera),(i32)::core::convert::Into::into(culling_pass_index),(*mut crate::unity_engine::rendering::scriptablecullingparameters::ScriptableCullingParameters)__out_0.as_mut_ptr())
349            };
350            (__ret, __out_0.assume_init())
351        }
352    }
353    #[doc = "`GetPreferredMirrorBlitMode()` overload"]
354    fn get_preferred_mirror_blit_mode(self) -> i32 {
355        unsafe {
356            let __receiver = <XRDisplaySubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
357            ::unity::il2cpp_call!((::unity::module_base()+0x3f1f810usize)as*mut u8,i32;
358(XRDisplaySubsystem)__receiver)
359        }
360    }
361    #[doc = "`GetMirrorViewBlitDesc(crate::unity_engine::rendertexture::RenderTexture, *mutcrate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRMirrorViewBlitDesc, i32)` overload"]
362    fn get_mirror_view_blit_desc(
363        self,
364        mirror_rt: impl ::core::convert::Into<crate::unity_engine::rendertexture::RenderTexture>,
365        mode: impl ::core::convert::Into<i32>,
366    ) -> (bool, crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRMirrorViewBlitDesc) {
367        unsafe {
368            let __receiver = <XRDisplaySubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
369            let mut __out_0 =
370                ::core::mem::MaybeUninit::<crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRMirrorViewBlitDesc>::uninit();
371            let __ret = {
372                ::unity::il2cpp_call!((::unity::module_base()+0x3f1f860usize)as*mut u8,bool;
373(XRDisplaySubsystem)__receiver,(crate::unity_engine::rendertexture::RenderTexture)::core::convert::Into::into(mirror_rt),(*mut crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRMirrorViewBlitDesc)__out_0.as_mut_ptr(),(i32)::core::convert::Into::into(mode))
374            };
375            (__ret, __out_0.assume_init())
376        }
377    }
378    #[doc = "`AddGraphicsThreadMirrorViewBlit(crate::unity_engine::rendering::commandbuffer::CommandBuffer, bool, i32)` overload"]
379    fn add_graphics_thread_mirror_view_blit(
380        self,
381        cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
382        allow_graphics_state_invalidate: impl ::core::convert::Into<bool>,
383        mode: impl ::core::convert::Into<i32>,
384    ) -> bool {
385        unsafe {
386            let __receiver = <XRDisplaySubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
387            ::unity::il2cpp_call!((::unity::module_base()+0x3f1f8d0usize)as*mut u8,bool;
388(XRDisplaySubsystem)__receiver,(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(bool)::core::convert::Into::into(allow_graphics_state_invalidate),(i32)::core::convert::Into::into(mode))
389        }
390    }
391    #[doc = "`.ctor()` overload"]
392    fn ctor(self) -> () {
393        unsafe {
394            let __receiver = <XRDisplaySubsystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
395            ::unity::il2cpp_call!((::unity::module_base()+0x3f1f940usize)as*mut u8,();
396(XRDisplaySubsystem)__receiver)
397        }
398    }
399}
400
401#[cfg(feature = "unity_engine-xr-xrdisplaysubsystem")]
402impl<__T: IXRDisplaySubsystem> IXRDisplaySubsystemMethods for __T {}
403
404#[cfg(feature = "unity_engine-xr-xrdisplaysubsystem")]
405impl XRDisplaySubsystem {
406    pub fn invoke_display_focus_changed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
407        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
408    }
409
410    pub fn set_scale_of_all_render_targets_method_info() -> &'static ::unity::il2cpp::MethodInfo {
411        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
412    }
413
414    pub fn set_z_near_method_info() -> &'static ::unity::il2cpp::MethodInfo {
415        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
416    }
417
418    pub fn set_z_far_method_info() -> &'static ::unity::il2cpp::MethodInfo {
419        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
420    }
421
422    pub fn set_s_rgb_method_info() -> &'static ::unity::il2cpp::MethodInfo {
423        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
424    }
425
426    pub fn set_texture_layout_method_info() -> &'static ::unity::il2cpp::MethodInfo {
427        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
428    }
429
430    pub fn set_msaa_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
431        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
432    }
433
434    pub fn set_disable_legacy_renderer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
435        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
436    }
437
438    pub fn get_render_pass_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
439        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
440    }
441
442    pub fn get_render_pass_method_info() -> &'static ::unity::il2cpp::MethodInfo {
443        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
444    }
445
446    pub fn internal_try_get_render_pass_method_info() -> &'static ::unity::il2cpp::MethodInfo {
447        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
448    }
449
450    pub fn get_culling_parameters_method_info() -> &'static ::unity::il2cpp::MethodInfo {
451        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
452    }
453
454    pub fn internal_try_get_culling_params_method_info() -> &'static ::unity::il2cpp::MethodInfo {
455        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
456    }
457
458    pub fn get_preferred_mirror_blit_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
459        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
460    }
461
462    pub fn get_mirror_view_blit_desc_method_info() -> &'static ::unity::il2cpp::MethodInfo {
463        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
464    }
465
466    pub fn add_graphics_thread_mirror_view_blit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
467        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
468    }
469
470    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
471        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
472    }
473}
474
475#[cfg(feature = "unity_engine-xr-xrdisplaysubsystem")]
476impl XRDisplaySubsystem {
477    #[doc = "`.ctor()` — no args"]
478    pub fn new() -> Self {
479        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
480            panic!(
481                "{}
482::{}
483 failed to instantiate",
484                ::core::stringify!(XRDisplaySubsystem),
485                ::core::stringify!(new),
486            )
487        });
488        <Self as IXRDisplaySubsystemMethods>::ctor(this);
489        this
490    }
491}
492
493#[cfg(feature = "unity_engine-xr-xrdisplaysubsystem")]
494impl XRDisplaySubsystem_XRRenderPass {
495    #[doc = "`GetRenderParameter_Injected(*mutcrate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderPass, crate::unity_engine::camera::Camera, i32, *mutcrate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderParameter)` overload"]
496    pub fn get_render_parameter_injected(
497        camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
498        render_parameter_index: impl ::core::convert::Into<i32>,
499    ) -> (
500        crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderPass,
501        crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderParameter,
502    ) {
503        unsafe {
504            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderPass>::uninit();
505            let mut __out_1 = ::core::mem::MaybeUninit::<crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderParameter>::uninit();
506            ::unity::il2cpp_call!((::unity::module_base()+0x3f1ff40usize)as*mut u8,();
507(*mut crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderPass)__out_0.as_mut_ptr(),(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera),(i32)::core::convert::Into::into(render_parameter_index),(*mut crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderParameter)__out_1.as_mut_ptr());
508            (__out_0.assume_init(), __out_1.assume_init())
509        }
510    }
511
512    #[doc = "`GetRenderParameterCount_Injected(*mutcrate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderPass)` overload"]
513    pub fn get_render_parameter_count_injected() -> (i32, crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderPass) {
514        unsafe {
515            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderPass>::uninit();
516            let __ret = {
517                ::unity::il2cpp_call!((::unity::module_base()+0x3f20000usize)as*mut u8,i32;
518(*mut crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderPass)__out_0.as_mut_ptr())
519            };
520            (__ret, __out_0.assume_init())
521        }
522    }
523}
524
525#[cfg(feature = "unity_engine-xr-xrdisplaysubsystem")]
526impl XRDisplaySubsystem_XRRenderPass {
527    #[doc = "`GetRenderParameter(crate::unity_engine::camera::Camera, i32, *mutcrate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderParameter)` overload"]
528    pub fn get_render_parameter(
529        &mut self,
530        camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
531        render_parameter_index: impl ::core::convert::Into<i32>,
532    ) -> crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderParameter {
533        unsafe {
534            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderParameter>::uninit();
535            ::unity::il2cpp_call!((::unity::module_base()+0x3f1fed0usize)as*mut u8,();
536(*mut XRDisplaySubsystem_XRRenderPass)self as*mut XRDisplaySubsystem_XRRenderPass,(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera),(i32)::core::convert::Into::into(render_parameter_index),(*mut crate::unity_engine::xr::xrdisplaysubsystem::XRDisplaySubsystem_XRRenderParameter)__out_0.as_mut_ptr());
537            __out_0.assume_init()
538        }
539    }
540
541    #[doc = "`GetRenderParameterCount()` overload"]
542    pub fn get_render_parameter_count(&mut self) -> i32 {
543        unsafe {
544            ::unity::il2cpp_call!((::unity::module_base()+0x3f1ffb0usize)as*mut u8,i32;
545(*mut XRDisplaySubsystem_XRRenderPass)self as*mut XRDisplaySubsystem_XRRenderPass)
546        }
547    }
548}
549
550#[cfg(feature = "unity_engine-xr-xrdisplaysubsystem")]
551impl XRDisplaySubsystem_XRRenderPass {
552    pub fn get_render_parameter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
553        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
554    }
555
556    pub fn get_render_parameter_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
557        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
558    }
559
560    pub fn get_render_parameter_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
561        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
562    }
563
564    pub fn get_render_parameter_count_injected_method_info() -> &'static ::unity::il2cpp::MethodInfo {
565        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
566    }
567}
568
569#[cfg(feature = "unity_engine-xr-xrdisplaysubsystem")]
570#[doc(hidden)]
571pub mod prelude {
572    pub use super::{
573        IXRDisplaySubsystem, IXRDisplaySubsystemMethods, XRDisplaySubsystem, XRDisplaySubsystem_TextureLayout, XRDisplaySubsystem_XRBlitParams,
574        XRDisplaySubsystem_XRMirrorViewBlitDesc, XRDisplaySubsystem_XRRenderParameter, XRDisplaySubsystem_XRRenderPass,
575    };
576    #[cfg(feature = "system-object")]
577    pub use crate::system::object::IObjectMethods;
578    #[cfg(feature = "system-enum")]
579    pub use crate::system::r#enum::IEnumMethods;
580    #[cfg(feature = "system-valuetype")]
581    pub use crate::system::valuetype::IValueTypeMethods;
582    #[cfg(feature = "unity_engine-integratedsubsystem")]
583    pub use crate::unity_engine::integratedsubsystem::IIntegratedSubsystemMethods;
584    #[cfg(feature = "unity_engine-integratedsubsystem_1")]
585    pub use crate::unity_engine::integratedsubsystem_1::IIntegratedSubsystem_1Methods;
586    pub use crate::{
587        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
588        unity_engine::{
589            integratedsubsystem::{IIntegratedSubsystem, IntegratedSubsystem},
590            integratedsubsystem_1::{IIntegratedSubsystem_1, IntegratedSubsystem_1},
591        },
592    };
593}