Skip to main content

engage/generated/unity_engine/rendering/
shadowsplitdata.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-shadowsplitdata-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/shadowsplitdata/ShadowSplitData.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct ShadowSplitData {}
17    impl ::unity::ClassIdentity for ShadowSplitData {
18        const NAME: &'static str = "ShadowSplitData";
19        const NAMESPACE: &'static str = "UnityEngine.Rendering";
20
21        fn class() -> ::unity::Class {
22            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
23            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
24        }
25    }
26    impl ::unity::IlType for ShadowSplitData {
27        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
28            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
29        }
30    }
31    impl ShadowSplitData {
32        #[inline]
33        pub fn maximum_culling_plane_count() -> i32 {
34            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
35            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "maximumCullingPlaneCount");
36            ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
37        }
38
39        #[inline]
40        pub fn set_maximum_culling_plane_count(value: i32) {
41            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
42            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "maximumCullingPlaneCount");
43            ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
44        }
45    }
46}
47
48#[cfg(feature = "unity_engine-rendering-shadowsplitdata-types")]
49pub use __types::*;
50
51#[cfg(feature = "unity_engine-rendering-shadowsplitdata")]
52impl ShadowSplitData {
53    #[doc = "`.cctor()` overload"]
54    pub fn cctor() -> () {
55        unsafe {
56            ::unity::il2cpp_call!((::unity::module_base()+0x2f93c80usize)as*mut u8,();
57            )
58        }
59    }
60}
61
62#[cfg(feature = "unity_engine-rendering-shadowsplitdata")]
63impl ShadowSplitData {
64    #[doc = "`get_cullingPlaneCount()` overload"]
65    pub fn get_culling_plane_count(&mut self) -> i32 {
66        unsafe {
67            ::unity::il2cpp_call!((::unity::module_base()+0x2f93a90usize)as*mut u8,i32;
68(*mut ShadowSplitData)self as*mut ShadowSplitData)
69        }
70    }
71
72    #[doc = "`get_cullingSphere()` overload"]
73    pub fn get_culling_sphere(&mut self) -> crate::unity_engine::vector4::Vector4 {
74        unsafe {
75            ::unity::il2cpp_call!((::unity::module_base()+0x2f93aa0usize)as*mut u8,crate::unity_engine::vector4::Vector4;
76(*mut ShadowSplitData)self as*mut ShadowSplitData)
77        }
78    }
79
80    #[doc = "`set_cullingSphere(crate::unity_engine::vector4::Vector4)` overload"]
81    pub fn set_culling_sphere(&mut self, value: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>) -> () {
82        unsafe {
83            ::unity::il2cpp_call!((::unity::module_base()+0x2f93ab0usize)as*mut u8,();
84(*mut ShadowSplitData)self as*mut ShadowSplitData,(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(value))
85        }
86    }
87
88    #[doc = "`set_shadowCascadeBlendCullingFactor(f32)` overload"]
89    pub fn set_shadow_cascade_blend_culling_factor(&mut self, value: impl ::core::convert::Into<f32>) -> () {
90        unsafe {
91            ::unity::il2cpp_call!((::unity::module_base()+0x2f935f0usize)as*mut u8,();
92(*mut ShadowSplitData)self as*mut ShadowSplitData,(f32)::core::convert::Into::into(value))
93        }
94    }
95
96    #[doc = "`GetCullingPlane(i32)` overload"]
97    pub fn get_culling_plane(&mut self, index: impl ::core::convert::Into<i32>) -> crate::unity_engine::plane::Plane {
98        unsafe {
99            ::unity::il2cpp_call!((::unity::module_base()+0x2f93ad0usize)as*mut u8,crate::unity_engine::plane::Plane;
100(*mut ShadowSplitData)self as*mut ShadowSplitData,(i32)::core::convert::Into::into(index))
101        }
102    }
103
104    #[doc = "`Equals(crate::unity_engine::rendering::shadowsplitdata::ShadowSplitData)` overload"]
105    pub fn equals(&mut self, other: impl ::core::convert::Into<crate::unity_engine::rendering::shadowsplitdata::ShadowSplitData>) -> bool {
106        unsafe {
107            ::unity::il2cpp_call!((::unity::module_base()+0x2f937a0usize)as*mut u8,bool;
108(*mut ShadowSplitData)self as*mut ShadowSplitData,(crate::unity_engine::rendering::shadowsplitdata::ShadowSplitData)::core::convert::Into::into(other))
109        }
110    }
111
112    #[doc = "`Equals(crate::system::object::Object)` overload"]
113    pub fn equals_2(&mut self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
114        unsafe {
115            ::unity::il2cpp_call!((::unity::module_base()+0x2f93be0usize)as*mut u8,bool;
116(*mut ShadowSplitData)self as*mut ShadowSplitData,(crate::system::object::Object)::core::convert::Into::into(obj))
117        }
118    }
119
120    #[doc = "`GetHashCode()` overload"]
121    pub fn get_hash_code(&mut self) -> i32 {
122        unsafe {
123            ::unity::il2cpp_call!((::unity::module_base()+0x2f93a60usize)as*mut u8,i32;
124(*mut ShadowSplitData)self as*mut ShadowSplitData)
125        }
126    }
127}
128
129#[cfg(feature = "unity_engine-rendering-shadowsplitdata")]
130impl ShadowSplitData {
131    pub fn get_culling_plane_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
133    }
134
135    pub fn get_culling_sphere_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
137    }
138
139    pub fn set_culling_sphere_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
141    }
142
143    pub fn set_shadow_cascade_blend_culling_factor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
145    }
146
147    pub fn get_culling_plane_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
149    }
150
151    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
153    }
154
155    pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
157    }
158
159    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
161    }
162
163    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
165    }
166}
167
168#[cfg(feature = "unity_engine-rendering-shadowsplitdata")]
169#[doc(hidden)]
170pub mod prelude {
171    pub use super::ShadowSplitData;
172    #[cfg(feature = "system-object")]
173    pub use crate::system::object::IObjectMethods;
174    #[cfg(feature = "system-valuetype")]
175    pub use crate::system::valuetype::IValueTypeMethods;
176    pub use crate::system::{object::IObject, valuetype::IValueType};
177}