Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-colorlookup-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/colorlookup/ColorLookup.md"))]
18    #[::unity::class(namespace = "UnityEngine.Rendering.Universal", name = "ColorLookup")]
19    #[parent(crate::unity_engine::rendering::volumecomponent::VolumeComponent)]
20    pub struct ColorLookup {
21        #[offset(56)]
22        #[rename(name = "texture")]
23        pub texture: crate::unity_engine::rendering::textureparameter::TextureParameter,
24        #[offset(64)]
25        #[rename(name = "contribution")]
26        pub contribution: crate::unity_engine::rendering::clampedfloatparameter::ClampedFloatParameter,
27    }
28}
29
30#[cfg(feature = "unity_engine-rendering-universal-colorlookup-types")]
31pub use __types::*;
32
33#[cfg(feature = "unity_engine-rendering-universal-colorlookup")]
34pub trait IColorLookupMethods: IColorLookup {
35    #[doc = "`IsActive()` overload"]
36    fn is_active(self) -> bool {
37        unsafe {
38            let __receiver = <ColorLookup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39            {
40                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
41                let __vi = *__vt.get(8usize).unwrap_or_else(|| {
42                    panic!(
43                        "unity: virtual slot {}
44 out of range (vtable len {}
45) on the runtime class behind {}
46 (method `{}
47`)",
48                        8usize,
49                        __vt.len(),
50                        <ColorLookup as ::unity::ClassIdentity>::NAME,
51                        "IsActive",
52                    )
53                });
54                let __inner: extern "C" fn(ColorLookup, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
55                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
56                __inner(__receiver, __mi)
57            }
58        }
59    }
60    #[doc = "`IsTileCompatible()` overload"]
61    fn is_tile_compatible(self) -> bool {
62        unsafe {
63            let __receiver = <ColorLookup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
64            {
65                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
66                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
67                    panic!(
68                        "unity: virtual slot {}
69 out of range (vtable len {}
70) on the runtime class behind {}
71 (method `{}
72`)",
73                        9usize,
74                        __vt.len(),
75                        <ColorLookup as ::unity::ClassIdentity>::NAME,
76                        "IsTileCompatible",
77                    )
78                });
79                let __inner: extern "C" fn(ColorLookup, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
80                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
81                __inner(__receiver, __mi)
82            }
83        }
84    }
85    #[doc = "`ValidateLUT()` overload"]
86    fn validate_lut(self) -> bool {
87        unsafe {
88            let __receiver = <ColorLookup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89            ::unity::il2cpp_call!((::unity::module_base()+0x2a40860usize)as*mut u8,bool;
90(ColorLookup)__receiver)
91        }
92    }
93    #[doc = "`.ctor()` overload"]
94    fn ctor(self) -> () {
95        unsafe {
96            let __receiver = <ColorLookup as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97            ::unity::il2cpp_call!((::unity::module_base()+0x2a40a90usize)as*mut u8,();
98(ColorLookup)__receiver)
99        }
100    }
101}
102
103#[cfg(feature = "unity_engine-rendering-universal-colorlookup")]
104impl<__T: IColorLookup> IColorLookupMethods for __T {}
105
106#[cfg(feature = "unity_engine-rendering-universal-colorlookup")]
107impl ColorLookup {
108    pub fn is_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
110    }
111
112    pub fn is_tile_compatible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
114    }
115
116    pub fn validate_lut_method_info() -> &'static ::unity::il2cpp::MethodInfo {
117        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
118    }
119
120    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
121        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
122    }
123}
124
125#[cfg(feature = "unity_engine-rendering-universal-colorlookup")]
126impl ColorLookup {
127    #[doc = "Direct (non-virtual) call to `ColorLookup`'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 `ColorLookup`'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-colorlookup")]
143impl ColorLookup {
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!(ColorLookup),
152                ::core::stringify!(new),
153            )
154        });
155        <Self as IColorLookupMethods>::ctor(this);
156        this
157    }
158}
159
160#[cfg(feature = "unity_engine-rendering-universal-colorlookup")]
161#[doc(hidden)]
162pub mod prelude {
163    pub use super::{ColorLookup, IColorLookup, IColorLookupMethods};
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}