engage/generated/unity_engine/experimental/rendering/
builtinruntimereflectionsystem.rs1#[cfg(feature = "unity_engine-experimental-rendering-builtinruntimereflectionsystem-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/experimental/rendering/builtinruntimereflectionsystem/BuiltinRuntimeReflectionSystem.md"))]
11 #[::unity::class(namespace = "UnityEngine.Experimental.Rendering", name = "BuiltinRuntimeReflectionSystem")]
12 #[parent(crate::system::object::Object)]
13 pub struct BuiltinRuntimeReflectionSystem {}
14}
15
16#[cfg(feature = "unity_engine-experimental-rendering-builtinruntimereflectionsystem-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-experimental-rendering-builtinruntimereflectionsystem")]
20impl BuiltinRuntimeReflectionSystem {
21 #[doc = "`BuiltinUpdate()` overload"]
22 pub fn builtin_update() -> bool {
23 unsafe {
24 ::unity::il2cpp_call!((::unity::module_base()+0x2c38fc0usize)as*mut u8,bool;
25 )
26 }
27 }
28
29 #[doc = "`Internal_BuiltinRuntimeReflectionSystem_New()` overload"]
30 pub fn internal_builtin_runtime_reflection_system_new(
31 ) -> crate::unity_engine::experimental::rendering::builtinruntimereflectionsystem::BuiltinRuntimeReflectionSystem {
32 unsafe {
33 ::unity::il2cpp_call!((::unity::module_base()+0x2c39020usize)as*mut u8,crate::unity_engine::experimental::rendering::builtinruntimereflectionsystem::BuiltinRuntimeReflectionSystem;
34 )
35 }
36 }
37}
38
39#[cfg(feature = "unity_engine-experimental-rendering-builtinruntimereflectionsystem")]
40pub trait IBuiltinRuntimeReflectionSystemMethods: IBuiltinRuntimeReflectionSystem {
41 #[doc = "`TickRealtimeProbes()` overload"]
42 fn tick_realtime_probes(self) -> bool {
43 unsafe {
44 let __receiver =
45 <BuiltinRuntimeReflectionSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46 {
47 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
48 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
49 panic!(
50 "unity: virtual slot {}
51 out of range (vtable len {}
52) on the runtime class behind {}
53 (method `{}
54`)",
55 4usize,
56 __vt.len(),
57 <BuiltinRuntimeReflectionSystem as ::unity::ClassIdentity>::NAME,
58 "TickRealtimeProbes",
59 )
60 });
61 let __inner: extern "C" fn(BuiltinRuntimeReflectionSystem, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__vi.method_ptr);
62 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
63 __inner(__receiver, __mi)
64 }
65 }
66 }
67 #[doc = "`Dispose()` overload"]
68 fn dispose(self) -> () {
69 unsafe {
70 let __receiver =
71 <BuiltinRuntimeReflectionSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72 {
73 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
74 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
75 panic!(
76 "unity: virtual slot {}
77 out of range (vtable len {}
78) on the runtime class behind {}
79 (method `{}
80`)",
81 5usize,
82 __vt.len(),
83 <BuiltinRuntimeReflectionSystem as ::unity::ClassIdentity>::NAME,
84 "Dispose",
85 )
86 });
87 let __inner: extern "C" fn(BuiltinRuntimeReflectionSystem, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
88 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
89 __inner(__receiver, __mi)
90 }
91 }
92 }
93 #[doc = "`Dispose(bool)` overload"]
94 fn dispose_2(self, disposing: impl ::core::convert::Into<bool>) -> () {
95 unsafe {
96 let __receiver =
97 <BuiltinRuntimeReflectionSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
98 ::unity::il2cpp_call!((::unity::module_base()+0x2c39010usize)as*mut u8,();
99(BuiltinRuntimeReflectionSystem)__receiver,(bool)::core::convert::Into::into(disposing))
100 }
101 }
102 #[doc = "`.ctor()` overload"]
103 fn ctor(self) -> () {
104 unsafe {
105 let __receiver =
106 <BuiltinRuntimeReflectionSystem as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 ::unity::il2cpp_call!((::unity::module_base()+0x2c39080usize)as*mut u8,();
108(BuiltinRuntimeReflectionSystem)__receiver)
109 }
110 }
111}
112
113#[cfg(feature = "unity_engine-experimental-rendering-builtinruntimereflectionsystem")]
114impl<__T: IBuiltinRuntimeReflectionSystem> IBuiltinRuntimeReflectionSystemMethods for __T {}
115
116#[cfg(feature = "unity_engine-experimental-rendering-builtinruntimereflectionsystem")]
117impl BuiltinRuntimeReflectionSystem {
118 pub fn tick_realtime_probes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
120 }
121
122 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
123 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
124 }
125
126 pub fn dispose_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
127 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
128 }
129
130 pub fn builtin_update_method_info() -> &'static ::unity::il2cpp::MethodInfo {
131 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
132 }
133
134 pub fn internal_builtin_runtime_reflection_system_new_method_info() -> &'static ::unity::il2cpp::MethodInfo {
135 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
136 }
137
138 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
139 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
140 }
141}
142
143#[cfg(feature = "unity_engine-experimental-rendering-builtinruntimereflectionsystem")]
144impl BuiltinRuntimeReflectionSystem {
145 #[doc = "Direct (non-virtual) call to `BuiltinRuntimeReflectionSystem`'s own `TickRealtimeProbes`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
146 pub unsafe fn tick_realtime_probes(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
147 let __mi = Self::tick_realtime_probes_method_info();
148 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
149 __inner(this.into(), ::core::option::Option::None)
150 }
151
152 #[doc = "Direct (non-virtual) call to `BuiltinRuntimeReflectionSystem`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
153 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
154 let __mi = Self::dispose_method_info();
155 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
156 __inner(this.into(), ::core::option::Option::None)
157 }
158}
159
160#[cfg(feature = "unity_engine-experimental-rendering-builtinruntimereflectionsystem")]
161impl BuiltinRuntimeReflectionSystem {
162 #[doc = "`.ctor()` — no args"]
163 pub fn new() -> Self {
164 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
165 panic!(
166 "{}
167::{}
168 failed to instantiate",
169 ::core::stringify!(BuiltinRuntimeReflectionSystem),
170 ::core::stringify!(new),
171 )
172 });
173 <Self as IBuiltinRuntimeReflectionSystemMethods>::ctor(this);
174 this
175 }
176}
177
178#[cfg(feature = "unity_engine-experimental-rendering-builtinruntimereflectionsystem")]
179#[doc(hidden)]
180pub mod prelude {
181 pub use super::{BuiltinRuntimeReflectionSystem, IBuiltinRuntimeReflectionSystem, IBuiltinRuntimeReflectionSystemMethods};
182 pub use crate::system::object::IObject;
183 #[cfg(feature = "system-object")]
184 pub use crate::system::object::IObjectMethods;
185}