engage/generated/unity_engine/rendering/universal/
scriptablerendererfeature.rs1#[cfg(feature = "unity_engine-rendering-universal-scriptablerendererfeature-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 scriptableobject::{IScriptableObject, ScriptableObject},
13 },
14 };
15
16 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/scriptablerendererfeature/ScriptableRendererFeature.md"))]
17 #[::unity::class(namespace = "UnityEngine.Rendering.Universal", name = "ScriptableRendererFeature")]
18 #[parent(crate::unity_engine::scriptableobject::ScriptableObject)]
19 pub struct ScriptableRendererFeature {
20 #[offset(24)]
21 #[rename(name = "m_Active")]
22 pub m_active: bool,
23 }
24}
25
26#[cfg(feature = "unity_engine-rendering-universal-scriptablerendererfeature-types")]
27pub use __types::*;
28
29#[cfg(feature = "unity_engine-rendering-universal-scriptablerendererfeature")]
30pub trait IScriptableRendererFeatureMethods: IScriptableRendererFeature {
31 #[doc = "`get_isActive()` overload"]
32 fn get_is_active(self) -> bool {
33 unsafe {
34 let __receiver =
35 <ScriptableRendererFeature as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36 ::unity::il2cpp_call!((::unity::module_base()+0x2ed6820usize)as*mut u8,bool;
37(ScriptableRendererFeature)__receiver)
38 }
39 }
40 #[doc = "`Create()` overload"]
41 fn create(self) -> () {
42 unsafe {
43 let __receiver =
44 <ScriptableRendererFeature as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45 {
46 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
47 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
48 panic!(
49 "unity: virtual slot {}
50 out of range (vtable len {}
51) on the runtime class behind {}
52 (method `{}
53`)",
54 5usize,
55 __vt.len(),
56 <ScriptableRendererFeature as ::unity::ClassIdentity>::NAME,
57 "Create",
58 )
59 });
60 let __inner: extern "C" fn(ScriptableRendererFeature, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
61 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
62 __inner(__receiver, __mi)
63 }
64 }
65 }
66 #[doc = "`AddRenderPasses(crate::unity_engine::rendering::universal::scriptablerenderer::ScriptableRenderer, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData)` overload"]
67 fn add_render_passes(
68 self,
69 renderer: impl ::core::convert::Into<crate::unity_engine::rendering::universal::scriptablerenderer::ScriptableRenderer>,
70 ) -> crate::unity_engine::rendering::universal::renderingdata::RenderingData {
71 unsafe {
72 let __receiver =
73 <ScriptableRendererFeature as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::renderingdata::RenderingData>::uninit();
75 {
76 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
77 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
78 panic!(
79 "unity: virtual slot {}
80 out of range (vtable len {}
81) on the runtime class behind {}
82 (method `{}
83`)",
84 6usize,
85 __vt.len(),
86 <ScriptableRendererFeature as ::unity::ClassIdentity>::NAME,
87 "AddRenderPasses",
88 )
89 });
90 let __inner: extern "C" fn(
91 ScriptableRendererFeature,
92 crate::unity_engine::rendering::universal::scriptablerenderer::ScriptableRenderer,
93 *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
94 ::unity::OptionalMethod,
95 ) -> () = ::core::mem::transmute(__vi.method_ptr);
96 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
97 __inner(__receiver, ::core::convert::Into::into(renderer), __out_0.as_mut_ptr(), __mi)
98 };
99 __out_0.assume_init()
100 }
101 }
102 #[doc = "`OnEnable()` overload"]
103 fn on_enable(self) -> () {
104 unsafe {
105 let __receiver =
106 <ScriptableRendererFeature as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
107 ::unity::il2cpp_call!((::unity::module_base()+0x2ed6830usize)as*mut u8,();
108(ScriptableRendererFeature)__receiver)
109 }
110 }
111 #[doc = "`OnValidate()` overload"]
112 fn on_validate(self) -> () {
113 unsafe {
114 let __receiver =
115 <ScriptableRendererFeature as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 ::unity::il2cpp_call!((::unity::module_base()+0x2ed6840usize)as*mut u8,();
117(ScriptableRendererFeature)__receiver)
118 }
119 }
120 #[doc = "`SetActive(bool)` overload"]
121 fn set_active(self, active: impl ::core::convert::Into<bool>) -> () {
122 unsafe {
123 let __receiver =
124 <ScriptableRendererFeature as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
125 ::unity::il2cpp_call!((::unity::module_base()+0x2ed6850usize)as*mut u8,();
126(ScriptableRendererFeature)__receiver,(bool)::core::convert::Into::into(active))
127 }
128 }
129 #[doc = "`Dispose()` overload"]
130 fn dispose(self) -> () {
131 unsafe {
132 let __receiver =
133 <ScriptableRendererFeature as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
134 {
135 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
136 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
137 panic!(
138 "unity: virtual slot {}
139 out of range (vtable len {}
140) on the runtime class behind {}
141 (method `{}
142`)",
143 4usize,
144 __vt.len(),
145 <ScriptableRendererFeature as ::unity::ClassIdentity>::NAME,
146 "Dispose",
147 )
148 });
149 let __inner: extern "C" fn(ScriptableRendererFeature, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
150 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
151 __inner(__receiver, __mi)
152 }
153 }
154 }
155 #[doc = "`Dispose(bool)` overload"]
156 fn dispose_2(self, disposing: impl ::core::convert::Into<bool>) -> () {
157 unsafe {
158 let __receiver =
159 <ScriptableRendererFeature as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
160 {
161 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
162 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
163 panic!(
164 "unity: virtual slot {}
165 out of range (vtable len {}
166) on the runtime class behind {}
167 (method `{}
168`)",
169 7usize,
170 __vt.len(),
171 <ScriptableRendererFeature as ::unity::ClassIdentity>::NAME,
172 "Dispose",
173 )
174 });
175 let __inner: extern "C" fn(ScriptableRendererFeature, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
176 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
177 __inner(__receiver, ::core::convert::Into::into(disposing), __mi)
178 }
179 }
180 }
181 #[doc = "`.ctor()` overload"]
182 fn ctor(self) -> () {
183 unsafe {
184 let __receiver =
185 <ScriptableRendererFeature as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
186 ::unity::il2cpp_call!((::unity::module_base()+0x2ecec10usize)as*mut u8,();
187(ScriptableRendererFeature)__receiver)
188 }
189 }
190}
191
192#[cfg(feature = "unity_engine-rendering-universal-scriptablerendererfeature")]
193impl<__T: IScriptableRendererFeature> IScriptableRendererFeatureMethods for __T {}
194
195#[cfg(feature = "unity_engine-rendering-universal-scriptablerendererfeature")]
196impl ScriptableRendererFeature {
197 pub fn get_is_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
199 }
200
201 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
203 }
204
205 pub fn add_render_passes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
207 }
208
209 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
211 }
212
213 pub fn on_validate_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
215 }
216
217 pub fn set_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
219 }
220
221 pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
223 }
224
225 pub fn dispose_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
226 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
227 }
228
229 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
230 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
231 }
232}
233
234#[cfg(feature = "unity_engine-rendering-universal-scriptablerendererfeature")]
235impl ScriptableRendererFeature {
236 #[doc = "Direct (non-virtual) call to `ScriptableRendererFeature`'s own `Create`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
237 pub unsafe fn create(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
238 let __mi = Self::create_method_info();
239 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
240 __inner(this.into(), ::core::option::Option::None)
241 }
242
243 #[doc = "Direct (non-virtual) call to `ScriptableRendererFeature`'s own `AddRenderPasses`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
244 pub unsafe fn add_render_passes(
245 this: impl ::core::convert::Into<::unity::IlInstance>,
246 renderer: crate::unity_engine::rendering::universal::scriptablerenderer::ScriptableRenderer,
247 rendering_data: *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
248 ) -> () {
249 let __mi = Self::add_render_passes_method_info();
250 let __inner: extern "C" fn(
251 ::unity::IlInstance,
252 crate::unity_engine::rendering::universal::scriptablerenderer::ScriptableRenderer,
253 *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
254 ::unity::OptionalMethod,
255 ) -> () = ::core::mem::transmute(__mi.method_ptr);
256 __inner(this.into(), renderer, rendering_data, ::core::option::Option::None)
257 }
258
259 #[doc = "Direct (non-virtual) call to `ScriptableRendererFeature`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
260 pub unsafe fn dispose(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
261 let __mi = Self::dispose_method_info();
262 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
263 __inner(this.into(), ::core::option::Option::None)
264 }
265
266 #[doc = "Direct (non-virtual) call to `ScriptableRendererFeature`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
267 pub unsafe fn dispose_2(this: impl ::core::convert::Into<::unity::IlInstance>, disposing: bool) -> () {
268 let __mi = Self::dispose_2_method_info();
269 let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
270 __inner(this.into(), disposing, ::core::option::Option::None)
271 }
272}
273
274#[cfg(feature = "unity_engine-rendering-universal-scriptablerendererfeature")]
275impl ScriptableRendererFeature {
276 #[doc = "`.ctor()` — no args"]
277 pub fn new() -> Self {
278 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
279 panic!(
280 "{}
281::{}
282 failed to instantiate",
283 ::core::stringify!(ScriptableRendererFeature),
284 ::core::stringify!(new),
285 )
286 });
287 <Self as IScriptableRendererFeatureMethods>::ctor(this);
288 this
289 }
290}
291
292#[cfg(feature = "unity_engine-rendering-universal-scriptablerendererfeature")]
293#[doc(hidden)]
294pub mod prelude {
295 pub use super::{IScriptableRendererFeature, IScriptableRendererFeatureMethods, ScriptableRendererFeature};
296 #[cfg(feature = "system-object")]
297 pub use crate::system::object::IObjectMethods;
298 #[cfg(feature = "unity_engine-object_2")]
299 pub use crate::unity_engine::object_2::IObject_2Methods;
300 #[cfg(feature = "unity_engine-scriptableobject")]
301 pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
302 pub use crate::{
303 system::object::IObject,
304 unity_engine::{object_2::IObject_2, scriptableobject::IScriptableObject},
305 };
306}