Skip to main content

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

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