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