engage/generated/unity_engine/rendering/universal/
ipostprocesscomponent.rs1#[cfg(feature = "unity_engine-rendering-universal-ipostprocesscomponent-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8
9 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/ipostprocesscomponent/IPostProcessComponent.md"))]
10 #[::unity::class(namespace = "UnityEngine.Rendering.Universal", name = "IPostProcessComponent")]
11 pub struct IPostProcessComponent {}
12}
13
14#[cfg(feature = "unity_engine-rendering-universal-ipostprocesscomponent-types")]
15pub use __types::*;
16
17#[cfg(feature = "unity_engine-rendering-universal-ipostprocesscomponent")]
18pub trait IIPostProcessComponentMethods: IIPostProcessComponent {
19 #[doc = "`IsActive()` overload"]
20 fn is_active(self) -> bool {
21 unsafe {
22 let __receiver = <IPostProcessComponent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
23 {
24 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
25 let __vi = *__vt.get(0usize).unwrap_or_else(|| {
26 panic!(
27 "unity: virtual slot {}
28 out of range (vtable len {}
29) on the runtime class behind {}
30 (method `{}
31`)",
32 0usize,
33 __vt.len(),
34 <IPostProcessComponent as ::unity::ClassIdentity>::NAME,
35 "IsActive",
36 )
37 });
38 let __inner: extern "C" fn(IPostProcessComponent, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
39 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
40 __inner(__receiver, __mi)
41 }
42 }
43 }
44 #[doc = "`IsTileCompatible()` overload"]
45 fn is_tile_compatible(self) -> bool {
46 unsafe {
47 let __receiver = <IPostProcessComponent as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48 {
49 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
50 let __vi = *__vt.get(1usize).unwrap_or_else(|| {
51 panic!(
52 "unity: virtual slot {}
53 out of range (vtable len {}
54) on the runtime class behind {}
55 (method `{}
56`)",
57 1usize,
58 __vt.len(),
59 <IPostProcessComponent as ::unity::ClassIdentity>::NAME,
60 "IsTileCompatible",
61 )
62 });
63 let __inner: extern "C" fn(IPostProcessComponent, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
64 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
65 __inner(__receiver, __mi)
66 }
67 }
68 }
69}
70
71#[cfg(feature = "unity_engine-rendering-universal-ipostprocesscomponent")]
72impl<__T: IIPostProcessComponent> IIPostProcessComponentMethods for __T {}
73
74#[cfg(feature = "unity_engine-rendering-universal-ipostprocesscomponent")]
75impl IPostProcessComponent {
76 pub fn is_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
78 }
79
80 pub fn is_tile_compatible_method_info() -> &'static ::unity::il2cpp::MethodInfo {
81 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
82 }
83}
84
85#[cfg(feature = "unity_engine-rendering-universal-ipostprocesscomponent")]
86impl IPostProcessComponent {
87 #[doc = "Direct (non-virtual) call to `IPostProcessComponent`'s own `IsActive`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
88 pub unsafe fn is_active(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
89 let __mi = Self::is_active_method_info();
90 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
91 __inner(this.into(), ::core::option::Option::None)
92 }
93
94 #[doc = "Direct (non-virtual) call to `IPostProcessComponent`'s own `IsTileCompatible`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
95 pub unsafe fn is_tile_compatible(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
96 let __mi = Self::is_tile_compatible_method_info();
97 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
98 __inner(this.into(), ::core::option::Option::None)
99 }
100}
101
102#[cfg(feature = "unity_engine-rendering-universal-ipostprocesscomponent")]
103#[doc(hidden)]
104pub mod prelude {
105 pub use super::{IIPostProcessComponent, IIPostProcessComponentMethods, IPostProcessComponent};
106}