Skip to main content

engage/generated/unity_engine/rendering/universal/custom/
customradialblur.rs

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