Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-chromaticaberration-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            rendering::volumecomponent::{IVolumeComponent, VolumeComponent},
13            scriptableobject::{IScriptableObject, ScriptableObject},
14        },
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/chromaticaberration/ChromaticAberration.md"))]
18    #[::unity::class(namespace = "UnityEngine.Rendering.Universal", name = "ChromaticAberration")]
19    #[parent(crate::unity_engine::rendering::volumecomponent::VolumeComponent)]
20    pub struct ChromaticAberration {
21        #[offset(56)]
22        #[rename(name = "intensity")]
23        pub intensity: crate::unity_engine::rendering::clampedfloatparameter::ClampedFloatParameter,
24    }
25}
26
27#[cfg(feature = "unity_engine-rendering-universal-chromaticaberration-types")]
28pub use __types::*;
29
30#[cfg(feature = "unity_engine-rendering-universal-chromaticaberration")]
31pub trait IChromaticAberrationMethods: IChromaticAberration {
32    #[doc = "`IsActive()` overload"]
33    fn is_active(self) -> bool {
34        unsafe {
35            let __receiver = <ChromaticAberration as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36            {
37                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
38                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
39                    panic!(
40                        "unity: virtual slot {}
41 out of range (vtable len {}
42) on the runtime class behind {}
43 (method `{}
44`)",
45                        8usize,
46                        __vt.len(),
47                        <ChromaticAberration as ::unity::ClassIdentity>::NAME,
48                        "IsActive",
49                    )
50                });
51                let __inner: extern "C" fn(ChromaticAberration, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
52                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
53                __inner(__receiver, __mi)
54            }
55        }
56    }
57    #[doc = "`IsTileCompatible()` overload"]
58    fn is_tile_compatible(self) -> bool {
59        unsafe {
60            let __receiver = <ChromaticAberration as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61            {
62                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
63                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
64                    panic!(
65                        "unity: virtual slot {}
66 out of range (vtable len {}
67) on the runtime class behind {}
68 (method `{}
69`)",
70                        9usize,
71                        __vt.len(),
72                        <ChromaticAberration as ::unity::ClassIdentity>::NAME,
73                        "IsTileCompatible",
74                    )
75                });
76                let __inner: extern "C" fn(ChromaticAberration, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
77                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
78                __inner(__receiver, __mi)
79            }
80        }
81    }
82    #[doc = "`.ctor()` overload"]
83    fn ctor(self) -> () {
84        unsafe {
85            let __receiver = <ChromaticAberration as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86            ::unity::il2cpp_call!((::unity::module_base()+0x2a3e710usize)as*mut u8,();
87(ChromaticAberration)__receiver)
88        }
89    }
90}
91
92#[cfg(feature = "unity_engine-rendering-universal-chromaticaberration")]
93impl<__T: IChromaticAberration> IChromaticAberrationMethods for __T {}
94
95#[cfg(feature = "unity_engine-rendering-universal-chromaticaberration")]
96impl ChromaticAberration {
97    pub fn is_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
98        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
99    }
100
101    pub fn is_tile_compatible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
103    }
104
105    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
107    }
108}
109
110#[cfg(feature = "unity_engine-rendering-universal-chromaticaberration")]
111impl ChromaticAberration {
112    #[doc = "Direct (non-virtual) call to `ChromaticAberration`'s own `IsActive`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
113    pub unsafe fn is_active(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
114        let __mi = Self::is_active_method_info();
115        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
116        __inner(this.into(), ::core::option::Option::None)
117    }
118
119    #[doc = "Direct (non-virtual) call to `ChromaticAberration`'s own `IsTileCompatible`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
120    pub unsafe fn is_tile_compatible(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
121        let __mi = Self::is_tile_compatible_method_info();
122        let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
123        __inner(this.into(), ::core::option::Option::None)
124    }
125}
126
127#[cfg(feature = "unity_engine-rendering-universal-chromaticaberration")]
128impl ChromaticAberration {
129    #[doc = "`.ctor()` — no args"]
130    pub fn new() -> Self {
131        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
132            panic!(
133                "{}
134::{}
135 failed to instantiate",
136                ::core::stringify!(ChromaticAberration),
137                ::core::stringify!(new),
138            )
139        });
140        <Self as IChromaticAberrationMethods>::ctor(this);
141        this
142    }
143}
144
145#[cfg(feature = "unity_engine-rendering-universal-chromaticaberration")]
146#[doc(hidden)]
147pub mod prelude {
148    pub use super::{ChromaticAberration, IChromaticAberration, IChromaticAberrationMethods};
149    #[cfg(feature = "system-object")]
150    pub use crate::system::object::IObjectMethods;
151    #[cfg(feature = "unity_engine-object_2")]
152    pub use crate::unity_engine::object_2::IObject_2Methods;
153    #[cfg(feature = "unity_engine-rendering-volumecomponent")]
154    pub use crate::unity_engine::rendering::volumecomponent::IVolumeComponentMethods;
155    #[cfg(feature = "unity_engine-scriptableobject")]
156    pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
157    pub use crate::{
158        system::object::IObject,
159        unity_engine::{object_2::IObject_2, rendering::volumecomponent::IVolumeComponent, scriptableobject::IScriptableObject},
160    };
161}