engage/generated/unity_engine/experimental/rendering/universal/
renderer2ddata.rs1#[cfg(feature = "unity_engine-experimental-rendering-universal-renderer2ddata-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::{
10 object::{IObject, Object},
11 r#enum::{Enum, IEnum},
12 valuetype::{IValueType, ValueType},
13 },
14 unity_engine::{
15 object_2::{IObject_2, Object_2},
16 rendering::universal::scriptablerendererdata::{IScriptableRendererData, ScriptableRendererData},
17 scriptableobject::{IScriptableObject, ScriptableObject},
18 },
19 };
20
21 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/universal/renderer2ddata/Renderer2DData.md"))]
22 #[::unity::class(namespace = "UnityEngine.Experimental.Rendering.Universal", name = "Renderer2DData")]
23 #[parent(crate::unity_engine::rendering::universal::scriptablerendererdata::ScriptableRendererData)]
24 pub struct Renderer2DData {
25 #[offset(48)]
26 #[rename(name = "m_TransparencySortMode")]
27 pub m_transparency_sort_mode: crate::unity_engine::transparencysortmode::TransparencySortMode,
28 #[offset(52)]
29 #[rename(name = "m_TransparencySortAxis")]
30 pub m_transparency_sort_axis: crate::unity_engine::vector3::Vector3,
31 #[offset(64)]
32 #[rename(name = "m_HDREmulationScale")]
33 pub m_hdr_emulation_scale: f32,
34 #[offset(72)]
35 #[rename(name = "m_LightBlendStyles")]
36 pub m_light_blend_styles: ::unity::Array<crate::unity_engine::experimental::rendering::universal::light2dblendstyle::Light2DBlendStyle>,
37 #[offset(80)]
38 #[rename(name = "m_UseDepthStencilBuffer")]
39 pub m_use_depth_stencil_buffer: bool,
40 #[offset(88)]
41 #[rename(name = "m_ShapeLightShader")]
42 pub m_shape_light_shader: crate::unity_engine::shader::Shader,
43 #[offset(96)]
44 #[rename(name = "m_ShapeLightVolumeShader")]
45 pub m_shape_light_volume_shader: crate::unity_engine::shader::Shader,
46 #[offset(104)]
47 #[rename(name = "m_PointLightShader")]
48 pub m_point_light_shader: crate::unity_engine::shader::Shader,
49 #[offset(112)]
50 #[rename(name = "m_PointLightVolumeShader")]
51 pub m_point_light_volume_shader: crate::unity_engine::shader::Shader,
52 #[offset(120)]
53 #[rename(name = "m_BlitShader")]
54 pub m_blit_shader: crate::unity_engine::shader::Shader,
55 #[offset(128)]
56 #[rename(name = "m_ShadowGroupShader")]
57 pub m_shadow_group_shader: crate::unity_engine::shader::Shader,
58 #[offset(136)]
59 #[rename(name = "m_RemoveSelfShadowShader")]
60 pub m_remove_self_shadow_shader: crate::unity_engine::shader::Shader,
61 #[offset(144)]
62 #[rename(name = "m_PostProcessData")]
63 pub m_post_process_data: crate::unity_engine::rendering::universal::postprocessdata::PostProcessData,
64 #[offset(176)]
65 #[rename(name = "normalsRenderTarget")]
66 pub normals_render_target: crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle,
67 #[offset(224)]
68 #[rename(name = "shadowsRenderTarget")]
69 pub shadows_render_target: crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle,
70 }
71
72 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/universal/renderer2ddata/Renderer2DData_Renderer2DDefaultMaterialType.md"))]
73 #[repr(C)]
74 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
75 pub struct Renderer2DData_Renderer2DDefaultMaterialType {
76 pub value: i32,
77 }
78 impl ::unity::ClassIdentity for Renderer2DData_Renderer2DDefaultMaterialType {
79 const NAME: &'static str = "Renderer2DData.Renderer2DDefaultMaterialType";
80 const NAMESPACE: &'static str = "UnityEngine.Experimental.Rendering.Universal";
81
82 fn class() -> ::unity::Class {
83 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
84 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
85 }
86 }
87 impl ::unity::IlType for Renderer2DData_Renderer2DDefaultMaterialType {
88 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
89 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
90 }
91 }
92 impl Renderer2DData_Renderer2DDefaultMaterialType {
93 pub fn lit() -> Self {
94 Self { value: 0 }
95 }
96
97 pub fn unlit() -> Self {
98 Self { value: 1 }
99 }
100
101 pub fn custom() -> Self {
102 Self { value: 2 }
103 }
104 }
105}
106
107#[cfg(feature = "unity_engine-experimental-rendering-universal-renderer2ddata-types")]
108pub use __types::*;
109
110#[cfg(feature = "unity_engine-experimental-rendering-universal-renderer2ddata")]
111pub trait IRenderer2DDataMethods: IRenderer2DData {
112 #[doc = "`get_hdrEmulationScale()` overload"]
113 fn get_hdr_emulation_scale(self) -> f32 {
114 unsafe {
115 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 ::unity::il2cpp_call!((::unity::module_base()+0x31ab970usize)as*mut u8,f32;
117(Renderer2DData)__receiver)
118 }
119 }
120 #[doc = "`get_lightBlendStyles()` overload"]
121 fn get_light_blend_styles(self) -> ::unity::Array<crate::unity_engine::experimental::rendering::universal::light2dblendstyle::Light2DBlendStyle> {
122 unsafe {
123 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124 ::unity::il2cpp_call!((::unity::module_base()+0x31ab980usize)as*mut u8, ::unity::Array<crate::unity_engine::experimental::rendering::universal::light2dblendstyle::Light2DBlendStyle> ;
125(Renderer2DData)__receiver)
126 }
127 }
128 #[doc = "`get_useDepthStencilBuffer()` overload"]
129 fn get_use_depth_stencil_buffer(self) -> bool {
130 unsafe {
131 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132 ::unity::il2cpp_call!((::unity::module_base()+0x31ab990usize)as*mut u8,bool;
133(Renderer2DData)__receiver)
134 }
135 }
136 #[doc = "`get_shapeLightShader()` overload"]
137 fn get_shape_light_shader(self) -> crate::unity_engine::shader::Shader {
138 unsafe {
139 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140 ::unity::il2cpp_call!((::unity::module_base()+0x31ab9a0usize)as*mut u8,crate::unity_engine::shader::Shader;
141(Renderer2DData)__receiver)
142 }
143 }
144 #[doc = "`get_shapeLightVolumeShader()` overload"]
145 fn get_shape_light_volume_shader(self) -> crate::unity_engine::shader::Shader {
146 unsafe {
147 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148 ::unity::il2cpp_call!((::unity::module_base()+0x31ab9b0usize)as*mut u8,crate::unity_engine::shader::Shader;
149(Renderer2DData)__receiver)
150 }
151 }
152 #[doc = "`get_pointLightShader()` overload"]
153 fn get_point_light_shader(self) -> crate::unity_engine::shader::Shader {
154 unsafe {
155 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
156 ::unity::il2cpp_call!((::unity::module_base()+0x31ab9c0usize)as*mut u8,crate::unity_engine::shader::Shader;
157(Renderer2DData)__receiver)
158 }
159 }
160 #[doc = "`get_pointLightVolumeShader()` overload"]
161 fn get_point_light_volume_shader(self) -> crate::unity_engine::shader::Shader {
162 unsafe {
163 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164 ::unity::il2cpp_call!((::unity::module_base()+0x31ab9d0usize)as*mut u8,crate::unity_engine::shader::Shader;
165(Renderer2DData)__receiver)
166 }
167 }
168 #[doc = "`get_blitShader()` overload"]
169 fn get_blit_shader(self) -> crate::unity_engine::shader::Shader {
170 unsafe {
171 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172 ::unity::il2cpp_call!((::unity::module_base()+0x31ab9e0usize)as*mut u8,crate::unity_engine::shader::Shader;
173(Renderer2DData)__receiver)
174 }
175 }
176 #[doc = "`get_shadowGroupShader()` overload"]
177 fn get_shadow_group_shader(self) -> crate::unity_engine::shader::Shader {
178 unsafe {
179 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
180 ::unity::il2cpp_call!((::unity::module_base()+0x31ab9f0usize)as*mut u8,crate::unity_engine::shader::Shader;
181(Renderer2DData)__receiver)
182 }
183 }
184 #[doc = "`get_removeSelfShadowShader()` overload"]
185 fn get_remove_self_shadow_shader(self) -> crate::unity_engine::shader::Shader {
186 unsafe {
187 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
188 ::unity::il2cpp_call!((::unity::module_base()+0x31aba00usize)as*mut u8,crate::unity_engine::shader::Shader;
189(Renderer2DData)__receiver)
190 }
191 }
192 #[doc = "`get_postProcessData()` overload"]
193 fn get_post_process_data(self) -> crate::unity_engine::rendering::universal::postprocessdata::PostProcessData {
194 unsafe {
195 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
196 ::unity::il2cpp_call!((::unity::module_base()+0x31aba10usize)as*mut u8,crate::unity_engine::rendering::universal::postprocessdata::PostProcessData;
197(Renderer2DData)__receiver)
198 }
199 }
200 #[doc = "`get_transparencySortMode()` overload"]
201 fn get_transparency_sort_mode(self) -> crate::unity_engine::transparencysortmode::TransparencySortMode {
202 unsafe {
203 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
204 ::unity::il2cpp_call!((::unity::module_base()+0x31aba20usize)as*mut u8,crate::unity_engine::transparencysortmode::TransparencySortMode;
205(Renderer2DData)__receiver)
206 }
207 }
208 #[doc = "`get_transparencySortAxis()` overload"]
209 fn get_transparency_sort_axis(self) -> crate::unity_engine::vector3::Vector3 {
210 unsafe {
211 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
212 ::unity::il2cpp_call!((::unity::module_base()+0x31aba30usize)as*mut u8,crate::unity_engine::vector3::Vector3;
213(Renderer2DData)__receiver)
214 }
215 }
216 #[doc = "`Create()` overload"]
217 fn create(self) -> crate::unity_engine::rendering::universal::scriptablerenderer::ScriptableRenderer {
218 unsafe {
219 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
220 {
221 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
222 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
223 panic!(
224 "unity: virtual slot {}
225 out of range (vtable len {}
226) on the runtime class behind {}
227 (method `{}
228`)",
229 4usize,
230 __vt.len(),
231 <Renderer2DData as ::unity::ClassIdentity>::NAME,
232 "Create",
233 )
234 });
235 let __inner: extern "C" fn(
236 Renderer2DData,
237 ::unity::OptionalMethod,
238 ) -> crate::unity_engine::rendering::universal::scriptablerenderer::ScriptableRenderer = ::core::mem::transmute(__vi.method_ptr);
239 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
240 __inner(__receiver, __mi)
241 }
242 }
243 }
244 #[doc = "`OnEnable()` overload"]
245 fn on_enable(self) -> () {
246 unsafe {
247 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
248 {
249 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
250 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
251 panic!(
252 "unity: virtual slot {}
253 out of range (vtable len {}
254) on the runtime class behind {}
255 (method `{}
256`)",
257 6usize,
258 __vt.len(),
259 <Renderer2DData as ::unity::ClassIdentity>::NAME,
260 "OnEnable",
261 )
262 });
263 let __inner: extern "C" fn(Renderer2DData, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
264 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
265 __inner(__receiver, __mi)
266 }
267 }
268 }
269 #[doc = "`get_lightMaterials()` overload"]
270 fn get_light_materials(self) -> crate::system::collections::generic::dictionary_2::Dictionary_2<u32, crate::unity_engine::material::Material> {
271 unsafe {
272 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
273 ::unity::il2cpp_call!((::unity::module_base()+0x31abc70usize)as*mut u8,crate::system::collections::generic::dictionary_2::Dictionary_2<u32,crate::unity_engine::material::Material> ;
274(Renderer2DData)__receiver)
275 }
276 }
277 #[doc = "`get_shadowMaterials()` overload"]
278 fn get_shadow_materials(self) -> ::unity::Array<crate::unity_engine::material::Material> {
279 unsafe {
280 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
281 ::unity::il2cpp_call!((::unity::module_base()+0x31abc80usize)as*mut u8, ::unity::Array<crate::unity_engine::material::Material> ;
282(Renderer2DData)__receiver)
283 }
284 }
285 #[doc = "`set_shadowMaterials(::unity::Array<crate::unity_engine::material::Material>)` overload"]
286 fn set_shadow_materials(self, value: impl ::core::convert::Into<::unity::Array<crate::unity_engine::material::Material>>) -> () {
287 unsafe {
288 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
289 ::unity::il2cpp_call!((::unity::module_base()+0x31abc90usize)as*mut u8,();
290(Renderer2DData)__receiver,(::unity::Array<crate::unity_engine::material::Material>)::core::convert::Into::into(value))
291 }
292 }
293 #[doc = "`get_removeSelfShadowMaterials()` overload"]
294 fn get_remove_self_shadow_materials(self) -> ::unity::Array<crate::unity_engine::material::Material> {
295 unsafe {
296 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
297 ::unity::il2cpp_call!((::unity::module_base()+0x31abca0usize)as*mut u8, ::unity::Array<crate::unity_engine::material::Material> ;
298(Renderer2DData)__receiver)
299 }
300 }
301 #[doc = "`set_removeSelfShadowMaterials(::unity::Array<crate::unity_engine::material::Material>)` overload"]
302 fn set_remove_self_shadow_materials(self, value: impl ::core::convert::Into<::unity::Array<crate::unity_engine::material::Material>>) -> () {
303 unsafe {
304 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
305 ::unity::il2cpp_call!((::unity::module_base()+0x31abcb0usize)as*mut u8,();
306(Renderer2DData)__receiver,(::unity::Array<crate::unity_engine::material::Material>)::core::convert::Into::into(value))
307 }
308 }
309 #[doc = "`get_lightCullResult()` overload"]
310 fn get_light_cull_result(
311 self,
312 ) -> crate::unity_engine::experimental::rendering::universal::ilight2dcullresult_interface::ILight2DCullResult_Interface {
313 unsafe {
314 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
315 ::unity::il2cpp_call!((::unity::module_base()+0x31abcc0usize)as*mut u8,crate::unity_engine::experimental::rendering::universal::ilight2dcullresult_interface::ILight2DCullResult_Interface;
316(Renderer2DData)__receiver)
317 }
318 }
319 #[doc = "`set_lightCullResult(crate::unity_engine::experimental::rendering::universal::ilight2dcullresult_interface::ILight2DCullResult_Interface)` overload"]
320 fn set_light_cull_result(
321 self,
322 value: impl ::core::convert::Into<
323 crate::unity_engine::experimental::rendering::universal::ilight2dcullresult_interface::ILight2DCullResult_Interface,
324 >,
325 ) -> () {
326 unsafe {
327 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
328 ::unity::il2cpp_call!((::unity::module_base()+0x31abcd0usize)as*mut u8,();
329(Renderer2DData)__receiver,(crate::unity_engine::experimental::rendering::universal::ilight2dcullresult_interface::ILight2DCullResult_Interface)::core::convert::Into::into(value))
330 }
331 }
332 #[doc = "`.ctor()` overload"]
333 fn ctor(self) -> () {
334 unsafe {
335 let __receiver = <Renderer2DData as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
336 ::unity::il2cpp_call!((::unity::module_base()+0x31abce0usize)as*mut u8,();
337(Renderer2DData)__receiver)
338 }
339 }
340}
341
342#[cfg(feature = "unity_engine-experimental-rendering-universal-renderer2ddata")]
343impl<__T: IRenderer2DData> IRenderer2DDataMethods for __T {}
344
345#[cfg(feature = "unity_engine-experimental-rendering-universal-renderer2ddata")]
346impl Renderer2DData {
347 pub fn get_hdr_emulation_scale_method_info() -> &'static ::unity::il2cpp::MethodInfo {
348 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
349 }
350
351 pub fn get_light_blend_styles_method_info() -> &'static ::unity::il2cpp::MethodInfo {
352 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
353 }
354
355 pub fn get_use_depth_stencil_buffer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
356 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
357 }
358
359 pub fn get_shape_light_shader_method_info() -> &'static ::unity::il2cpp::MethodInfo {
360 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
361 }
362
363 pub fn get_shape_light_volume_shader_method_info() -> &'static ::unity::il2cpp::MethodInfo {
364 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
365 }
366
367 pub fn get_point_light_shader_method_info() -> &'static ::unity::il2cpp::MethodInfo {
368 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
369 }
370
371 pub fn get_point_light_volume_shader_method_info() -> &'static ::unity::il2cpp::MethodInfo {
372 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
373 }
374
375 pub fn get_blit_shader_method_info() -> &'static ::unity::il2cpp::MethodInfo {
376 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
377 }
378
379 pub fn get_shadow_group_shader_method_info() -> &'static ::unity::il2cpp::MethodInfo {
380 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
381 }
382
383 pub fn get_remove_self_shadow_shader_method_info() -> &'static ::unity::il2cpp::MethodInfo {
384 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
385 }
386
387 pub fn get_post_process_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
388 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
389 }
390
391 pub fn get_transparency_sort_mode_method_info() -> &'static ::unity::il2cpp::MethodInfo {
392 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
393 }
394
395 pub fn get_transparency_sort_axis_method_info() -> &'static ::unity::il2cpp::MethodInfo {
396 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
397 }
398
399 pub fn create_method_info() -> &'static ::unity::il2cpp::MethodInfo {
400 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
401 }
402
403 pub fn on_enable_method_info() -> &'static ::unity::il2cpp::MethodInfo {
404 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
405 }
406
407 pub fn get_light_materials_method_info() -> &'static ::unity::il2cpp::MethodInfo {
408 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
409 }
410
411 pub fn get_shadow_materials_method_info() -> &'static ::unity::il2cpp::MethodInfo {
412 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
413 }
414
415 pub fn set_shadow_materials_method_info() -> &'static ::unity::il2cpp::MethodInfo {
416 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
417 }
418
419 pub fn get_remove_self_shadow_materials_method_info() -> &'static ::unity::il2cpp::MethodInfo {
420 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
421 }
422
423 pub fn set_remove_self_shadow_materials_method_info() -> &'static ::unity::il2cpp::MethodInfo {
424 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
425 }
426
427 pub fn get_light_cull_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
428 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
429 }
430
431 pub fn set_light_cull_result_method_info() -> &'static ::unity::il2cpp::MethodInfo {
432 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
433 }
434
435 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
436 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
437 }
438}
439
440#[cfg(feature = "unity_engine-experimental-rendering-universal-renderer2ddata")]
441impl Renderer2DData {
442 #[doc = "Direct (non-virtual) call to `Renderer2DData`'s own `Create`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
443 pub unsafe fn create(
444 this: impl ::core::convert::Into<::unity::IlInstance>,
445 ) -> crate::unity_engine::rendering::universal::scriptablerenderer::ScriptableRenderer {
446 let __mi = Self::create_method_info();
447 let __inner: extern "C" fn(
448 ::unity::IlInstance,
449 ::unity::OptionalMethod,
450 ) -> crate::unity_engine::rendering::universal::scriptablerenderer::ScriptableRenderer = ::core::mem::transmute(__mi.method_ptr);
451 __inner(this.into(), ::core::option::Option::None)
452 }
453
454 #[doc = "Direct (non-virtual) call to `Renderer2DData`'s own `OnEnable`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
455 pub unsafe fn on_enable(this: impl ::core::convert::Into<::unity::IlInstance>) -> () {
456 let __mi = Self::on_enable_method_info();
457 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
458 __inner(this.into(), ::core::option::Option::None)
459 }
460}
461
462#[cfg(feature = "unity_engine-experimental-rendering-universal-renderer2ddata")]
463impl Renderer2DData {
464 #[doc = "`.ctor()` — no args"]
465 pub fn new() -> Self {
466 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
467 panic!(
468 "{}
469::{}
470 failed to instantiate",
471 ::core::stringify!(Renderer2DData),
472 ::core::stringify!(new),
473 )
474 });
475 <Self as IRenderer2DDataMethods>::ctor(this);
476 this
477 }
478}
479
480#[cfg(feature = "unity_engine-experimental-rendering-universal-renderer2ddata")]
481#[doc(hidden)]
482pub mod prelude {
483 pub use super::{IRenderer2DData, IRenderer2DDataMethods, Renderer2DData, Renderer2DData_Renderer2DDefaultMaterialType};
484 #[cfg(feature = "system-object")]
485 pub use crate::system::object::IObjectMethods;
486 #[cfg(feature = "system-enum")]
487 pub use crate::system::r#enum::IEnumMethods;
488 #[cfg(feature = "system-valuetype")]
489 pub use crate::system::valuetype::IValueTypeMethods;
490 #[cfg(feature = "unity_engine-object_2")]
491 pub use crate::unity_engine::object_2::IObject_2Methods;
492 #[cfg(feature = "unity_engine-rendering-universal-scriptablerendererdata")]
493 pub use crate::unity_engine::rendering::universal::scriptablerendererdata::IScriptableRendererDataMethods;
494 #[cfg(feature = "unity_engine-scriptableobject")]
495 pub use crate::unity_engine::scriptableobject::IScriptableObjectMethods;
496 pub use crate::{
497 system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
498 unity_engine::{
499 object_2::IObject_2, rendering::universal::scriptablerendererdata::IScriptableRendererData, scriptableobject::IScriptableObject,
500 },
501 };
502}