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