engage/generated/unity_engine/rendering/
supportedrenderingfeatures.rs1#[cfg(feature = "unity_engine-rendering-supportedrenderingfeatures-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/supportedrenderingfeatures/SupportedRenderingFeatures_LightmapMixedBakeModes.md"))]
15 #[repr(C)]
16 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17 pub struct SupportedRenderingFeatures_LightmapMixedBakeModes {
18 pub value: i32,
19 }
20 impl ::unity::ClassIdentity for SupportedRenderingFeatures_LightmapMixedBakeModes {
21 const NAME: &'static str = "SupportedRenderingFeatures.LightmapMixedBakeModes";
22 const NAMESPACE: &'static str = "UnityEngine.Rendering";
23
24 fn class() -> ::unity::Class {
25 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27 }
28 }
29 impl ::unity::IlType for SupportedRenderingFeatures_LightmapMixedBakeModes {
30 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32 }
33 }
34 impl SupportedRenderingFeatures_LightmapMixedBakeModes {
35 pub fn none() -> Self {
36 Self { value: 0 }
37 }
38
39 pub fn indirect_only() -> Self {
40 Self { value: 1 }
41 }
42
43 pub fn subtractive() -> Self {
44 Self { value: 2 }
45 }
46
47 pub fn shadowmask() -> Self {
48 Self { value: 4 }
49 }
50 }
51
52 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/supportedrenderingfeatures/SupportedRenderingFeatures.md"))]
53 #[::unity::class(namespace = "UnityEngine.Rendering", name = "SupportedRenderingFeatures")]
54 #[parent(crate::system::object::Object)]
55 pub struct SupportedRenderingFeatures {
56 #[static_field]
57 #[rename(name = "s_Active")]
58 pub s_active: crate::unity_engine::rendering::supportedrenderingfeatures::SupportedRenderingFeatures,
59 }
60
61 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/supportedrenderingfeatures/SupportedRenderingFeatures_ReflectionProbeModes.md"))]
62 #[repr(C)]
63 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
64 pub struct SupportedRenderingFeatures_ReflectionProbeModes {
65 pub value: i32,
66 }
67 impl ::unity::ClassIdentity for SupportedRenderingFeatures_ReflectionProbeModes {
68 const NAME: &'static str = "SupportedRenderingFeatures.ReflectionProbeModes";
69 const NAMESPACE: &'static str = "UnityEngine.Rendering";
70
71 fn class() -> ::unity::Class {
72 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
73 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
74 }
75 }
76 impl ::unity::IlType for SupportedRenderingFeatures_ReflectionProbeModes {
77 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
78 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
79 }
80 }
81 impl SupportedRenderingFeatures_ReflectionProbeModes {
82 pub fn none() -> Self {
83 Self { value: 0 }
84 }
85
86 pub fn rotation() -> Self {
87 Self { value: 1 }
88 }
89 }
90}
91
92#[cfg(feature = "unity_engine-rendering-supportedrenderingfeatures-types")]
93pub use __types::*;
94
95#[cfg(feature = "unity_engine-rendering-supportedrenderingfeatures")]
96impl SupportedRenderingFeatures {
97 #[doc = "`get_active()` overload"]
98 pub fn get_active() -> crate::unity_engine::rendering::supportedrenderingfeatures::SupportedRenderingFeatures {
99 unsafe {
100 ::unity::il2cpp_call!((::unity::module_base()+0x2f9ad20usize)as*mut u8,crate::unity_engine::rendering::supportedrenderingfeatures::SupportedRenderingFeatures;
101 )
102 }
103 }
104
105 #[doc = "`set_active(crate::unity_engine::rendering::supportedrenderingfeatures::SupportedRenderingFeatures)` overload"]
106 pub fn set_active(
107 value: impl ::core::convert::Into<crate::unity_engine::rendering::supportedrenderingfeatures::SupportedRenderingFeatures>,
108 ) -> () {
109 unsafe {
110 ::unity::il2cpp_call!((::unity::module_base()+0x2f815b0usize)as*mut u8,();
111(crate::unity_engine::rendering::supportedrenderingfeatures::SupportedRenderingFeatures)::core::convert::Into::into(value))
112 }
113 }
114
115 #[doc = "`FallbackMixedLightingModeByRef(::unity::IntPtr)` overload"]
116 pub fn fallback_mixed_lighting_mode_by_ref(fallback_mode_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
117 unsafe {
118 ::unity::il2cpp_call!((::unity::module_base()+0x2f9af00usize)as*mut u8,();
119(::unity::IntPtr)::core::convert::Into::into(fallback_mode_ptr))
120 }
121 }
122
123 #[doc = "`IsMixedLightingModeSupported(crate::unity_engine::mixedlightingmode::MixedLightingMode)` overload"]
124 pub fn is_mixed_lighting_mode_supported(
125 mixed_mode: impl ::core::convert::Into<crate::unity_engine::mixedlightingmode::MixedLightingMode>,
126 ) -> bool {
127 unsafe {
128 ::unity::il2cpp_call!((::unity::module_base()+0x2f9b0d0usize)as*mut u8,bool;
129(crate::unity_engine::mixedlightingmode::MixedLightingMode)::core::convert::Into::into(mixed_mode))
130 }
131 }
132
133 #[doc = "`IsMixedLightingModeSupportedByRef(crate::unity_engine::mixedlightingmode::MixedLightingMode, ::unity::IntPtr)` overload"]
134 pub fn is_mixed_lighting_mode_supported_by_ref(
135 mixed_mode: impl ::core::convert::Into<crate::unity_engine::mixedlightingmode::MixedLightingMode>,
136 is_supported_ptr: impl ::core::convert::Into<::unity::IntPtr>,
137 ) -> () {
138 unsafe {
139 ::unity::il2cpp_call!((::unity::module_base()+0x2f9b150usize)as*mut u8,();
140(crate::unity_engine::mixedlightingmode::MixedLightingMode)::core::convert::Into::into(mixed_mode),(::unity::IntPtr)::core::convert::Into::into(is_supported_ptr))
141 }
142 }
143
144 #[doc = "`IsLightmapBakeTypeSupported(crate::unity_engine::lightmapbaketype::LightmapBakeType)` overload"]
145 pub fn is_lightmap_bake_type_supported(bake_type: impl ::core::convert::Into<crate::unity_engine::lightmapbaketype::LightmapBakeType>) -> bool {
146 unsafe {
147 ::unity::il2cpp_call!((::unity::module_base()+0x2f9b2f0usize)as*mut u8,bool;
148(crate::unity_engine::lightmapbaketype::LightmapBakeType)::core::convert::Into::into(bake_type))
149 }
150 }
151
152 #[doc = "`IsLightmapBakeTypeSupportedByRef(crate::unity_engine::lightmapbaketype::LightmapBakeType, ::unity::IntPtr)` overload"]
153 pub fn is_lightmap_bake_type_supported_by_ref(
154 bake_type: impl ::core::convert::Into<crate::unity_engine::lightmapbaketype::LightmapBakeType>,
155 is_supported_ptr: impl ::core::convert::Into<::unity::IntPtr>,
156 ) -> () {
157 unsafe {
158 ::unity::il2cpp_call!((::unity::module_base()+0x2f9b370usize)as*mut u8,();
159(crate::unity_engine::lightmapbaketype::LightmapBakeType)::core::convert::Into::into(bake_type),(::unity::IntPtr)::core::convert::Into::into(is_supported_ptr))
160 }
161 }
162
163 #[doc = "`IsLightmapsModeSupportedByRef(crate::unity_engine::lightmapsmode::LightmapsMode, ::unity::IntPtr)` overload"]
164 pub fn is_lightmaps_mode_supported_by_ref(
165 mode: impl ::core::convert::Into<crate::unity_engine::lightmapsmode::LightmapsMode>,
166 is_supported_ptr: impl ::core::convert::Into<::unity::IntPtr>,
167 ) -> () {
168 unsafe {
169 ::unity::il2cpp_call!((::unity::module_base()+0x2f9b550usize)as*mut u8,();
170(crate::unity_engine::lightmapsmode::LightmapsMode)::core::convert::Into::into(mode),(::unity::IntPtr)::core::convert::Into::into(is_supported_ptr))
171 }
172 }
173
174 #[doc = "`IsLightmapperSupportedByRef(i32, ::unity::IntPtr)` overload"]
175 pub fn is_lightmapper_supported_by_ref(
176 lightmapper: impl ::core::convert::Into<i32>,
177 is_supported_ptr: impl ::core::convert::Into<::unity::IntPtr>,
178 ) -> () {
179 unsafe {
180 ::unity::il2cpp_call!((::unity::module_base()+0x2f9b5e0usize)as*mut u8,();
181(i32)::core::convert::Into::into(lightmapper),(::unity::IntPtr)::core::convert::Into::into(is_supported_ptr))
182 }
183 }
184
185 #[doc = "`IsUIOverlayRenderedBySRP(::unity::IntPtr)` overload"]
186 pub fn is_ui_overlay_rendered_by_srp(is_supported_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
187 unsafe {
188 ::unity::il2cpp_call!((::unity::module_base()+0x2f9b670usize)as*mut u8,();
189(::unity::IntPtr)::core::convert::Into::into(is_supported_ptr))
190 }
191 }
192
193 #[doc = "`IsAutoAmbientProbeBakingSupported(::unity::IntPtr)` overload"]
194 pub fn is_auto_ambient_probe_baking_supported(is_supported_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
195 unsafe {
196 ::unity::il2cpp_call!((::unity::module_base()+0x2f9b6f0usize)as*mut u8,();
197(::unity::IntPtr)::core::convert::Into::into(is_supported_ptr))
198 }
199 }
200
201 #[doc = "`IsAutoDefaultReflectionProbeBakingSupported(::unity::IntPtr)` overload"]
202 pub fn is_auto_default_reflection_probe_baking_supported(is_supported_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
203 unsafe {
204 ::unity::il2cpp_call!((::unity::module_base()+0x2f9b770usize)as*mut u8,();
205(::unity::IntPtr)::core::convert::Into::into(is_supported_ptr))
206 }
207 }
208
209 #[doc = "`FallbackLightmapperByRef(::unity::IntPtr)` overload"]
210 pub fn fallback_lightmapper_by_ref(lightmapper_ptr: impl ::core::convert::Into<::unity::IntPtr>) -> () {
211 unsafe {
212 ::unity::il2cpp_call!((::unity::module_base()+0x2f9b7f0usize)as*mut u8,();
213(::unity::IntPtr)::core::convert::Into::into(lightmapper_ptr))
214 }
215 }
216
217 #[doc = "`.cctor()` overload"]
218 pub fn cctor() -> () {
219 unsafe {
220 ::unity::il2cpp_call!((::unity::module_base()+0x2f9b810usize)as*mut u8,();
221 )
222 }
223 }
224}
225
226#[cfg(feature = "unity_engine-rendering-supportedrenderingfeatures")]
227pub trait ISupportedRenderingFeaturesMethods: ISupportedRenderingFeatures {
228 #[doc = "`get_defaultMixedLightingModes()` overload"]
229 fn get_default_mixed_lighting_modes(
230 self,
231 ) -> crate::unity_engine::rendering::supportedrenderingfeatures::SupportedRenderingFeatures_LightmapMixedBakeModes {
232 unsafe {
233 let __receiver =
234 <SupportedRenderingFeatures as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
235 ::unity::il2cpp_call!((::unity::module_base()+0x2f9ae80usize)as*mut u8,crate::unity_engine::rendering::supportedrenderingfeatures::SupportedRenderingFeatures_LightmapMixedBakeModes;
236(SupportedRenderingFeatures)__receiver)
237 }
238 }
239 #[doc = "`get_mixedLightingModes()` overload"]
240 fn get_mixed_lighting_modes(
241 self,
242 ) -> crate::unity_engine::rendering::supportedrenderingfeatures::SupportedRenderingFeatures_LightmapMixedBakeModes {
243 unsafe {
244 let __receiver =
245 <SupportedRenderingFeatures as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246 ::unity::il2cpp_call!((::unity::module_base()+0x2f9ae90usize)as*mut u8,crate::unity_engine::rendering::supportedrenderingfeatures::SupportedRenderingFeatures_LightmapMixedBakeModes;
247(SupportedRenderingFeatures)__receiver)
248 }
249 }
250 #[doc = "`get_lightmapBakeTypes()` overload"]
251 fn get_lightmap_bake_types(self) -> crate::unity_engine::lightmapbaketype::LightmapBakeType {
252 unsafe {
253 let __receiver =
254 <SupportedRenderingFeatures as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
255 ::unity::il2cpp_call!((::unity::module_base()+0x2f9aea0usize)as*mut u8,crate::unity_engine::lightmapbaketype::LightmapBakeType;
256(SupportedRenderingFeatures)__receiver)
257 }
258 }
259 #[doc = "`get_lightmapsModes()` overload"]
260 fn get_lightmaps_modes(self) -> crate::unity_engine::lightmapsmode::LightmapsMode {
261 unsafe {
262 let __receiver =
263 <SupportedRenderingFeatures as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
264 ::unity::il2cpp_call!((::unity::module_base()+0x2f9aeb0usize)as*mut u8,crate::unity_engine::lightmapsmode::LightmapsMode;
265(SupportedRenderingFeatures)__receiver)
266 }
267 }
268 #[doc = "`get_enlighten()` overload"]
269 fn get_enlighten(self) -> bool {
270 unsafe {
271 let __receiver =
272 <SupportedRenderingFeatures as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
273 ::unity::il2cpp_call!((::unity::module_base()+0x2f9aec0usize)as*mut u8,bool;
274(SupportedRenderingFeatures)__receiver)
275 }
276 }
277 #[doc = "`get_rendersUIOverlay()` overload"]
278 fn get_renders_ui_overlay(self) -> bool {
279 unsafe {
280 let __receiver =
281 <SupportedRenderingFeatures as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
282 ::unity::il2cpp_call!((::unity::module_base()+0x2f9aed0usize)as*mut u8,bool;
283(SupportedRenderingFeatures)__receiver)
284 }
285 }
286 #[doc = "`get_autoAmbientProbeBaking()` overload"]
287 fn get_auto_ambient_probe_baking(self) -> bool {
288 unsafe {
289 let __receiver =
290 <SupportedRenderingFeatures as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
291 ::unity::il2cpp_call!((::unity::module_base()+0x2f9aee0usize)as*mut u8,bool;
292(SupportedRenderingFeatures)__receiver)
293 }
294 }
295 #[doc = "`get_autoDefaultReflectionProbeBaking()` overload"]
296 fn get_auto_default_reflection_probe_baking(self) -> bool {
297 unsafe {
298 let __receiver =
299 <SupportedRenderingFeatures as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
300 ::unity::il2cpp_call!((::unity::module_base()+0x2f9aef0usize)as*mut u8,bool;
301(SupportedRenderingFeatures)__receiver)
302 }
303 }
304 #[doc = "`.ctor()` overload"]
305 fn ctor(self) -> () {
306 unsafe {
307 let __receiver =
308 <SupportedRenderingFeatures as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
309 ::unity::il2cpp_call!((::unity::module_base()+0x2f81510usize)as*mut u8,();
310(SupportedRenderingFeatures)__receiver)
311 }
312 }
313}
314
315#[cfg(feature = "unity_engine-rendering-supportedrenderingfeatures")]
316impl<__T: ISupportedRenderingFeatures> ISupportedRenderingFeaturesMethods for __T {}
317
318#[cfg(feature = "unity_engine-rendering-supportedrenderingfeatures")]
319impl SupportedRenderingFeatures {
320 pub fn get_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
321 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
322 }
323
324 pub fn set_active_method_info() -> &'static ::unity::il2cpp::MethodInfo {
325 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
326 }
327
328 pub fn get_default_mixed_lighting_modes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
329 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
330 }
331
332 pub fn get_mixed_lighting_modes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
333 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
334 }
335
336 pub fn get_lightmap_bake_types_method_info() -> &'static ::unity::il2cpp::MethodInfo {
337 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
338 }
339
340 pub fn get_lightmaps_modes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
341 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
342 }
343
344 pub fn get_enlighten_method_info() -> &'static ::unity::il2cpp::MethodInfo {
345 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
346 }
347
348 pub fn get_renders_ui_overlay_method_info() -> &'static ::unity::il2cpp::MethodInfo {
349 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
350 }
351
352 pub fn get_auto_ambient_probe_baking_method_info() -> &'static ::unity::il2cpp::MethodInfo {
353 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
354 }
355
356 pub fn get_auto_default_reflection_probe_baking_method_info() -> &'static ::unity::il2cpp::MethodInfo {
357 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
358 }
359
360 pub fn fallback_mixed_lighting_mode_by_ref_method_info() -> &'static ::unity::il2cpp::MethodInfo {
361 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
362 }
363
364 pub fn is_mixed_lighting_mode_supported_method_info() -> &'static ::unity::il2cpp::MethodInfo {
365 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
366 }
367
368 pub fn is_mixed_lighting_mode_supported_by_ref_method_info() -> &'static ::unity::il2cpp::MethodInfo {
369 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
370 }
371
372 pub fn is_lightmap_bake_type_supported_method_info() -> &'static ::unity::il2cpp::MethodInfo {
373 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
374 }
375
376 pub fn is_lightmap_bake_type_supported_by_ref_method_info() -> &'static ::unity::il2cpp::MethodInfo {
377 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
378 }
379
380 pub fn is_lightmaps_mode_supported_by_ref_method_info() -> &'static ::unity::il2cpp::MethodInfo {
381 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
382 }
383
384 pub fn is_lightmapper_supported_by_ref_method_info() -> &'static ::unity::il2cpp::MethodInfo {
385 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
386 }
387
388 pub fn is_ui_overlay_rendered_by_srp_method_info() -> &'static ::unity::il2cpp::MethodInfo {
389 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
390 }
391
392 pub fn is_auto_ambient_probe_baking_supported_method_info() -> &'static ::unity::il2cpp::MethodInfo {
393 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
394 }
395
396 pub fn is_auto_default_reflection_probe_baking_supported_method_info() -> &'static ::unity::il2cpp::MethodInfo {
397 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
398 }
399
400 pub fn fallback_lightmapper_by_ref_method_info() -> &'static ::unity::il2cpp::MethodInfo {
401 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
402 }
403
404 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
405 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[21]
406 }
407
408 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
409 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[22]
410 }
411}
412
413#[cfg(feature = "unity_engine-rendering-supportedrenderingfeatures")]
414impl SupportedRenderingFeatures {
415 #[doc = "`.ctor()` — no args"]
416 pub fn new() -> Self {
417 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
418 panic!(
419 "{}
420::{}
421 failed to instantiate",
422 ::core::stringify!(SupportedRenderingFeatures),
423 ::core::stringify!(new),
424 )
425 });
426 <Self as ISupportedRenderingFeaturesMethods>::ctor(this);
427 this
428 }
429}
430
431#[cfg(feature = "unity_engine-rendering-supportedrenderingfeatures")]
432#[doc(hidden)]
433pub mod prelude {
434 pub use super::{
435 ISupportedRenderingFeatures, ISupportedRenderingFeaturesMethods, SupportedRenderingFeatures,
436 SupportedRenderingFeatures_LightmapMixedBakeModes, SupportedRenderingFeatures_ReflectionProbeModes,
437 };
438 #[cfg(feature = "system-object")]
439 pub use crate::system::object::IObjectMethods;
440 #[cfg(feature = "system-enum")]
441 pub use crate::system::r#enum::IEnumMethods;
442 #[cfg(feature = "system-valuetype")]
443 pub use crate::system::valuetype::IValueTypeMethods;
444 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
445}