engage/generated/unity_engine/experimental/rendering/universal/
light2dcullresult.rs1#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dcullresult-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/universal/light2dcullresult/Light2DCullResult.md"))]
11 #[::unity::class(namespace = "UnityEngine.Experimental.Rendering.Universal", name = "Light2DCullResult")]
12 #[parent(crate::system::object::Object)]
13 pub struct Light2DCullResult {
14 #[offset(16)]
15 #[rename(name = "m_VisibleLights")]
16 pub m_visible_lights:
17 crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2>,
18 }
19}
20
21#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dcullresult-types")]
22pub use __types::*;
23
24#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dcullresult")]
25pub trait ILight2DCullResultMethods: ILight2DCullResult {
26 #[doc = "`get_visibleLights()` overload"]
27 fn get_visible_lights(
28 self,
29 ) -> crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2> {
30 unsafe {
31 let __receiver = <Light2DCullResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32 {
33 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
34 let __vi = *__vt.get(4usize).unwrap_or_else(|| {
35 panic!(
36 "unity: virtual slot {}
37 out of range (vtable len {}
38) on the runtime class behind {}
39 (method `{}
40`)",
41 4usize,
42 __vt.len(),
43 <Light2DCullResult as ::unity::ClassIdentity>::NAME,
44 "get_visibleLights",
45 )
46 });
47 let __inner: extern "C" fn(
48 Light2DCullResult,
49 ::unity::OptionalMethod,
50 ) -> crate::system::collections::generic::list_1::List_1<
51 crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2,
52 > = ::core::mem::transmute(__vi.method_ptr);
53 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
54 __inner(__receiver, __mi)
55 }
56 }
57 }
58 #[doc = "`IsSceneLit()` overload"]
59 fn is_scene_lit(self) -> bool {
60 unsafe {
61 let __receiver = <Light2DCullResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62 {
63 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
64 let __vi = *__vt.get(6usize).unwrap_or_else(|| {
65 panic!(
66 "unity: virtual slot {}
67 out of range (vtable len {}
68) on the runtime class behind {}
69 (method `{}
70`)",
71 6usize,
72 __vt.len(),
73 <Light2DCullResult as ::unity::ClassIdentity>::NAME,
74 "IsSceneLit",
75 )
76 });
77 let __inner: extern "C" fn(Light2DCullResult, ::unity::OptionalMethod) -> bool = ::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 = "`GetLightStatsByLayer(i32)` overload"]
84 fn get_light_stats_by_layer(
85 self,
86 layer: impl ::core::convert::Into<i32>,
87 ) -> crate::unity_engine::experimental::rendering::universal::lightstats::LightStats {
88 unsafe {
89 let __receiver = <Light2DCullResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
90 {
91 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
92 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
93 panic!(
94 "unity: virtual slot {}
95 out of range (vtable len {}
96) on the runtime class behind {}
97 (method `{}
98`)",
99 5usize,
100 __vt.len(),
101 <Light2DCullResult as ::unity::ClassIdentity>::NAME,
102 "GetLightStatsByLayer",
103 )
104 });
105 let __inner: extern "C" fn(
106 Light2DCullResult,
107 i32,
108 ::unity::OptionalMethod,
109 ) -> crate::unity_engine::experimental::rendering::universal::lightstats::LightStats = ::core::mem::transmute(__vi.method_ptr);
110 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
111 __inner(__receiver, ::core::convert::Into::into(layer), __mi)
112 }
113 }
114 }
115 #[doc = "`SetupCulling(*mutcrate::unity_engine::rendering::scriptablecullingparameters::ScriptableCullingParameters, crate::unity_engine::camera::Camera)` overload"]
116 fn setup_culling(
117 self,
118 camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
119 ) -> crate::unity_engine::rendering::scriptablecullingparameters::ScriptableCullingParameters {
120 unsafe {
121 let __receiver = <Light2DCullResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
122 let mut __out_0 =
123 ::core::mem::MaybeUninit::<crate::unity_engine::rendering::scriptablecullingparameters::ScriptableCullingParameters>::uninit();
124 ::unity::il2cpp_call!((::unity::module_base()+0x2ef4b20usize)as*mut u8,();
125(Light2DCullResult)__receiver,(*mut crate::unity_engine::rendering::scriptablecullingparameters::ScriptableCullingParameters)__out_0.as_mut_ptr(),(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera));
126 __out_0.assume_init()
127 }
128 }
129 #[doc = "`.ctor()` overload"]
130 fn ctor(self) -> () {
131 unsafe {
132 let __receiver = <Light2DCullResult as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133 ::unity::il2cpp_call!((::unity::module_base()+0x2ef4f70usize)as*mut u8,();
134(Light2DCullResult)__receiver)
135 }
136 }
137}
138
139#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dcullresult")]
140impl<__T: ILight2DCullResult> ILight2DCullResultMethods for __T {}
141
142#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dcullresult")]
143impl Light2DCullResult {
144 pub fn get_visible_lights_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
146 }
147
148 pub fn is_scene_lit_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
150 }
151
152 pub fn get_light_stats_by_layer_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
154 }
155
156 pub fn setup_culling_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
158 }
159
160 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
162 }
163}
164
165#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dcullresult")]
166impl Light2DCullResult {
167 #[doc = "Direct (non-virtual) call to `Light2DCullResult`'s own `get_visibleLights`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
168 pub unsafe fn get_visible_lights(
169 this: impl ::core::convert::Into<::unity::IlInstance>,
170 ) -> crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2> {
171 let __mi = Self::get_visible_lights_method_info();
172 let __inner: extern "C" fn(
173 ::unity::IlInstance,
174 ::unity::OptionalMethod,
175 ) -> crate::system::collections::generic::list_1::List_1<
176 crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2,
177 > = ::core::mem::transmute(__mi.method_ptr);
178 __inner(this.into(), ::core::option::Option::None)
179 }
180
181 #[doc = "Direct (non-virtual) call to `Light2DCullResult`'s own `IsSceneLit`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
182 pub unsafe fn is_scene_lit(this: impl ::core::convert::Into<::unity::IlInstance>) -> bool {
183 let __mi = Self::is_scene_lit_method_info();
184 let __inner: extern "C" fn(::unity::IlInstance, ::unity::OptionalMethod) -> bool = ::core::mem::transmute(__mi.method_ptr);
185 __inner(this.into(), ::core::option::Option::None)
186 }
187
188 #[doc = "Direct (non-virtual) call to `Light2DCullResult`'s own `GetLightStatsByLayer`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
189 pub unsafe fn get_light_stats_by_layer(
190 this: impl ::core::convert::Into<::unity::IlInstance>,
191 layer: i32,
192 ) -> crate::unity_engine::experimental::rendering::universal::lightstats::LightStats {
193 let __mi = Self::get_light_stats_by_layer_method_info();
194 let __inner: extern "C" fn(
195 ::unity::IlInstance,
196 i32,
197 ::unity::OptionalMethod,
198 ) -> crate::unity_engine::experimental::rendering::universal::lightstats::LightStats = ::core::mem::transmute(__mi.method_ptr);
199 __inner(this.into(), layer, ::core::option::Option::None)
200 }
201}
202
203#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dcullresult")]
204impl Light2DCullResult {
205 #[doc = "`.ctor()` — no args"]
206 pub fn new() -> Self {
207 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
208 panic!(
209 "{}
210::{}
211 failed to instantiate",
212 ::core::stringify!(Light2DCullResult),
213 ::core::stringify!(new),
214 )
215 });
216 <Self as ILight2DCullResultMethods>::ctor(this);
217 this
218 }
219}
220
221#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dcullresult")]
222#[doc(hidden)]
223pub mod prelude {
224 pub use super::{ILight2DCullResult, ILight2DCullResultMethods, Light2DCullResult};
225 pub use crate::system::object::IObject;
226 #[cfg(feature = "system-object")]
227 pub use crate::system::object::IObjectMethods;
228}