engage/generated/unity_engine/rendering/
volumeparameter.rs1#[cfg(feature = "unity_engine-rendering-volumeparameter-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/volumeparameter/VolumeParameter.md"))]
11 #[::unity::class(namespace = "UnityEngine.Rendering", name = "VolumeParameter")]
12 #[parent(crate::system::object::Object)]
13 pub struct VolumeParameter {
14 #[static_field]
15 #[rename(name = "k_DebuggerDisplay")]
16 pub k_debugger_display: ::unity::Il2CppString,
17 #[offset(16)]
18 #[rename(name = "m_OverrideState")]
19 pub m_override_state: bool,
20 }
21}
22
23#[cfg(feature = "unity_engine-rendering-volumeparameter-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-rendering-volumeparameter")]
27impl VolumeParameter {
28 #[doc = "`IsObjectParameter(::unity::SystemType)` overload"]
29 pub fn is_object_parameter(r#type: impl ::core::convert::Into<::unity::SystemType>) -> bool {
30 unsafe {
31 ::unity::il2cpp_call!((::unity::module_base()+0x33e63b0usize)as*mut u8,bool;
32(::unity::SystemType)::core::convert::Into::into(r#type))
33 }
34 }
35}
36
37#[cfg(feature = "unity_engine-rendering-volumeparameter")]
38pub trait IVolumeParameterMethods: IVolumeParameter {
39 #[doc = "`get_overrideState()` overload"]
40 fn get_override_state(self) -> bool {
41 unsafe {
42 let __receiver = <VolumeParameter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
43 {
44 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
45 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
46 panic!(
47 "unity: virtual slot {}
48 out of range (vtable len {}
49) on the runtime class behind {}
50 (method `{}
51`)",
52 4usize,
53 __vt.len(),
54 <VolumeParameter as ::unity::ClassIdentity>::NAME,
55 "get_overrideState",
56 )
57 });
58 let __inner: extern "C" fn(VolumeParameter, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
59 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
60 __inner(__receiver, __mi)
61 }
62 }
63 }
64 #[doc = "`set_overrideState(bool)` overload"]
65 fn set_override_state(self, value: impl ::core::convert::Into<bool>) -> () {
66 unsafe {
67 let __receiver = <VolumeParameter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68 {
69 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
70 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
71 panic!(
72 "unity: virtual slot {}
73 out of range (vtable len {}
74) on the runtime class behind {}
75 (method `{}
76`)",
77 5usize,
78 __vt.len(),
79 <VolumeParameter as ::unity::ClassIdentity>::NAME,
80 "set_overrideState",
81 )
82 });
83 let __inner: extern "C" fn(VolumeParameter, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
84 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
85 __inner(__receiver, ::core::convert::Into::into(value), __mi)
86 }
87 }
88 }
89 #[doc = "`Interp(crate::unity_engine::rendering::volumeparameter::VolumeParameter, crate::unity_engine::rendering::volumeparameter::VolumeParameter, f32)` overload"]
90 fn interp(
91 self,
92 from: impl ::core::convert::Into<crate::unity_engine::rendering::volumeparameter::VolumeParameter>,
93 to: impl ::core::convert::Into<crate::unity_engine::rendering::volumeparameter::VolumeParameter>,
94 t: impl ::core::convert::Into<f32>,
95 ) -> () {
96 unsafe {
97 let __receiver = <VolumeParameter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 {
99 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
100 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
101 panic!(
102 "unity: virtual slot {}
103 out of range (vtable len {}
104) on the runtime class behind {}
105 (method `{}
106`)",
107 6usize,
108 __vt.len(),
109 <VolumeParameter as ::unity::ClassIdentity>::NAME,
110 "Interp",
111 )
112 });
113 let __inner: extern "C" fn(
114 VolumeParameter,
115 crate::unity_engine::rendering::volumeparameter::VolumeParameter,
116 crate::unity_engine::rendering::volumeparameter::VolumeParameter,
117 f32,
118 ::unity::OptionalMethod,
119 ) -> () = ::core::mem::transmute(__vi.method_ptr);
120 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
121 __inner(
122 __receiver,
123 ::core::convert::Into::into(from),
124 ::core::convert::Into::into(to),
125 ::core::convert::Into::into(t),
126 __mi,
127 )
128 }
129 }
130 }
131 fn get_value<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(self) -> M0 {
132 static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> =
133 ::std::sync::LazyLock::new(|| ::unity::lookup::method_info_on_class(<VolumeParameter as ::unity::ClassIdentity>::class(), "GetValue", 0));
134 #[allow(clippy::type_complexity)]
135 static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
136 ::std::sync::OnceLock::new();
137 let _ = false;
138 let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
139 ::core::result::Result::Ok(mi) => *mi,
140 ::core::result::Result::Err(e) => {
141 panic!(
142 "method lookup failed: {}
143::{}
144: {}
145",
146 <VolumeParameter as ::unity::ClassIdentity>::NAME,
147 "GetValue",
148 e
149 )
150 },
151 };
152 let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
153 let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
154 let __inflated: &'static ::unity::il2cpp::MethodInfo = {
155 let mut __guard = __cache.lock().unwrap();
156 *__guard
157 .entry(__key)
158 .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
159 };
160 unsafe {
161 let __receiver = <VolumeParameter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
162 let __f: extern "C" fn(VolumeParameter, ::unity::OptionalMethod) -> M0 = ::core::mem::transmute(__inflated.method_ptr);
163 let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
164 __f(__receiver, ::core::option::Option::Some(__mi_opaque))
165 }
166 }
167 #[doc = "`SetValue(crate::unity_engine::rendering::volumeparameter::VolumeParameter)` overload"]
168 fn set_value(self, parameter: impl ::core::convert::Into<crate::unity_engine::rendering::volumeparameter::VolumeParameter>) -> () {
169 unsafe {
170 let __receiver = <VolumeParameter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
171 {
172 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
173 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
174 panic!(
175 "unity: virtual slot {}
176 out of range (vtable len {}
177) on the runtime class behind {}
178 (method `{}
179`)",
180 7usize,
181 __vt.len(),
182 <VolumeParameter as ::unity::ClassIdentity>::NAME,
183 "SetValue",
184 )
185 });
186 let __inner: extern "C" fn(
187 VolumeParameter,
188 crate::unity_engine::rendering::volumeparameter::VolumeParameter,
189 ::unity::OptionalMethod,
190 ) -> () = ::core::mem::transmute(__vi.method_ptr);
191 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
192 __inner(__receiver, ::core::convert::Into::into(parameter), __mi)
193 }
194 }
195 }
196 #[doc = "`OnEnable()` overload"]
197 fn on_enable(self) -> () {
198 unsafe {
199 let __receiver = <VolumeParameter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
200 {
201 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
202 let __vi = *__vt.get(8usize).unwrap_or_else(|| {
203 panic!(
204 "unity: virtual slot {}
205 out of range (vtable len {}
206) on the runtime class behind {}
207 (method `{}
208`)",
209 8usize,
210 __vt.len(),
211 <VolumeParameter as ::unity::ClassIdentity>::NAME,
212 "OnEnable",
213 )
214 });
215 let __inner: extern "C" fn(VolumeParameter, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
216 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
217 __inner(__receiver, __mi)
218 }
219 }
220 }
221 #[doc = "`OnDisable()` overload"]
222 fn on_disable(self) -> () {
223 unsafe {
224 let __receiver = <VolumeParameter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
225 {
226 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
227 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
228 panic!(
229 "unity: virtual slot {}
230 out of range (vtable len {}
231) on the runtime class behind {}
232 (method `{}
233`)",
234 9usize,
235 __vt.len(),
236 <VolumeParameter as ::unity::ClassIdentity>::NAME,
237 "OnDisable",
238 )
239 });
240 let __inner: extern "C" fn(VolumeParameter, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
241 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
242 __inner(__receiver, __mi)
243 }
244 }
245 }
246 #[doc = "`Release()` overload"]
247 fn release(self) -> () {
248 unsafe {
249 let __receiver = <VolumeParameter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
250 {
251 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
252 let __vi = *__vt.get(10usize).unwrap_or_else(|| {
253 panic!(
254 "unity: virtual slot {}
255 out of range (vtable len {}
256) on the runtime class behind {}
257 (method `{}
258`)",
259 10usize,
260 __vt.len(),
261 <VolumeParameter as ::unity::ClassIdentity>::NAME,
262 "Release",
263 )
264 });
265 let __inner: extern "C" fn(VolumeParameter, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
266 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
267 __inner(__receiver, __mi)
268 }
269 }
270 }
271 #[doc = "`.ctor()` overload"]
272 fn ctor(self) -> () {
273 unsafe {
274 let __receiver = <VolumeParameter as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
275 ::unity::il2cpp_call!((::unity::module_base()+0x33e8970usize)as*mut u8,();
276(VolumeParameter)__receiver)
277 }
278 }
279}
280
281#[cfg(feature = "unity_engine-rendering-volumeparameter")]
282impl<__T: IVolumeParameter> IVolumeParameterMethods for __T {}
283
284#[cfg(feature = "unity_engine-rendering-volumeparameter")]
285impl VolumeParameter {
286 pub fn get_override_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
288 }
289
290 pub fn set_override_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
292 }
293
294 pub fn interp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
295 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
296 }
297
298 pub fn set_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
299 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
300 }
301
302 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
303 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
304 }
305
306 pub fn on_disable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
308 }
309
310 pub fn is_object_parameter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
312 }
313
314 pub fn release_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
316 }
317
318 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
320 }
321}
322
323#[cfg(feature = "unity_engine-rendering-volumeparameter")]
324impl VolumeParameter {
325 #[doc = "Direct (non-virtual) call to `VolumeParameter`'s own `get_overrideState`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
326 pub unsafe fn get_override_state(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
327 let __mi = Self::get_override_state_method_info();
328 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
329 __inner(this.into(), ::core::option::Option::None)
330 }
331
332 #[doc = "Direct (non-virtual) call to `VolumeParameter`'s own `set_overrideState`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
333 pub unsafe fn set_override_state(this: impl ::core::convert::Into<::unity::IlInstance>, value: bool) -> () {
334 let __mi = Self::set_override_state_method_info();
335 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
336 __inner(this.into(), value, ::core::option::Option::None)
337 }
338
339 #[doc = "Direct (non-virtual) call to `VolumeParameter`'s own `Interp`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
340 pub unsafe fn interp(
341 this: impl ::core::convert::Into<::unity::IlInstance>,
342 from: crate::unity_engine::rendering::volumeparameter::VolumeParameter,
343 to: crate::unity_engine::rendering::volumeparameter::VolumeParameter,
344 t: f32,
345 ) -> () {
346 let __mi = Self::interp_method_info();
347 let __inner: extern "C" fn(
348 ::unity::IlInstance,
349 crate::unity_engine::rendering::volumeparameter::VolumeParameter,
350 crate::unity_engine::rendering::volumeparameter::VolumeParameter,
351 f32,
352 ::unity::OptionalMethod,
353 ) -> () = ::core::mem::transmute(__mi.method_ptr);
354 __inner(this.into(), from, to, t, ::core::option::Option::None)
355 }
356
357 #[doc = "Direct (non-virtual) call to `VolumeParameter`'s own `SetValue`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
358 pub unsafe fn set_value(
359 this: impl ::core::convert::Into<::unity::IlInstance>,
360 parameter: crate::unity_engine::rendering::volumeparameter::VolumeParameter,
361 ) -> () {
362 let __mi = Self::set_value_method_info();
363 let __inner: extern "C" fn(
364 ::unity::IlInstance,
365 crate::unity_engine::rendering::volumeparameter::VolumeParameter,
366 ::unity::OptionalMethod,
367 ) -> () = ::core::mem::transmute(__mi.method_ptr);
368 __inner(this.into(), parameter, ::core::option::Option::None)
369 }
370
371 #[doc = "Direct (non-virtual) call to `VolumeParameter`'s own `OnEnable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
372 pub unsafe fn on_enable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
373 let __mi = Self::on_enable_method_info();
374 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
375 __inner(this.into(), ::core::option::Option::None)
376 }
377
378 #[doc = "Direct (non-virtual) call to `VolumeParameter`'s own `OnDisable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
379 pub unsafe fn on_disable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
380 let __mi = Self::on_disable_method_info();
381 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
382 __inner(this.into(), ::core::option::Option::None)
383 }
384
385 #[doc = "Direct (non-virtual) call to `VolumeParameter`'s own `Release`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
386 pub unsafe fn release(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
387 let __mi = Self::release_method_info();
388 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
389 __inner(this.into(), ::core::option::Option::None)
390 }
391}
392
393#[cfg(feature = "unity_engine-rendering-volumeparameter")]
394impl VolumeParameter {
395 #[doc = "`.ctor()` — no args"]
396 pub fn new() -> Self {
397 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
398 panic!(
399 "{}
400::{}
401 failed to instantiate",
402 ::core::stringify!(VolumeParameter),
403 ::core::stringify!(new),
404 )
405 });
406 <Self as IVolumeParameterMethods>::ctor(this);
407 this
408 }
409}
410
411#[cfg(feature = "unity_engine-rendering-volumeparameter")]
412#[doc(hidden)]
413pub mod prelude {
414 pub use super::{IVolumeParameter, IVolumeParameterMethods, VolumeParameter};
415 pub use crate::system::object::IObject;
416 #[cfg(feature = "system-object")]
417 pub use crate::system::object::IObjectMethods;
418}