Skip to main content

engage/generated/unity_engine/experimental/rendering/universal/
pixelperfectcamera.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-experimental-rendering-universal-pixelperfectcamera-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            behaviour::{Behaviour, IBehaviour},
12            component::{Component, IComponent},
13            monobehaviour::{IMonoBehaviour, MonoBehaviour},
14            object_2::{IObject_2, Object_2},
15        },
16    };
17
18    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/universal/pixelperfectcamera/PixelPerfectCamera.md"))]
19    #[::unity::class(namespace = "UnityEngine.Experimental.Rendering.Universal", name = "PixelPerfectCamera")]
20    #[parent(crate::unity_engine::monobehaviour::MonoBehaviour)]
21    pub struct PixelPerfectCamera {
22        #[offset(24)]
23        #[rename(name = "m_AssetsPPU")]
24        pub m_assets_ppu: i32,
25        #[offset(28)]
26        #[rename(name = "m_RefResolutionX")]
27        pub m_ref_resolution_x: i32,
28        #[offset(32)]
29        #[rename(name = "m_RefResolutionY")]
30        pub m_ref_resolution_y: i32,
31        #[offset(36)]
32        #[rename(name = "m_UpscaleRT")]
33        pub m_upscale_rt: bool,
34        #[offset(37)]
35        #[rename(name = "m_PixelSnapping")]
36        pub m_pixel_snapping: bool,
37        #[offset(38)]
38        #[rename(name = "m_CropFrameX")]
39        pub m_crop_frame_x: bool,
40        #[offset(39)]
41        #[rename(name = "m_CropFrameY")]
42        pub m_crop_frame_y: bool,
43        #[offset(40)]
44        #[rename(name = "m_StretchFill")]
45        pub m_stretch_fill: bool,
46        #[offset(48)]
47        #[rename(name = "m_Camera")]
48        pub m_camera: crate::unity_engine::camera::Camera,
49        #[offset(56)]
50        #[rename(name = "m_Internal")]
51        pub m_internal: crate::unity_engine::experimental::rendering::universal::pixelperfectcamerainternal::PixelPerfectCameraInternal,
52        #[offset(64)]
53        #[rename(name = "m_CinemachineCompatibilityMode")]
54        pub m_cinemachine_compatibility_mode: bool,
55    }
56}
57
58#[cfg(feature = "unity_engine-experimental-rendering-universal-pixelperfectcamera-types")]
59pub use __types::*;
60
61#[cfg(feature = "unity_engine-experimental-rendering-universal-pixelperfectcamera")]
62pub trait IPixelPerfectCameraMethods: IPixelPerfectCamera {
63    #[doc = "`get_assetsPPU()` overload"]
64    fn get_assets_ppu(self) -> i32 {
65        unsafe {
66            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            {
68                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
69                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
70                    panic!(
71                        "unity: virtual slot {}
72 out of range (vtable len {}
73) on the runtime class behind {}
74 (method `{}
75`)",
76                        4usize,
77                        __vt.len(),
78                        <PixelPerfectCamera as ::unity::ClassIdentity>::NAME,
79                        "get_assetsPPU",
80                    )
81                });
82                let __inner: extern "C" fn(PixelPerfectCamera, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
83                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
84                __inner(__receiver, __mi)
85            }
86        }
87    }
88    #[doc = "`set_assetsPPU(i32)` overload"]
89    fn set_assets_ppu(self, value: impl ::core::convert::Into<i32>) -> () {
90        unsafe {
91            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92            {
93                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
94                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
95                    panic!(
96                        "unity: virtual slot {}
97 out of range (vtable len {}
98) on the runtime class behind {}
99 (method `{}
100`)",
101                        5usize,
102                        __vt.len(),
103                        <PixelPerfectCamera as ::unity::ClassIdentity>::NAME,
104                        "set_assetsPPU",
105                    )
106                });
107                let __inner: extern "C" fn(PixelPerfectCamera, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
108                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
109                __inner(__receiver, ::core::convert::Into::into(value), __mi)
110            }
111        }
112    }
113    #[doc = "`get_refResolutionX()` overload"]
114    fn get_ref_resolution_x(self) -> i32 {
115        unsafe {
116            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
117            {
118                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
119                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
120                    panic!(
121                        "unity: virtual slot {}
122 out of range (vtable len {}
123) on the runtime class behind {}
124 (method `{}
125`)",
126                        6usize,
127                        __vt.len(),
128                        <PixelPerfectCamera as ::unity::ClassIdentity>::NAME,
129                        "get_refResolutionX",
130                    )
131                });
132                let __inner: extern "C" fn(PixelPerfectCamera, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
133                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
134                __inner(__receiver, __mi)
135            }
136        }
137    }
138    #[doc = "`set_refResolutionX(i32)` overload"]
139    fn set_ref_resolution_x(self, value: impl ::core::convert::Into<i32>) -> () {
140        unsafe {
141            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
142            {
143                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
144                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
145                    panic!(
146                        "unity: virtual slot {}
147 out of range (vtable len {}
148) on the runtime class behind {}
149 (method `{}
150`)",
151                        7usize,
152                        __vt.len(),
153                        <PixelPerfectCamera as ::unity::ClassIdentity>::NAME,
154                        "set_refResolutionX",
155                    )
156                });
157                let __inner: extern "C" fn(PixelPerfectCamera, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
158                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
159                __inner(__receiver, ::core::convert::Into::into(value), __mi)
160            }
161        }
162    }
163    #[doc = "`get_refResolutionY()` overload"]
164    fn get_ref_resolution_y(self) -> i32 {
165        unsafe {
166            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167            {
168                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
169                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
170                    panic!(
171                        "unity: virtual slot {}
172 out of range (vtable len {}
173) on the runtime class behind {}
174 (method `{}
175`)",
176                        8usize,
177                        __vt.len(),
178                        <PixelPerfectCamera as ::unity::ClassIdentity>::NAME,
179                        "get_refResolutionY",
180                    )
181                });
182                let __inner: extern "C" fn(PixelPerfectCamera, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__vi.method_ptr);
183                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
184                __inner(__receiver, __mi)
185            }
186        }
187    }
188    #[doc = "`set_refResolutionY(i32)` overload"]
189    fn set_ref_resolution_y(self, value: impl ::core::convert::Into<i32>) -> () {
190        unsafe {
191            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
192            {
193                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
194                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
195                    panic!(
196                        "unity: virtual slot {}
197 out of range (vtable len {}
198) on the runtime class behind {}
199 (method `{}
200`)",
201                        9usize,
202                        __vt.len(),
203                        <PixelPerfectCamera as ::unity::ClassIdentity>::NAME,
204                        "set_refResolutionY",
205                    )
206                });
207                let __inner: extern "C" fn(PixelPerfectCamera, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
208                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
209                __inner(__receiver, ::core::convert::Into::into(value), __mi)
210            }
211        }
212    }
213    #[doc = "`get_upscaleRT()` overload"]
214    fn get_upscale_rt(self) -> bool {
215        unsafe {
216            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
217            {
218                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
219                let __vi = *__vt.get(10usize).unwrap_or_else(|| {
220                    panic!(
221                        "unity: virtual slot {}
222 out of range (vtable len {}
223) on the runtime class behind {}
224 (method `{}
225`)",
226                        10usize,
227                        __vt.len(),
228                        <PixelPerfectCamera as ::unity::ClassIdentity>::NAME,
229                        "get_upscaleRT",
230                    )
231                });
232                let __inner: extern "C" fn(PixelPerfectCamera, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
233                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
234                __inner(__receiver, __mi)
235            }
236        }
237    }
238    #[doc = "`set_upscaleRT(bool)` overload"]
239    fn set_upscale_rt(self, value: impl ::core::convert::Into<bool>) -> () {
240        unsafe {
241            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
242            {
243                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
244                let __vi = *__vt.get(11usize).unwrap_or_else(|| {
245                    panic!(
246                        "unity: virtual slot {}
247 out of range (vtable len {}
248) on the runtime class behind {}
249 (method `{}
250`)",
251                        11usize,
252                        __vt.len(),
253                        <PixelPerfectCamera as ::unity::ClassIdentity>::NAME,
254                        "set_upscaleRT",
255                    )
256                });
257                let __inner: extern "C" fn(PixelPerfectCamera, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
258                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
259                __inner(__receiver, ::core::convert::Into::into(value), __mi)
260            }
261        }
262    }
263    #[doc = "`get_pixelSnapping()` overload"]
264    fn get_pixel_snapping(self) -> bool {
265        unsafe {
266            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
267            {
268                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
269                let __vi = *__vt.get(12usize).unwrap_or_else(|| {
270                    panic!(
271                        "unity: virtual slot {}
272 out of range (vtable len {}
273) on the runtime class behind {}
274 (method `{}
275`)",
276                        12usize,
277                        __vt.len(),
278                        <PixelPerfectCamera as ::unity::ClassIdentity>::NAME,
279                        "get_pixelSnapping",
280                    )
281                });
282                let __inner: extern "C" fn(PixelPerfectCamera, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
283                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
284                __inner(__receiver, __mi)
285            }
286        }
287    }
288    #[doc = "`set_pixelSnapping(bool)` overload"]
289    fn set_pixel_snapping(self, value: impl ::core::convert::Into<bool>) -> () {
290        unsafe {
291            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
292            {
293                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
294                let __vi = *__vt.get(13usize).unwrap_or_else(|| {
295                    panic!(
296                        "unity: virtual slot {}
297 out of range (vtable len {}
298) on the runtime class behind {}
299 (method `{}
300`)",
301                        13usize,
302                        __vt.len(),
303                        <PixelPerfectCamera as ::unity::ClassIdentity>::NAME,
304                        "set_pixelSnapping",
305                    )
306                });
307                let __inner: extern "C" fn(PixelPerfectCamera, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
308                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
309                __inner(__receiver, ::core::convert::Into::into(value), __mi)
310            }
311        }
312    }
313    #[doc = "`get_cropFrameX()` overload"]
314    fn get_crop_frame_x(self) -> bool {
315        unsafe {
316            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
317            {
318                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
319                let __vi = *__vt.get(14usize).unwrap_or_else(|| {
320                    panic!(
321                        "unity: virtual slot {}
322 out of range (vtable len {}
323) on the runtime class behind {}
324 (method `{}
325`)",
326                        14usize,
327                        __vt.len(),
328                        <PixelPerfectCamera as ::unity::ClassIdentity>::NAME,
329                        "get_cropFrameX",
330                    )
331                });
332                let __inner: extern "C" fn(PixelPerfectCamera, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
333                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
334                __inner(__receiver, __mi)
335            }
336        }
337    }
338    #[doc = "`set_cropFrameX(bool)` overload"]
339    fn set_crop_frame_x(self, value: impl ::core::convert::Into<bool>) -> () {
340        unsafe {
341            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
342            {
343                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
344                let __vi = *__vt.get(15usize).unwrap_or_else(|| {
345                    panic!(
346                        "unity: virtual slot {}
347 out of range (vtable len {}
348) on the runtime class behind {}
349 (method `{}
350`)",
351                        15usize,
352                        __vt.len(),
353                        <PixelPerfectCamera as ::unity::ClassIdentity>::NAME,
354                        "set_cropFrameX",
355                    )
356                });
357                let __inner: extern "C" fn(PixelPerfectCamera, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
358                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
359                __inner(__receiver, ::core::convert::Into::into(value), __mi)
360            }
361        }
362    }
363    #[doc = "`get_cropFrameY()` overload"]
364    fn get_crop_frame_y(self) -> bool {
365        unsafe {
366            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
367            {
368                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
369                let __vi = *__vt.get(16usize).unwrap_or_else(|| {
370                    panic!(
371                        "unity: virtual slot {}
372 out of range (vtable len {}
373) on the runtime class behind {}
374 (method `{}
375`)",
376                        16usize,
377                        __vt.len(),
378                        <PixelPerfectCamera as ::unity::ClassIdentity>::NAME,
379                        "get_cropFrameY",
380                    )
381                });
382                let __inner: extern "C" fn(PixelPerfectCamera, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
383                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
384                __inner(__receiver, __mi)
385            }
386        }
387    }
388    #[doc = "`set_cropFrameY(bool)` overload"]
389    fn set_crop_frame_y(self, value: impl ::core::convert::Into<bool>) -> () {
390        unsafe {
391            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
392            {
393                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
394                let __vi = *__vt.get(17usize).unwrap_or_else(|| {
395                    panic!(
396                        "unity: virtual slot {}
397 out of range (vtable len {}
398) on the runtime class behind {}
399 (method `{}
400`)",
401                        17usize,
402                        __vt.len(),
403                        <PixelPerfectCamera as ::unity::ClassIdentity>::NAME,
404                        "set_cropFrameY",
405                    )
406                });
407                let __inner: extern "C" fn(PixelPerfectCamera, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
408                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
409                __inner(__receiver, ::core::convert::Into::into(value), __mi)
410            }
411        }
412    }
413    #[doc = "`get_stretchFill()` overload"]
414    fn get_stretch_fill(self) -> bool {
415        unsafe {
416            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
417            {
418                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
419                let __vi = *__vt.get(18usize).unwrap_or_else(|| {
420                    panic!(
421                        "unity: virtual slot {}
422 out of range (vtable len {}
423) on the runtime class behind {}
424 (method `{}
425`)",
426                        18usize,
427                        __vt.len(),
428                        <PixelPerfectCamera as ::unity::ClassIdentity>::NAME,
429                        "get_stretchFill",
430                    )
431                });
432                let __inner: extern "C" fn(PixelPerfectCamera, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
433                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
434                __inner(__receiver, __mi)
435            }
436        }
437    }
438    #[doc = "`set_stretchFill(bool)` overload"]
439    fn set_stretch_fill(self, value: impl ::core::convert::Into<bool>) -> () {
440        unsafe {
441            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
442            {
443                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
444                let __vi = *__vt.get(19usize).unwrap_or_else(|| {
445                    panic!(
446                        "unity: virtual slot {}
447 out of range (vtable len {}
448) on the runtime class behind {}
449 (method `{}
450`)",
451                        19usize,
452                        __vt.len(),
453                        <PixelPerfectCamera as ::unity::ClassIdentity>::NAME,
454                        "set_stretchFill",
455                    )
456                });
457                let __inner: extern "C" fn(PixelPerfectCamera, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
458                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
459                __inner(__receiver, ::core::convert::Into::into(value), __mi)
460            }
461        }
462    }
463    #[doc = "`get_pixelRatio()` overload"]
464    fn get_pixel_ratio(self) -> i32 {
465        unsafe {
466            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
467            ::unity::il2cpp_call!((::unity::module_base()+0x3195a00usize)as*mut u8,i32;
468(PixelPerfectCamera)__receiver)
469        }
470    }
471    #[doc = "`RoundToPixel(crate::unity_engine::vector3::Vector3)` overload"]
472    fn round_to_pixel(self, position: impl ::core::convert::Into<crate::unity_engine::vector3::Vector3>) -> crate::unity_engine::vector3::Vector3 {
473        unsafe {
474            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
475            ::unity::il2cpp_call!((::unity::module_base()+0x3195a40usize)as*mut u8,crate::unity_engine::vector3::Vector3;
476(PixelPerfectCamera)__receiver,(crate::unity_engine::vector3::Vector3)::core::convert::Into::into(position))
477        }
478    }
479    #[doc = "`CorrectCinemachineOrthoSize(f32)` overload"]
480    fn correct_cinemachine_ortho_size(self, target_ortho_size: impl ::core::convert::Into<f32>) -> f32 {
481        unsafe {
482            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
483            ::unity::il2cpp_call!((::unity::module_base()+0x3195c00usize)as*mut u8,f32;
484(PixelPerfectCamera)__receiver,(f32)::core::convert::Into::into(target_ortho_size))
485        }
486    }
487    #[doc = "`get_isRunning()` overload"]
488    fn get_is_running(self) -> bool {
489        unsafe {
490            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
491            ::unity::il2cpp_call!((::unity::module_base()+0x3195ef0usize)as*mut u8,bool;
492(PixelPerfectCamera)__receiver)
493        }
494    }
495    #[doc = "`get_finalBlitFilterMode()` overload"]
496    fn get_final_blit_filter_mode(self) -> crate::unity_engine::filtermode::FilterMode {
497        unsafe {
498            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
499            ::unity::il2cpp_call!((::unity::module_base()+0x3195f00usize)as*mut u8,crate::unity_engine::filtermode::FilterMode;
500(PixelPerfectCamera)__receiver)
501        }
502    }
503    #[doc = "`get_offscreenRTSize()` overload"]
504    fn get_offscreen_rt_size(self) -> crate::unity_engine::vector2int::Vector2Int {
505        unsafe {
506            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
507            ::unity::il2cpp_call!((::unity::module_base()+0x3195f40usize)as*mut u8,crate::unity_engine::vector2int::Vector2Int;
508(PixelPerfectCamera)__receiver)
509        }
510    }
511    #[doc = "`PixelSnap()` overload"]
512    fn pixel_snap(self) -> () {
513        unsafe {
514            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
515            ::unity::il2cpp_call!((::unity::module_base()+0x3195f90usize)as*mut u8,();
516(PixelPerfectCamera)__receiver)
517        }
518    }
519    #[doc = "`Awake()` overload"]
520    fn awake(self) -> () {
521        unsafe {
522            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
523            ::unity::il2cpp_call!((::unity::module_base()+0x3196120usize)as*mut u8,();
524(PixelPerfectCamera)__receiver)
525        }
526    }
527    #[doc = "`OnBeginCameraRendering(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, crate::unity_engine::camera::Camera)` overload"]
528    fn on_begin_camera_rendering(
529        self,
530        context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
531        camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
532    ) -> () {
533        unsafe {
534            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
535            ::unity::il2cpp_call!((::unity::module_base()+0x3196280usize)as*mut u8,();
536(PixelPerfectCamera)__receiver,(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext)::core::convert::Into::into(context),(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera))
537        }
538    }
539    #[doc = "`OnEndCameraRendering(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, crate::unity_engine::camera::Camera)` overload"]
540    fn on_end_camera_rendering(
541        self,
542        context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
543        camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
544    ) -> () {
545        unsafe {
546            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
547            ::unity::il2cpp_call!((::unity::module_base()+0x3196ea0usize)as*mut u8,();
548(PixelPerfectCamera)__receiver,(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext)::core::convert::Into::into(context),(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera))
549        }
550    }
551    #[doc = "`OnEnable()` overload"]
552    fn on_enable(self) -> () {
553        unsafe {
554            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
555            ::unity::il2cpp_call!((::unity::module_base()+0x3196f40usize)as*mut u8,();
556(PixelPerfectCamera)__receiver)
557        }
558    }
559    #[doc = "`OnDisable()` overload"]
560    fn on_disable(self) -> () {
561        unsafe {
562            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
563            ::unity::il2cpp_call!((::unity::module_base()+0x3197060usize)as*mut u8,();
564(PixelPerfectCamera)__receiver)
565        }
566    }
567    #[doc = "`.ctor()` overload"]
568    fn ctor(self) -> () {
569        unsafe {
570            let __receiver = <PixelPerfectCamera as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
571            ::unity::il2cpp_call!((::unity::module_base()+0x31971d0usize)as*mut u8,();
572(PixelPerfectCamera)__receiver)
573        }
574    }
575}
576
577#[cfg(feature = "unity_engine-experimental-rendering-universal-pixelperfectcamera")]
578impl<__T: IPixelPerfectCamera> IPixelPerfectCameraMethods for __T {}
579
580#[cfg(feature = "unity_engine-experimental-rendering-universal-pixelperfectcamera")]
581impl PixelPerfectCamera {
582    pub fn get_assets_ppu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
583        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
584    }
585
586    pub fn set_assets_ppu_method_info() -> &'static ::unity::il2cpp::MethodInfo {
587        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
588    }
589
590    pub fn get_ref_resolution_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
591        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
592    }
593
594    pub fn set_ref_resolution_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
595        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
596    }
597
598    pub fn get_ref_resolution_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
599        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
600    }
601
602    pub fn set_ref_resolution_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
603        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
604    }
605
606    pub fn get_upscale_rt_method_info() -> &'static ::unity::il2cpp::MethodInfo {
607        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
608    }
609
610    pub fn set_upscale_rt_method_info() -> &'static ::unity::il2cpp::MethodInfo {
611        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
612    }
613
614    pub fn get_pixel_snapping_method_info() -> &'static ::unity::il2cpp::MethodInfo {
615        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
616    }
617
618    pub fn set_pixel_snapping_method_info() -> &'static ::unity::il2cpp::MethodInfo {
619        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
620    }
621
622    pub fn get_crop_frame_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
623        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
624    }
625
626    pub fn set_crop_frame_x_method_info() -> &'static ::unity::il2cpp::MethodInfo {
627        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
628    }
629
630    pub fn get_crop_frame_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
631        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
632    }
633
634    pub fn set_crop_frame_y_method_info() -> &'static ::unity::il2cpp::MethodInfo {
635        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
636    }
637
638    pub fn get_stretch_fill_method_info() -> &'static ::unity::il2cpp::MethodInfo {
639        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
640    }
641
642    pub fn set_stretch_fill_method_info() -> &'static ::unity::il2cpp::MethodInfo {
643        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
644    }
645
646    pub fn get_pixel_ratio_method_info() -> &'static ::unity::il2cpp::MethodInfo {
647        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
648    }
649
650    pub fn round_to_pixel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
651        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
652    }
653
654    pub fn correct_cinemachine_ortho_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
655        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
656    }
657
658    pub fn get_is_running_method_info() -> &'static ::unity::il2cpp::MethodInfo {
659        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
660    }
661
662    pub fn get_final_blit_filter_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
663        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
664    }
665
666    pub fn get_offscreen_rt_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
667        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
668    }
669
670    pub fn pixel_snap_method_info() -> &'static ::unity::il2cpp::MethodInfo {
671        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
672    }
673
674    pub fn awake_method_info() -> &'static ::unity::il2cpp::MethodInfo {
675        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
676    }
677
678    pub fn on_begin_camera_rendering_method_info() -> &'static ::unity::il2cpp::MethodInfo {
679        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
680    }
681
682    pub fn on_end_camera_rendering_method_info() -> &'static ::unity::il2cpp::MethodInfo {
683        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
684    }
685
686    pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
687        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
688    }
689
690    pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
691        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
692    }
693
694    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
695        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
696    }
697}
698
699#[cfg(feature = "unity_engine-experimental-rendering-universal-pixelperfectcamera")]
700impl PixelPerfectCamera {
701    #[doc = "Direct (non-virtual) call to `PixelPerfectCamera`'s own `get_assetsPPU`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
702    pub unsafe fn get_assets_ppu(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
703        let __mi = Self::get_assets_ppu_method_info();
704        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
705        __inner(this.into(), ::core::option::Option::None)
706    }
707
708    #[doc = "Direct (non-virtual) call to `PixelPerfectCamera`'s own `set_assetsPPU`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
709    pub unsafe fn set_assets_ppu(this: impl ::core::convert::Into<::unity::IlInstance>, value: i32) -> () {
710        let __mi = Self::set_assets_ppu_method_info();
711        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
712        __inner(this.into(), value, ::core::option::Option::None)
713    }
714
715    #[doc = "Direct (non-virtual) call to `PixelPerfectCamera`'s own `get_refResolutionX`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
716    pub unsafe fn get_ref_resolution_x(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
717        let __mi = Self::get_ref_resolution_x_method_info();
718        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
719        __inner(this.into(), ::core::option::Option::None)
720    }
721
722    #[doc = "Direct (non-virtual) call to `PixelPerfectCamera`'s own `set_refResolutionX`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
723    pub unsafe fn set_ref_resolution_x(this: impl ::core::convert::Into<::unity::IlInstance>, value: i32) -> () {
724        let __mi = Self::set_ref_resolution_x_method_info();
725        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
726        __inner(this.into(), value, ::core::option::Option::None)
727    }
728
729    #[doc = "Direct (non-virtual) call to `PixelPerfectCamera`'s own `get_refResolutionY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
730    pub unsafe fn get_ref_resolution_y(this: impl ::core::convert::Into<::unity::IlInstance>) -> i32 {
731        let __mi = Self::get_ref_resolution_y_method_info();
732        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> i32 = ::core::mem::transmute(__mi.method_ptr);
733        __inner(this.into(), ::core::option::Option::None)
734    }
735
736    #[doc = "Direct (non-virtual) call to `PixelPerfectCamera`'s own `set_refResolutionY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
737    pub unsafe fn set_ref_resolution_y(this: impl ::core::convert::Into<::unity::IlInstance>, value: i32) -> () {
738        let __mi = Self::set_ref_resolution_y_method_info();
739        let __inner: extern "C" fn(::unity::IlInstance, i32, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
740        __inner(this.into(), value, ::core::option::Option::None)
741    }
742
743    #[doc = "Direct (non-virtual) call to `PixelPerfectCamera`'s own `get_upscaleRT`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
744    pub unsafe fn get_upscale_rt(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
745        let __mi = Self::get_upscale_rt_method_info();
746        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
747        __inner(this.into(), ::core::option::Option::None)
748    }
749
750    #[doc = "Direct (non-virtual) call to `PixelPerfectCamera`'s own `set_upscaleRT`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
751    pub unsafe fn set_upscale_rt(this: impl ::core::convert::Into<::unity::IlInstance>, value: bool) -> () {
752        let __mi = Self::set_upscale_rt_method_info();
753        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
754        __inner(this.into(), value, ::core::option::Option::None)
755    }
756
757    #[doc = "Direct (non-virtual) call to `PixelPerfectCamera`'s own `get_pixelSnapping`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
758    pub unsafe fn get_pixel_snapping(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
759        let __mi = Self::get_pixel_snapping_method_info();
760        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
761        __inner(this.into(), ::core::option::Option::None)
762    }
763
764    #[doc = "Direct (non-virtual) call to `PixelPerfectCamera`'s own `set_pixelSnapping`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
765    pub unsafe fn set_pixel_snapping(this: impl ::core::convert::Into<::unity::IlInstance>, value: bool) -> () {
766        let __mi = Self::set_pixel_snapping_method_info();
767        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
768        __inner(this.into(), value, ::core::option::Option::None)
769    }
770
771    #[doc = "Direct (non-virtual) call to `PixelPerfectCamera`'s own `get_cropFrameX`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
772    pub unsafe fn get_crop_frame_x(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
773        let __mi = Self::get_crop_frame_x_method_info();
774        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
775        __inner(this.into(), ::core::option::Option::None)
776    }
777
778    #[doc = "Direct (non-virtual) call to `PixelPerfectCamera`'s own `set_cropFrameX`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
779    pub unsafe fn set_crop_frame_x(this: impl ::core::convert::Into<::unity::IlInstance>, value: bool) -> () {
780        let __mi = Self::set_crop_frame_x_method_info();
781        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
782        __inner(this.into(), value, ::core::option::Option::None)
783    }
784
785    #[doc = "Direct (non-virtual) call to `PixelPerfectCamera`'s own `get_cropFrameY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
786    pub unsafe fn get_crop_frame_y(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
787        let __mi = Self::get_crop_frame_y_method_info();
788        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
789        __inner(this.into(), ::core::option::Option::None)
790    }
791
792    #[doc = "Direct (non-virtual) call to `PixelPerfectCamera`'s own `set_cropFrameY`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
793    pub unsafe fn set_crop_frame_y(this: impl ::core::convert::Into<::unity::IlInstance>, value: bool) -> () {
794        let __mi = Self::set_crop_frame_y_method_info();
795        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
796        __inner(this.into(), value, ::core::option::Option::None)
797    }
798
799    #[doc = "Direct (non-virtual) call to `PixelPerfectCamera`'s own `get_stretchFill`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
800    pub unsafe fn get_stretch_fill(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
801        let __mi = Self::get_stretch_fill_method_info();
802        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
803        __inner(this.into(), ::core::option::Option::None)
804    }
805
806    #[doc = "Direct (non-virtual) call to `PixelPerfectCamera`'s own `set_stretchFill`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
807    pub unsafe fn set_stretch_fill(this: impl ::core::convert::Into<::unity::IlInstance>, value: bool) -> () {
808        let __mi = Self::set_stretch_fill_method_info();
809        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
810        __inner(this.into(), value, ::core::option::Option::None)
811    }
812}
813
814#[cfg(feature = "unity_engine-experimental-rendering-universal-pixelperfectcamera")]
815impl PixelPerfectCamera {
816    #[doc = "`.ctor()` — no args"]
817    pub fn new() -> Self {
818        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
819            panic!(
820                "{}
821::{}
822 failed to instantiate",
823                ::core::stringify!(PixelPerfectCamera),
824                ::core::stringify!(new),
825            )
826        });
827        <Self as IPixelPerfectCameraMethods>::ctor(this);
828        this
829    }
830}
831
832#[cfg(feature = "unity_engine-experimental-rendering-universal-pixelperfectcamera")]
833#[doc(hidden)]
834pub mod prelude {
835    pub use super::{IPixelPerfectCamera, IPixelPerfectCameraMethods, PixelPerfectCamera};
836    #[cfg(feature = "system-object")]
837    pub use crate::system::object::IObjectMethods;
838    #[cfg(feature = "unity_engine-behaviour")]
839    pub use crate::unity_engine::behaviour::IBehaviourMethods;
840    #[cfg(feature = "unity_engine-component")]
841    pub use crate::unity_engine::component::IComponentMethods;
842    #[cfg(feature = "unity_engine-monobehaviour")]
843    pub use crate::unity_engine::monobehaviour::IMonoBehaviourMethods;
844    #[cfg(feature = "unity_engine-object_2")]
845    pub use crate::unity_engine::object_2::IObject_2Methods;
846    pub use crate::{
847        system::object::IObject,
848        unity_engine::{behaviour::IBehaviour, component::IComponent, monobehaviour::IMonoBehaviour, object_2::IObject_2},
849    };
850}