Skip to main content

engage/generated/app/
rendermanager.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "app-rendermanager-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/app/rendermanager/RenderManager.md"))]
11    #[::unity::class(namespace = "App", name = "RenderManager")]
12    #[parent(crate::system::object::Object)]
13    pub struct RenderManager {
14        #[static_field]
15        #[rename(name = "s_ScaleStack")]
16        pub s_scale_stack: crate::system::collections::generic::stack_1::Stack_1<f32>,
17        #[static_field]
18        #[rename(name = "s_ScaleStackOnGpuSaved")]
19        pub s_scale_stack_on_gpu_saved: crate::system::collections::generic::stack_1::Stack_1<f32>,
20        #[static_field]
21        #[rename(name = "s_LodBiasStack")]
22        pub s_lod_bias_stack: crate::system::collections::generic::stack_1::Stack_1<f32>,
23        #[static_field]
24        #[rename(name = "s_LodBiasStackOnGpuSaved")]
25        pub s_lod_bias_stack_on_gpu_saved: crate::system::collections::generic::stack_1::Stack_1<f32>,
26        #[static_field]
27        #[rename(name = "s_BlurStack")]
28        pub s_blur_stack: crate::system::collections::generic::stack_1::Stack_1<i32>,
29        #[static_field]
30        #[rename(name = "s_ColorStack")]
31        pub s_color_stack: crate::system::collections::generic::stack_1::Stack_1<crate::unity_engine::color::Color>,
32        #[static_field]
33        #[rename(name = "s_ColorRateStack")]
34        pub s_color_rate_stack: crate::system::collections::generic::stack_1::Stack_1<f32>,
35        #[static_field]
36        #[rename(name = "s_CrossFadeAnimationDuration")]
37        pub s_cross_fade_animation_duration: crate::system::collections::generic::stack_1::Stack_1<f32>,
38    }
39}
40
41#[cfg(feature = "app-rendermanager-types")]
42pub use __types::*;
43
44#[cfg(feature = "app-rendermanager")]
45impl RenderManager {
46    #[doc = "`PushRenderScale(::unity::Il2CppString)` overload"]
47    pub fn push_render_scale(name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
48        unsafe {
49            ::unity::il2cpp_call!((::unity::module_base()+0x2011800usize)as*mut u8,();
50(::unity::Il2CppString)::core::convert::Into::into(name))
51        }
52    }
53
54    #[doc = "`PushRenderScale(f32)` overload"]
55    pub fn push_render_scale_2(scale: impl ::core::convert::Into<f32>) -> () {
56        unsafe {
57            ::unity::il2cpp_call!((::unity::module_base()+0x20119d0usize)as*mut u8,();
58(f32)::core::convert::Into::into(scale))
59        }
60    }
61
62    #[doc = "`PushRenderScale(::unity::Il2CppString, ::unity::Il2CppString)` overload"]
63    pub fn push_render_scale_3(
64        name: impl ::core::convert::Into<::unity::Il2CppString>,
65        name_on_gpu_save: impl ::core::convert::Into<::unity::Il2CppString>,
66    ) -> () {
67        unsafe {
68            ::unity::il2cpp_call!((::unity::module_base()+0x2011c00usize)as*mut u8,();
69(::unity::Il2CppString)::core::convert::Into::into(name),(::unity::Il2CppString)::core::convert::Into::into(name_on_gpu_save))
70        }
71    }
72
73    #[doc = "`PushRenderScale(f32, f32)` overload"]
74    pub fn push_render_scale_4(scale: impl ::core::convert::Into<f32>, scale_on_gpu_save: impl ::core::convert::Into<f32>) -> () {
75        unsafe {
76            ::unity::il2cpp_call!((::unity::module_base()+0x2011d90usize)as*mut u8,();
77(f32)::core::convert::Into::into(scale),(f32)::core::convert::Into::into(scale_on_gpu_save))
78        }
79    }
80
81    #[doc = "`PopRenderScale()` overload"]
82    pub fn pop_render_scale() -> () {
83        unsafe {
84            ::unity::il2cpp_call!((::unity::module_base()+0x2011ea0usize)as*mut u8,();
85            )
86        }
87    }
88
89    #[doc = "`PushLodBias(f32)` overload"]
90    pub fn push_lod_bias(lod_bias: impl ::core::convert::Into<f32>) -> () {
91        unsafe {
92            ::unity::il2cpp_call!((::unity::module_base()+0x2011f90usize)as*mut u8,();
93(f32)::core::convert::Into::into(lod_bias))
94        }
95    }
96
97    #[doc = "`PushLodBias(f32, f32)` overload"]
98    pub fn push_lod_bias_2(lod_bias: impl ::core::convert::Into<f32>, lod_bias_on_gpu_saved: impl ::core::convert::Into<f32>) -> () {
99        unsafe {
100            ::unity::il2cpp_call!((::unity::module_base()+0x2012000usize)as*mut u8,();
101(f32)::core::convert::Into::into(lod_bias),(f32)::core::convert::Into::into(lod_bias_on_gpu_saved))
102        }
103    }
104
105    #[doc = "`PopLodBias()` overload"]
106    pub fn pop_lod_bias() -> () {
107        unsafe {
108            ::unity::il2cpp_call!((::unity::module_base()+0x2012200usize)as*mut u8,();
109            )
110        }
111    }
112
113    #[doc = "`PushCrossFadeAnimationDuration(f32)` overload"]
114    pub fn push_cross_fade_animation_duration(duration: impl ::core::convert::Into<f32>) -> () {
115        unsafe {
116            ::unity::il2cpp_call!((::unity::module_base()+0x20122f0usize)as*mut u8,();
117(f32)::core::convert::Into::into(duration))
118        }
119    }
120
121    #[doc = "`PopCrossFadeAnimationDuration()` overload"]
122    pub fn pop_cross_fade_animation_duration() -> () {
123        unsafe {
124            ::unity::il2cpp_call!((::unity::module_base()+0x20124c0usize)as*mut u8,();
125            )
126        }
127    }
128
129    #[doc = "`PushCustomBlur(::unity::Il2CppString)` overload"]
130    pub fn push_custom_blur(name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
131        unsafe {
132            ::unity::il2cpp_call!((::unity::module_base()+0x20125f0usize)as*mut u8,();
133(::unity::Il2CppString)::core::convert::Into::into(name))
134        }
135    }
136
137    #[doc = "`PushCustomBlur(i32)` overload"]
138    pub fn push_custom_blur_2(blur: impl ::core::convert::Into<i32>) -> () {
139        unsafe {
140            ::unity::il2cpp_call!((::unity::module_base()+0x20127b0usize)as*mut u8,();
141(i32)::core::convert::Into::into(blur))
142        }
143    }
144
145    #[doc = "`PopCustomBlur()` overload"]
146    pub fn pop_custom_blur() -> () {
147        unsafe {
148            ::unity::il2cpp_call!((::unity::module_base()+0x2012950usize)as*mut u8,();
149            )
150        }
151    }
152
153    #[doc = "`PushColorRate(::unity::Il2CppString)` overload"]
154    pub fn push_color_rate(name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
155        unsafe {
156            ::unity::il2cpp_call!((::unity::module_base()+0x2012a10usize)as*mut u8,();
157(::unity::Il2CppString)::core::convert::Into::into(name))
158        }
159    }
160
161    #[doc = "`PushColorRate(f32)` overload"]
162    pub fn push_color_rate_2(rate: impl ::core::convert::Into<f32>) -> () {
163        unsafe {
164            ::unity::il2cpp_call!((::unity::module_base()+0x2012b10usize)as*mut u8,();
165(f32)::core::convert::Into::into(rate))
166        }
167    }
168
169    #[doc = "`PopColorRate()` overload"]
170    pub fn pop_color_rate() -> () {
171        unsafe {
172            ::unity::il2cpp_call!((::unity::module_base()+0x2012cb0usize)as*mut u8,();
173            )
174        }
175    }
176
177    #[doc = "`Reset()` overload"]
178    pub fn reset() -> () {
179        unsafe {
180            ::unity::il2cpp_call!((::unity::module_base()+0x2012d70usize)as*mut u8,();
181            )
182        }
183    }
184
185    #[doc = "`UpdateGpuPerformanceMode()` overload"]
186    pub fn update_gpu_performance_mode() -> () {
187        unsafe {
188            ::unity::il2cpp_call!((::unity::module_base()+0x20130e0usize)as*mut u8,();
189            )
190        }
191    }
192
193    #[doc = "`GetFloat(::unity::Il2CppString, f32)` overload"]
194    pub fn get_float(name: impl ::core::convert::Into<::unity::Il2CppString>, def: impl ::core::convert::Into<f32>) -> f32 {
195        unsafe {
196            ::unity::il2cpp_call!((::unity::module_base()+0x2011900usize)as*mut u8,f32;
197(::unity::Il2CppString)::core::convert::Into::into(name),(f32)::core::convert::Into::into(def))
198        }
199    }
200
201    #[doc = "`GetInt(::unity::Il2CppString, i32)` overload"]
202    pub fn get_int(name: impl ::core::convert::Into<::unity::Il2CppString>, def: impl ::core::convert::Into<i32>) -> i32 {
203        unsafe {
204            ::unity::il2cpp_call!((::unity::module_base()+0x20126f0usize)as*mut u8,i32;
205(::unity::Il2CppString)::core::convert::Into::into(name),(i32)::core::convert::Into::into(def))
206        }
207    }
208
209    pub fn get_stack_peek<M0: ::unity::IlType + ::core::marker::Copy + ::unity::ClassIdentity>(
210        stack: impl ::core::convert::Into<crate::system::collections::generic::stack_1::Stack_1<M0>>,
211        def: impl ::core::convert::Into<M0>,
212    ) -> M0 {
213        static OPEN: ::std::sync::LazyLock<::unity::Il2CppResult<&'static ::unity::il2cpp::MethodInfo>> = ::std::sync::LazyLock::new(|| {
214            ::unity::lookup::method_info_on_class(<RenderManager as ::unity::ClassIdentity>::class(), "GetStackPeek", 2)
215        });
216        #[allow(clippy::type_complexity)]
217        static CACHE: ::std::sync::OnceLock<::std::sync::Mutex<::std::collections::HashMap<usize, &'static ::unity::il2cpp::MethodInfo>>> =
218            ::std::sync::OnceLock::new();
219        let _ = true;
220        let __open: &'static ::unity::il2cpp::MethodInfo = match &*OPEN {
221            ::core::result::Result::Ok(mi) => *mi,
222            ::core::result::Result::Err(e) => {
223                panic!(
224                    "method lookup failed: {}
225::{}
226: {}
227",
228                    <RenderManager as ::unity::ClassIdentity>::NAME,
229                    "GetStackPeek",
230                    e
231                )
232            },
233        };
234        let __cache = CACHE.get_or_init(|| ::std::sync::Mutex::new(::std::collections::HashMap::new()));
235        let __key: usize = <M0 as ::unity::IlType>::il_type() as *const _ as usize;
236        let __inflated: &'static ::unity::il2cpp::MethodInfo = {
237            let mut __guard = __cache.lock().unwrap();
238            *__guard
239                .entry(__key)
240                .or_insert_with(|| ::unity::il2cpp::generic::create_generic_method_info(__open, &[<M0 as ::unity::IlType>::il_type()]))
241        };
242        unsafe {
243            let __f: extern "C" fn(crate::system::collections::generic::stack_1::Stack_1<M0>, M0, ::unity::OptionalMethod) -> M0 =
244                ::core::mem::transmute(__inflated.method_ptr);
245            let __mi_opaque: &'static () = &*(__inflated as *const _ as *const ());
246            __f(
247                ::core::convert::Into::into(stack),
248                ::core::convert::Into::into(def),
249                ::core::option::Option::Some(__mi_opaque),
250            )
251        }
252    }
253
254    #[doc = "`CommitScale()` overload"]
255    pub fn commit_scale() -> () {
256        unsafe {
257            ::unity::il2cpp_call!((::unity::module_base()+0x2011ae0usize)as*mut u8,();
258            )
259        }
260    }
261
262    #[doc = "`CommitLodBias()` overload"]
263    pub fn commit_lod_bias() -> () {
264        unsafe {
265            ::unity::il2cpp_call!((::unity::module_base()+0x2012110usize)as*mut u8,();
266            )
267        }
268    }
269
270    #[doc = "`CommitBlur()` overload"]
271    pub fn commit_blur() -> () {
272        unsafe {
273            ::unity::il2cpp_call!((::unity::module_base()+0x2012880usize)as*mut u8,();
274            )
275        }
276    }
277
278    #[doc = "`CommitColor()` overload"]
279    pub fn commit_color() -> () {
280        unsafe {
281            ::unity::il2cpp_call!((::unity::module_base()+0x2012fe0usize)as*mut u8,();
282            )
283        }
284    }
285
286    #[doc = "`CommitColorRate()` overload"]
287    pub fn commit_color_rate() -> () {
288        unsafe {
289            ::unity::il2cpp_call!((::unity::module_base()+0x2012be0usize)as*mut u8,();
290            )
291        }
292    }
293
294    #[doc = "`CommitCrossFadeAnimationDuration()` overload"]
295    pub fn commit_cross_fade_animation_duration() -> () {
296        unsafe {
297            ::unity::il2cpp_call!((::unity::module_base()+0x2012430usize)as*mut u8,();
298            )
299        }
300    }
301
302    #[doc = "`.cctor()` overload"]
303    pub fn cctor() -> () {
304        unsafe {
305            ::unity::il2cpp_call!((::unity::module_base()+0x2013160usize)as*mut u8,();
306            )
307        }
308    }
309}
310
311#[cfg(feature = "app-rendermanager")]
312pub trait IRenderManagerMethods: IRenderManager {
313    #[doc = "`.ctor()` overload"]
314    fn ctor(self) -> () {
315        unsafe {
316            let __receiver = <RenderManager as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
317            ::unity::il2cpp_call!((::unity::module_base()+0x2013150usize)as*mut u8,();
318(RenderManager)__receiver)
319        }
320    }
321}
322
323#[cfg(feature = "app-rendermanager")]
324impl<__T: IRenderManager> IRenderManagerMethods for __T {}
325
326#[cfg(feature = "app-rendermanager")]
327impl RenderManager {
328    pub fn push_render_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
330    }
331
332    pub fn push_render_scale_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
334    }
335
336    pub fn push_render_scale_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
338    }
339
340    pub fn push_render_scale_4_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
342    }
343
344    pub fn pop_render_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
346    }
347
348    pub fn push_lod_bias_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
350    }
351
352    pub fn push_lod_bias_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
354    }
355
356    pub fn pop_lod_bias_method_info() -> &'static ::unity::il2cpp::MethodInfo {
357        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
358    }
359
360    pub fn push_cross_fade_animation_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
361        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
362    }
363
364    pub fn pop_cross_fade_animation_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
365        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
366    }
367
368    pub fn push_custom_blur_method_info() -> &'static ::unity::il2cpp::MethodInfo {
369        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
370    }
371
372    pub fn push_custom_blur_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
373        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
374    }
375
376    pub fn pop_custom_blur_method_info() -> &'static ::unity::il2cpp::MethodInfo {
377        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
378    }
379
380    pub fn push_color_rate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
381        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
382    }
383
384    pub fn push_color_rate_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
385        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
386    }
387
388    pub fn pop_color_rate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
389        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
390    }
391
392    pub fn reset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
393        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
394    }
395
396    pub fn update_gpu_performance_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
397        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
398    }
399
400    pub fn get_float_method_info() -> &'static ::unity::il2cpp::MethodInfo {
401        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
402    }
403
404    pub fn get_int_method_info() -> &'static ::unity::il2cpp::MethodInfo {
405        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
406    }
407
408    pub fn commit_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
409        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
410    }
411
412    pub fn commit_lod_bias_method_info() -> &'static ::unity::il2cpp::MethodInfo {
413        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
414    }
415
416    pub fn commit_blur_method_info() -> &'static ::unity::il2cpp::MethodInfo {
417        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[23]
418    }
419
420    pub fn commit_color_method_info() -> &'static ::unity::il2cpp::MethodInfo {
421        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[24]
422    }
423
424    pub fn commit_color_rate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
425        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
426    }
427
428    pub fn commit_cross_fade_animation_duration_method_info() -> &'static ::unity::il2cpp::MethodInfo {
429        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
430    }
431
432    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
433        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
434    }
435
436    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
437        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
438    }
439}
440
441#[cfg(feature = "app-rendermanager")]
442impl RenderManager {
443    #[doc = "`.ctor()` — no args"]
444    pub fn new() -> Self {
445        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
446            panic!(
447                "{}
448::{}
449 failed to instantiate",
450                ::core::stringify!(RenderManager),
451                ::core::stringify!(new),
452            )
453        });
454        <Self as IRenderManagerMethods>::ctor(this);
455        this
456    }
457}
458
459#[cfg(feature = "app-rendermanager")]
460#[doc(hidden)]
461pub mod prelude {
462    pub use super::{IRenderManager, IRenderManagerMethods, RenderManager};
463    pub use crate::system::object::IObject;
464    #[cfg(feature = "system-object")]
465    pub use crate::system::object::IObjectMethods;
466}