Skip to main content

engage/generated/unity_engine/rendering/universal/internal/
deferredtiler.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-internal-deferredtiler-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/universal/internal/deferredtiler/DeferredTiler.md"))]
15    #[repr(C)]
16    #[derive(::core::clone::Clone, ::core::marker::Copy)]
17    pub struct DeferredTiler {}
18    impl ::unity::ClassIdentity for DeferredTiler {
19        const NAME: &'static str = "DeferredTiler";
20        const NAMESPACE: &'static str = "UnityEngine.Rendering.Universal.Internal";
21
22        fn class() -> ::unity::Class {
23            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
24            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
25        }
26    }
27    impl ::unity::IlType for DeferredTiler {
28        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
29            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
30        }
31    }
32
33    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/internal/deferredtiler/DeferredTiler_ClipResult.md"))]
34    #[repr(C)]
35    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
36    pub struct DeferredTiler_ClipResult {
37        pub value: i32,
38    }
39    impl ::unity::ClassIdentity for DeferredTiler_ClipResult {
40        const NAME: &'static str = "DeferredTiler.ClipResult";
41        const NAMESPACE: &'static str = "UnityEngine.Rendering.Universal.Internal";
42
43        fn class() -> ::unity::Class {
44            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
45            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
46        }
47    }
48    impl ::unity::IlType for DeferredTiler_ClipResult {
49        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
50            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
51        }
52    }
53    impl DeferredTiler_ClipResult {
54        pub fn unknown() -> Self {
55            Self { value: 0 }
56        }
57
58        pub fn r#in() -> Self {
59            Self { value: 1 }
60        }
61
62        pub fn out() -> Self {
63            Self { value: 2 }
64        }
65    }
66
67    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/internal/deferredtiler/DeferredTiler_PrePunctualLight.md"))]
68    #[repr(C)]
69    #[derive(::core::clone::Clone, ::core::marker::Copy)]
70    pub struct DeferredTiler_PrePunctualLight {}
71    impl ::unity::ClassIdentity for DeferredTiler_PrePunctualLight {
72        const NAME: &'static str = "DeferredTiler.PrePunctualLight";
73        const NAMESPACE: &'static str = "UnityEngine.Rendering.Universal.Internal";
74
75        fn class() -> ::unity::Class {
76            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
77            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
78        }
79    }
80    impl ::unity::IlType for DeferredTiler_PrePunctualLight {
81        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
82            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
83        }
84    }
85}
86
87#[cfg(feature = "unity_engine-rendering-universal-internal-deferredtiler-types")]
88pub use __types::*;
89
90#[cfg(feature = "unity_engine-rendering-universal-internal-deferredtiler")]
91impl DeferredTiler {
92    #[doc = "`SignedSq(f32)` overload"]
93    pub fn signed_sq(f: impl ::core::convert::Into<f32>) -> f32 {
94        unsafe {
95            ::unity::il2cpp_call!((::unity::module_base()+0x2ee6f20usize)as*mut u8,f32;
96(f32)::core::convert::Into::into(f))
97        }
98    }
99
100    #[doc = "`min2(f32, f32)` overload"]
101    pub fn min2(a: impl ::core::convert::Into<f32>, b: impl ::core::convert::Into<f32>) -> f32 {
102        unsafe {
103            ::unity::il2cpp_call!((::unity::module_base()+0x2ee6f40usize)as*mut u8,f32;
104(f32)::core::convert::Into::into(a),(f32)::core::convert::Into::into(b))
105        }
106    }
107
108    #[doc = "`max2(f32, f32)` overload"]
109    pub fn max2(a: impl ::core::convert::Into<f32>, b: impl ::core::convert::Into<f32>) -> f32 {
110        unsafe {
111            ::unity::il2cpp_call!((::unity::module_base()+0x2ee6f50usize)as*mut u8,f32;
112(f32)::core::convert::Into::into(a),(f32)::core::convert::Into::into(b))
113        }
114    }
115
116    #[doc = "`max3(f32, f32, f32)` overload"]
117    pub fn max3(a: impl ::core::convert::Into<f32>, b: impl ::core::convert::Into<f32>, c: impl ::core::convert::Into<f32>) -> f32 {
118        unsafe {
119            ::unity::il2cpp_call!((::unity::module_base()+0x2ee6f60usize)as*mut u8,f32;
120(f32)::core::convert::Into::into(a),(f32)::core::convert::Into::into(b),(f32)::core::convert::Into::into(c))
121        }
122    }
123
124    #[doc = "`_f32tof16(f32)` overload"]
125    pub fn f32tof16(x: impl ::core::convert::Into<f32>) -> u32 {
126        unsafe {
127            ::unity::il2cpp_call!((::unity::module_base()+0x2ee6f80usize)as*mut u8,u32;
128(f32)::core::convert::Into::into(x))
129        }
130    }
131
132    #[doc = "`Align(i32, i32)` overload"]
133    pub fn align(s: impl ::core::convert::Into<i32>, alignment: impl ::core::convert::Into<i32>) -> i32 {
134        unsafe {
135            ::unity::il2cpp_call!((::unity::module_base()+0x2ee6ff0usize)as*mut u8,i32;
136(i32)::core::convert::Into::into(s),(i32)::core::convert::Into::into(alignment))
137        }
138    }
139}
140
141#[cfg(feature = "unity_engine-rendering-universal-internal-deferredtiler")]
142impl DeferredTiler {
143    #[doc = "`.ctor(i32, i32, i32, i32)` overload"]
144    pub fn ctor(
145        &mut self,
146        tile_pixel_width: impl ::core::convert::Into<i32>,
147        tile_pixel_height: impl ::core::convert::Into<i32>,
148        avg_light_per_tile: impl ::core::convert::Into<i32>,
149        tiler_level: impl ::core::convert::Into<i32>,
150    ) -> () {
151        unsafe {
152            ::unity::il2cpp_call!((::unity::module_base()+0x2ee45a0usize)as*mut u8,();
153(*mut DeferredTiler)self as*mut DeferredTiler,(i32)::core::convert::Into::into(tile_pixel_width),(i32)::core::convert::Into::into(tile_pixel_height),(i32)::core::convert::Into::into(avg_light_per_tile),(i32)::core::convert::Into::into(tiler_level))
154        }
155    }
156
157    #[doc = "`get_TilerLevel()` overload"]
158    pub fn get_tiler_level(&mut self) -> i32 {
159        unsafe {
160            ::unity::il2cpp_call!((::unity::module_base()+0x2ee45f0usize)as*mut u8,i32;
161(*mut DeferredTiler)self as*mut DeferredTiler)
162        }
163    }
164
165    #[doc = "`get_TileXCount()` overload"]
166    pub fn get_tile_x_count(&mut self) -> i32 {
167        unsafe {
168            ::unity::il2cpp_call!((::unity::module_base()+0x2ee4600usize)as*mut u8,i32;
169(*mut DeferredTiler)self as*mut DeferredTiler)
170        }
171    }
172
173    #[doc = "`get_TileYCount()` overload"]
174    pub fn get_tile_y_count(&mut self) -> i32 {
175        unsafe {
176            ::unity::il2cpp_call!((::unity::module_base()+0x2ee4610usize)as*mut u8,i32;
177(*mut DeferredTiler)self as*mut DeferredTiler)
178        }
179    }
180
181    #[doc = "`get_TilePixelWidth()` overload"]
182    pub fn get_tile_pixel_width(&mut self) -> i32 {
183        unsafe {
184            ::unity::il2cpp_call!((::unity::module_base()+0x2ee4620usize)as*mut u8,i32;
185(*mut DeferredTiler)self as*mut DeferredTiler)
186        }
187    }
188
189    #[doc = "`get_TilePixelHeight()` overload"]
190    pub fn get_tile_pixel_height(&mut self) -> i32 {
191        unsafe {
192            ::unity::il2cpp_call!((::unity::module_base()+0x2ee4630usize)as*mut u8,i32;
193(*mut DeferredTiler)self as*mut DeferredTiler)
194        }
195    }
196
197    #[doc = "`get_TileHeaderSize()` overload"]
198    pub fn get_tile_header_size(&mut self) -> i32 {
199        unsafe {
200            ::unity::il2cpp_call!((::unity::module_base()+0x2ee4640usize)as*mut u8,i32;
201(*mut DeferredTiler)self as*mut DeferredTiler)
202        }
203    }
204
205    #[doc = "`get_MaxLightPerTile()` overload"]
206    pub fn get_max_light_per_tile(&mut self) -> i32 {
207        unsafe {
208            ::unity::il2cpp_call!((::unity::module_base()+0x2ee4650usize)as*mut u8,i32;
209(*mut DeferredTiler)self as*mut DeferredTiler)
210        }
211    }
212
213    #[doc = "`get_TileDataCapacity()` overload"]
214    pub fn get_tile_data_capacity(&mut self) -> i32 {
215        unsafe {
216            ::unity::il2cpp_call!((::unity::module_base()+0x2ee46d0usize)as*mut u8,i32;
217(*mut DeferredTiler)self as*mut DeferredTiler)
218        }
219    }
220
221    #[doc = "`GetTileOffsetAndCount(i32, i32, *muti32, *muti32)` overload"]
222    pub fn get_tile_offset_and_count(&mut self, i: impl ::core::convert::Into<i32>, j: impl ::core::convert::Into<i32>) -> (i32, i32) {
223        unsafe {
224            let mut __out_0 = ::core::mem::MaybeUninit::<i32>::uninit();
225            let mut __out_1 = ::core::mem::MaybeUninit::<i32>::uninit();
226            ::unity::il2cpp_call!((::unity::module_base()+0x2ee4770usize)as*mut u8,();
227(*mut DeferredTiler)self as*mut DeferredTiler,(i32)::core::convert::Into::into(i),(i32)::core::convert::Into::into(j),(*mut i32)__out_0.as_mut_ptr(),(*mut i32)__out_1.as_mut_ptr());
228            (__out_0.assume_init(), __out_1.assume_init())
229        }
230    }
231
232    #[doc = "`GetTileHeaderOffset(i32, i32)` overload"]
233    pub fn get_tile_header_offset(&mut self, i: impl ::core::convert::Into<i32>, j: impl ::core::convert::Into<i32>) -> i32 {
234        unsafe {
235            ::unity::il2cpp_call!((::unity::module_base()+0x2ee47a0usize)as*mut u8,i32;
236(*mut DeferredTiler)self as*mut DeferredTiler,(i32)::core::convert::Into::into(i),(i32)::core::convert::Into::into(j))
237        }
238    }
239
240    #[doc = "`Setup(i32)` overload"]
241    pub fn setup(&mut self, tile_data_capacity: impl ::core::convert::Into<i32>) -> () {
242        unsafe {
243            ::unity::il2cpp_call!((::unity::module_base()+0x2ee47c0usize)as*mut u8,();
244(*mut DeferredTiler)self as*mut DeferredTiler,(i32)::core::convert::Into::into(tile_data_capacity))
245        }
246    }
247
248    #[doc = "`OnCameraCleanup()` overload"]
249    pub fn on_camera_cleanup(&mut self) -> () {
250        unsafe {
251            ::unity::il2cpp_call!((::unity::module_base()+0x2ee48f0usize)as*mut u8,();
252(*mut DeferredTiler)self as*mut DeferredTiler)
253        }
254    }
255
256    #[doc = "`PrecomputeTiles(crate::unity_engine::matrix4x4::Matrix4x4, bool, i32, i32)` overload"]
257    pub fn precompute_tiles(
258        &mut self,
259        proj: impl ::core::convert::Into<crate::unity_engine::matrix4x4::Matrix4x4>,
260        is_orthographic: impl ::core::convert::Into<bool>,
261        render_width: impl ::core::convert::Into<i32>,
262        render_height: impl ::core::convert::Into<i32>,
263    ) -> () {
264        unsafe {
265            ::unity::il2cpp_call!((::unity::module_base()+0x2ee4a10usize)as*mut u8,();
266(*mut DeferredTiler)self as*mut DeferredTiler,(crate::unity_engine::matrix4x4::Matrix4x4)::core::convert::Into::into(proj),(bool)::core::convert::Into::into(is_orthographic),(i32)::core::convert::Into::into(render_width),(i32)::core::convert::Into::into(render_height))
267        }
268    }
269}
270
271#[cfg(feature = "unity_engine-rendering-universal-internal-deferredtiler")]
272impl DeferredTiler {
273    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
275    }
276
277    pub fn get_tiler_level_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
279    }
280
281    pub fn get_tile_x_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
283    }
284
285    pub fn get_tile_y_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
287    }
288
289    pub fn get_tile_pixel_width_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
291    }
292
293    pub fn get_tile_pixel_height_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
295    }
296
297    pub fn get_tile_header_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
299    }
300
301    pub fn get_max_light_per_tile_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
303    }
304
305    pub fn get_tile_data_capacity_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
307    }
308
309    pub fn get_tile_offset_and_count_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
311    }
312
313    pub fn get_tile_header_offset_method_info() -> &'static ::unity::il2cpp::MethodInfo {
314        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
315    }
316
317    pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
318        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
319    }
320
321    pub fn on_camera_cleanup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
322        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
323    }
324
325    pub fn precompute_tiles_method_info() -> &'static ::unity::il2cpp::MethodInfo {
326        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
327    }
328
329    pub fn signed_sq_method_info() -> &'static ::unity::il2cpp::MethodInfo {
330        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[25]
331    }
332
333    pub fn min2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
334        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[26]
335    }
336
337    pub fn max2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
338        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[27]
339    }
340
341    pub fn max3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
342        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[28]
343    }
344
345    pub fn f32tof16_method_info() -> &'static ::unity::il2cpp::MethodInfo {
346        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[29]
347    }
348
349    pub fn align_method_info() -> &'static ::unity::il2cpp::MethodInfo {
350        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[30]
351    }
352}
353
354#[cfg(feature = "unity_engine-rendering-universal-internal-deferredtiler")]
355#[doc(hidden)]
356pub mod prelude {
357    pub use super::{DeferredTiler, DeferredTiler_ClipResult, DeferredTiler_PrePunctualLight};
358    #[cfg(feature = "system-object")]
359    pub use crate::system::object::IObjectMethods;
360    #[cfg(feature = "system-enum")]
361    pub use crate::system::r#enum::IEnumMethods;
362    #[cfg(feature = "system-valuetype")]
363    pub use crate::system::valuetype::IValueTypeMethods;
364    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
365}