Skip to main content

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

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