engage/generated/unity_engine/experimental/rendering/universal/
shadowutility.rs1#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowutility-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/experimental/rendering/universal/shadowutility/ShadowUtility.md"))]
14 #[::unity::class(namespace = "UnityEngine.Experimental.Rendering.Universal", name = "ShadowUtility")]
15 #[parent(crate::system::object::Object)]
16 pub struct ShadowUtility {}
17
18 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/universal/shadowutility/ShadowUtility_Edge.md"))]
19 #[repr(C)]
20 #[derive(::core::clone::Clone, ::core::marker::Copy)]
21 pub struct ShadowUtility_Edge {
22 pub vertex_index0: i32,
23 pub vertex_index1: i32,
24 pub tangent: crate::unity_engine::vector4::Vector4,
25 pub compare_reversed: bool,
26 }
27 impl ::unity::ClassIdentity for ShadowUtility_Edge {
28 const NAME: &'static str = "ShadowUtility.Edge";
29 const NAMESPACE: &'static str = "UnityEngine.Experimental.Rendering.Universal";
30
31 fn class() -> ::unity::Class {
32 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
33 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
34 }
35 }
36 impl ::unity::IlType for ShadowUtility_Edge {
37 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
38 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
39 }
40 }
41}
42
43#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowutility-types")]
44pub use __types::*;
45
46#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowutility")]
47impl ShadowUtility {
48 #[doc = "`CreateEdge(i32, i32, crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector3::Vector3>, crate::system::collections::generic::list_1::List_1<i32>)` overload"]
49 pub fn create_edge(
50 triangle_index_a: impl ::core::convert::Into<i32>,
51 triangle_index_b: impl ::core::convert::Into<i32>,
52 vertices: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector3::Vector3>>,
53 triangles: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<i32>>,
54 ) -> crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge {
55 unsafe {
56 ::unity::il2cpp_call!((::unity::module_base()+0x2edb600usize)as*mut u8,crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge;
57(i32)::core::convert::Into::into(triangle_index_a),(i32)::core::convert::Into::into(triangle_index_b),(crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector3::Vector3>)::core::convert::Into::into(vertices),(crate::system::collections::generic::list_1::List_1<i32>)::core::convert::Into::into(triangles))
58 }
59 }
60
61 #[doc = "`PopulateEdgeArray(crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector3::Vector3>, crate::system::collections::generic::list_1::List_1<i32>, crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge>)` overload"]
62 pub fn populate_edge_array(
63 vertices: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector3::Vector3>>,
64 triangles: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<i32>>,
65 edges: impl ::core::convert::Into<
66 crate::system::collections::generic::list_1::List_1<
67 crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge,
68 >,
69 >,
70 ) -> () {
71 unsafe {
72 ::unity::il2cpp_call!((::unity::module_base()+0x2edb7a0usize)as*mut u8,();
73(crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector3::Vector3>)::core::convert::Into::into(vertices),(crate::system::collections::generic::list_1::List_1<i32>)::core::convert::Into::into(triangles),(crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge>)::core::convert::Into::into(edges))
74 }
75 }
76
77 #[doc = "`IsOutsideEdge(i32, crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge>)` overload"]
78 pub fn is_outside_edge(
79 edge_index: impl ::core::convert::Into<i32>,
80 edges_to_process: impl ::core::convert::Into<
81 crate::system::collections::generic::list_1::List_1<
82 crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge,
83 >,
84 >,
85 ) -> bool {
86 unsafe {
87 ::unity::il2cpp_call!((::unity::module_base()+0x2edb900usize)as*mut u8,bool;
88(i32)::core::convert::Into::into(edge_index),(crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge>)::core::convert::Into::into(edges_to_process))
89 }
90 }
91
92 #[doc = "`SortEdges(crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge>)` overload"]
93 pub fn sort_edges(
94 edges_to_process: impl ::core::convert::Into<
95 crate::system::collections::generic::list_1::List_1<
96 crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge,
97 >,
98 >,
99 ) -> () {
100 unsafe {
101 ::unity::il2cpp_call!((::unity::module_base()+0x2edba60usize)as*mut u8,();
102(crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge>)::core::convert::Into::into(edges_to_process))
103 }
104 }
105
106 #[doc = "`CreateShadowTriangles(crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector3::Vector3>, crate::system::collections::generic::list_1::List_1<crate::unity_engine::color::Color>, crate::system::collections::generic::list_1::List_1<i32>, crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector4::Vector4>, crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge>)` overload"]
107 pub fn create_shadow_triangles(
108 vertices: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector3::Vector3>>,
109 colors: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::unity_engine::color::Color>>,
110 triangles: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<i32>>,
111 tangents: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector4::Vector4>>,
112 edges: impl ::core::convert::Into<
113 crate::system::collections::generic::list_1::List_1<
114 crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge,
115 >,
116 >,
117 ) -> () {
118 unsafe {
119 ::unity::il2cpp_call!((::unity::module_base()+0x2edbac0usize)as*mut u8,();
120(crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector3::Vector3>)::core::convert::Into::into(vertices),(crate::system::collections::generic::list_1::List_1<crate::unity_engine::color::Color>)::core::convert::Into::into(colors),(crate::system::collections::generic::list_1::List_1<i32>)::core::convert::Into::into(triangles),(crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector4::Vector4>)::core::convert::Into::into(tangents),(crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge>)::core::convert::Into::into(edges))
121 }
122 }
123
124 #[doc = "`InterpCustomVertexData(crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3, ::unity::Array<crate::system::object::Object>, ::unity::Array<f32>)` overload"]
125 pub fn interp_custom_vertex_data(
126 position: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3>,
127 data: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
128 weights: impl ::core::convert::Into<::unity::Array<f32>>,
129 ) -> crate::system::object::Object {
130 unsafe {
131 ::unity::il2cpp_call!((::unity::module_base()+0x2edbd60usize)as*mut u8,crate::system::object::Object;
132(crate::unity_engine::experimental::rendering::universal::lib_tess_dot_net::vec3::Vec3)::core::convert::Into::into(position),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(data),(::unity::Array<f32>)::core::convert::Into::into(weights))
133 }
134 }
135
136 #[doc = "`InitializeTangents(i32, crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector4::Vector4>)` overload"]
137 pub fn initialize_tangents(
138 tangents_to_add: impl ::core::convert::Into<i32>,
139 tangents: impl ::core::convert::Into<crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector4::Vector4>>,
140 ) -> () {
141 unsafe {
142 ::unity::il2cpp_call!((::unity::module_base()+0x2edbd90usize)as*mut u8,();
143(i32)::core::convert::Into::into(tangents_to_add),(crate::system::collections::generic::list_1::List_1<crate::unity_engine::vector4::Vector4>)::core::convert::Into::into(tangents))
144 }
145 }
146
147 #[doc = "`GenerateShadowMesh(crate::unity_engine::mesh::Mesh, ::unity::Array<crate::unity_engine::vector3::Vector3>)` overload"]
148 pub fn generate_shadow_mesh(
149 mesh: impl ::core::convert::Into<crate::unity_engine::mesh::Mesh>,
150 shape_path: impl ::core::convert::Into<::unity::Array<crate::unity_engine::vector3::Vector3>>,
151 ) -> () {
152 unsafe {
153 ::unity::il2cpp_call!((::unity::module_base()+0x2ed8c00usize)as*mut u8,();
154(crate::unity_engine::mesh::Mesh)::core::convert::Into::into(mesh),(::unity::Array<crate::unity_engine::vector3::Vector3>)::core::convert::Into::into(shape_path))
155 }
156 }
157}
158
159#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowutility")]
160pub trait IShadowUtilityMethods: IShadowUtility {
161 #[doc = "`.ctor()` overload"]
162 fn ctor(self) -> () {
163 unsafe {
164 let __receiver = <ShadowUtility as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
165 ::unity::il2cpp_call!((::unity::module_base()+0x2edc410usize)as*mut u8,();
166(ShadowUtility)__receiver)
167 }
168 }
169}
170
171#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowutility")]
172impl<__T: IShadowUtility> IShadowUtilityMethods for __T {}
173
174#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowutility")]
175impl ShadowUtility {
176 pub fn create_edge_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
178 }
179
180 pub fn populate_edge_array_method_info() -> &'static ::unity::il2cpp::MethodInfo {
181 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
182 }
183
184 pub fn is_outside_edge_method_info() -> &'static ::unity::il2cpp::MethodInfo {
185 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
186 }
187
188 pub fn sort_edges_method_info() -> &'static ::unity::il2cpp::MethodInfo {
189 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
190 }
191
192 pub fn create_shadow_triangles_method_info() -> &'static ::unity::il2cpp::MethodInfo {
193 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
194 }
195
196 pub fn interp_custom_vertex_data_method_info() -> &'static ::unity::il2cpp::MethodInfo {
197 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
198 }
199
200 pub fn initialize_tangents_method_info() -> &'static ::unity::il2cpp::MethodInfo {
201 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
202 }
203
204 pub fn generate_shadow_mesh_method_info() -> &'static ::unity::il2cpp::MethodInfo {
205 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
206 }
207
208 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
209 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
210 }
211}
212
213#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowutility")]
214impl ShadowUtility {
215 #[doc = "`.ctor()` — no args"]
216 pub fn new() -> Self {
217 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
218 panic!(
219 "{}
220::{}
221 failed to instantiate",
222 ::core::stringify!(ShadowUtility),
223 ::core::stringify!(new),
224 )
225 });
226 <Self as IShadowUtilityMethods>::ctor(this);
227 this
228 }
229}
230
231#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowutility")]
232impl ShadowUtility_Edge {
233 #[doc = "`AssignVertexIndices(i32, i32)` overload"]
234 pub fn assign_vertex_indices(&mut self, vi0: impl ::core::convert::Into<i32>, vi1: impl ::core::convert::Into<i32>) -> () {
235 unsafe {
236 ::unity::il2cpp_call!((::unity::module_base()+0x2cba5f0usize)as*mut u8,();
237(*mut ShadowUtility_Edge)self as*mut ShadowUtility_Edge,(i32)::core::convert::Into::into(vi0),(i32)::core::convert::Into::into(vi1))
238 }
239 }
240
241 #[doc = "`Compare(crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge, crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge)` overload"]
242 pub fn compare(
243 &mut self,
244 a: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge>,
245 b: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge>,
246 ) -> i32 {
247 unsafe {
248 ::unity::il2cpp_call!((::unity::module_base()+0x2cba610usize)as*mut u8,i32;
249(*mut ShadowUtility_Edge)self as*mut ShadowUtility_Edge,(crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge)::core::convert::Into::into(a),(crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge)::core::convert::Into::into(b))
250 }
251 }
252
253 #[doc = "`CompareTo(crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge)` overload"]
254 pub fn compare_to(
255 &mut self,
256 edge_to_compare: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge>,
257 ) -> i32 {
258 unsafe {
259 ::unity::il2cpp_call!((::unity::module_base()+0x2cba650usize)as*mut u8,i32;
260(*mut ShadowUtility_Edge)self as*mut ShadowUtility_Edge,(crate::unity_engine::experimental::rendering::universal::shadowutility::ShadowUtility_Edge)::core::convert::Into::into(edge_to_compare))
261 }
262 }
263}
264
265#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowutility")]
266impl ShadowUtility_Edge {
267 pub fn assign_vertex_indices_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
269 }
270
271 pub fn compare_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
273 }
274
275 pub fn compare_to_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
277 }
278}
279
280#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowutility")]
281#[doc(hidden)]
282pub mod prelude {
283 pub use super::{IShadowUtility, IShadowUtilityMethods, ShadowUtility, ShadowUtility_Edge};
284 #[cfg(feature = "system-object")]
285 pub use crate::system::object::IObjectMethods;
286 #[cfg(feature = "system-valuetype")]
287 pub use crate::system::valuetype::IValueTypeMethods;
288 pub use crate::system::{object::IObject, valuetype::IValueType};
289}