Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-internal-mainlightshadowcasterpass-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::object::{IObject, Object},
10        unity_engine::rendering::universal::scriptablerenderpass::{IScriptableRenderPass, ScriptableRenderPass},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/internal/mainlightshadowcasterpass/MainLightShadowCasterPass.md"))]
14    #[::unity::class(namespace = "UnityEngine.Rendering.Universal.Internal", name = "MainLightShadowCasterPass")]
15    #[parent(crate::unity_engine::rendering::universal::scriptablerenderpass::ScriptableRenderPass)]
16    pub struct MainLightShadowCasterPass {
17        #[static_field]
18        #[rename(name = "k_MaxCascades")]
19        pub k_max_cascades: i32,
20        #[static_field]
21        #[rename(name = "k_ShadowmapBufferBits")]
22        pub k_shadowmap_buffer_bits: i32,
23        #[offset(112)]
24        #[rename(name = "m_MaxShadowDistance")]
25        pub m_max_shadow_distance: f32,
26        #[offset(116)]
27        #[rename(name = "m_ShadowmapWidth")]
28        pub m_shadowmap_width: i32,
29        #[offset(120)]
30        #[rename(name = "m_ShadowmapHeight")]
31        pub m_shadowmap_height: i32,
32        #[offset(124)]
33        #[rename(name = "m_ShadowCasterCascadesCount")]
34        pub m_shadow_caster_cascades_count: i32,
35        #[offset(128)]
36        #[rename(name = "m_SupportsBoxFilterForShadows")]
37        pub m_supports_box_filter_for_shadows: bool,
38        #[offset(136)]
39        #[rename(name = "m_MainLightShadowmap")]
40        pub m_main_light_shadowmap: crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle,
41        #[offset(184)]
42        #[rename(name = "m_MainLightShadowmapTexture")]
43        pub m_main_light_shadowmap_texture: crate::unity_engine::rendertexture::RenderTexture,
44        #[offset(192)]
45        #[rename(name = "m_MainLightShadowMatrices")]
46        pub m_main_light_shadow_matrices: ::unity::Array<crate::unity_engine::matrix4x4::Matrix4x4>,
47        #[offset(200)]
48        #[rename(name = "m_CascadeSlices")]
49        pub m_cascade_slices: ::unity::Array<crate::unity_engine::rendering::universal::shadowslicedata::ShadowSliceData>,
50        #[offset(208)]
51        #[rename(name = "m_CascadeSplitDistances")]
52        pub m_cascade_split_distances: ::unity::Array<crate::unity_engine::vector4::Vector4>,
53        #[offset(216)]
54        #[rename(name = "m_ProfilingSetupSampler")]
55        pub m_profiling_setup_sampler: crate::unity_engine::rendering::profilingsampler::ProfilingSampler,
56    }
57
58    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/internal/mainlightshadowcasterpass/MainLightShadowCasterPass_MainLightShadowConstantBuffer.md"))]
59    #[::unity::class(
60        namespace = "UnityEngine.Rendering.Universal.Internal",
61        name = "MainLightShadowCasterPass.MainLightShadowConstantBuffer"
62    )]
63    #[parent(crate::system::object::Object)]
64    pub struct MainLightShadowCasterPass_MainLightShadowConstantBuffer {
65        #[static_field]
66        #[rename(name = "_WorldToShadow")]
67        pub world_to_shadow: i32,
68        #[static_field]
69        #[rename(name = "_ShadowParams")]
70        pub shadow_params: i32,
71        #[static_field]
72        #[rename(name = "_CascadeShadowSplitSpheres0")]
73        pub cascade_shadow_split_spheres0: i32,
74        #[static_field]
75        #[rename(name = "_CascadeShadowSplitSpheres1")]
76        pub cascade_shadow_split_spheres1: i32,
77        #[static_field]
78        #[rename(name = "_CascadeShadowSplitSpheres2")]
79        pub cascade_shadow_split_spheres2: i32,
80        #[static_field]
81        #[rename(name = "_CascadeShadowSplitSpheres3")]
82        pub cascade_shadow_split_spheres3: i32,
83        #[static_field]
84        #[rename(name = "_CascadeShadowSplitSphereRadii")]
85        pub cascade_shadow_split_sphere_radii: i32,
86        #[static_field]
87        #[rename(name = "_ShadowOffset0")]
88        pub shadow_offset0: i32,
89        #[static_field]
90        #[rename(name = "_ShadowOffset1")]
91        pub shadow_offset1: i32,
92        #[static_field]
93        #[rename(name = "_ShadowOffset2")]
94        pub shadow_offset2: i32,
95        #[static_field]
96        #[rename(name = "_ShadowOffset3")]
97        pub shadow_offset3: i32,
98        #[static_field]
99        #[rename(name = "_ShadowmapSize")]
100        pub shadowmap_size: i32,
101    }
102}
103
104#[cfg(feature = "unity_engine-rendering-universal-internal-mainlightshadowcasterpass-types")]
105pub use __types::*;
106
107#[cfg(feature = "unity_engine-rendering-universal-internal-mainlightshadowcasterpass")]
108pub trait IMainLightShadowCasterPassMethods: IMainLightShadowCasterPass {
109    #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent)` overload"]
110    fn ctor(self, evt: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent>) -> () {
111        unsafe {
112            let __receiver =
113                <MainLightShadowCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
114            ::unity::il2cpp_call!((::unity::module_base()+0x2eecf80usize)as*mut u8,();
115(MainLightShadowCasterPass)__receiver,(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent)::core::convert::Into::into(evt))
116        }
117    }
118    #[doc = "`Setup(*mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData)` overload"]
119    fn setup(self) -> (bool, crate::unity_engine::rendering::universal::renderingdata::RenderingData) {
120        unsafe {
121            let __receiver =
122                <MainLightShadowCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
123            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::renderingdata::RenderingData>::uninit();
124            let __ret = {
125                ::unity::il2cpp_call!((::unity::module_base()+0x2eef1e0usize)as*mut u8,bool;
126(MainLightShadowCasterPass)__receiver,(*mut crate::unity_engine::rendering::universal::renderingdata::RenderingData)__out_0.as_mut_ptr())
127            };
128            (__ret, __out_0.assume_init())
129        }
130    }
131    #[doc = "`Configure(crate::unity_engine::rendering::commandbuffer::CommandBuffer, crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor)` overload"]
132    fn configure(
133        self,
134        cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
135        camera_texture_descriptor: impl ::core::convert::Into<crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor>,
136    ) -> () {
137        unsafe {
138            let __receiver =
139                <MainLightShadowCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
140            {
141                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
142                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
143                    panic!(
144                        "unity: virtual slot {}
145 out of range (vtable len {}
146) on the runtime class behind {}
147 (method `{}
148`)",
149                        6usize,
150                        __vt.len(),
151                        <MainLightShadowCasterPass as ::unity::ClassIdentity>::NAME,
152                        "Configure",
153                    )
154                });
155                let __inner: extern "C" fn(
156                    MainLightShadowCasterPass,
157                    crate::unity_engine::rendering::commandbuffer::CommandBuffer,
158                    crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor,
159                    ::unity::OptionalMethod,
160                ) -> () = ::core::mem::transmute(__vi.method_ptr);
161                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
162                __inner(
163                    __receiver,
164                    ::core::convert::Into::into(cmd),
165                    ::core::convert::Into::into(camera_texture_descriptor),
166                    __mi,
167                )
168            }
169        }
170    }
171    #[doc = "`Execute(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData)` overload"]
172    fn execute(
173        self,
174        context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
175    ) -> crate::unity_engine::rendering::universal::renderingdata::RenderingData {
176        unsafe {
177            let __receiver =
178                <MainLightShadowCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
179            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::renderingdata::RenderingData>::uninit();
180            {
181                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
182                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
183                    panic!(
184                        "unity: virtual slot {}
185 out of range (vtable len {}
186) on the runtime class behind {}
187 (method `{}
188`)",
189                        9usize,
190                        __vt.len(),
191                        <MainLightShadowCasterPass as ::unity::ClassIdentity>::NAME,
192                        "Execute",
193                    )
194                });
195                let __inner: extern "C" fn(
196                    MainLightShadowCasterPass,
197                    crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
198                    *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
199                    ::unity::OptionalMethod,
200                ) -> () = ::core::mem::transmute(__vi.method_ptr);
201                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
202                __inner(__receiver, ::core::convert::Into::into(context), __out_0.as_mut_ptr(), __mi)
203            };
204            __out_0.assume_init()
205        }
206    }
207    #[doc = "`OnCameraCleanup(crate::unity_engine::rendering::commandbuffer::CommandBuffer)` overload"]
208    fn on_camera_cleanup(self, cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>) -> () {
209        unsafe {
210            let __receiver =
211                <MainLightShadowCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
212            {
213                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
214                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
215                    panic!(
216                        "unity: virtual slot {}
217 out of range (vtable len {}
218) on the runtime class behind {}
219 (method `{}
220`)",
221                        7usize,
222                        __vt.len(),
223                        <MainLightShadowCasterPass as ::unity::ClassIdentity>::NAME,
224                        "OnCameraCleanup",
225                    )
226                });
227                let __inner: extern "C" fn(
228                    MainLightShadowCasterPass,
229                    crate::unity_engine::rendering::commandbuffer::CommandBuffer,
230                    ::unity::OptionalMethod,
231                ) -> () = ::core::mem::transmute(__vi.method_ptr);
232                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
233                __inner(__receiver, ::core::convert::Into::into(cmd), __mi)
234            }
235        }
236    }
237    #[doc = "`Clear()` overload"]
238    fn clear(self) -> () {
239        unsafe {
240            let __receiver =
241                <MainLightShadowCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
242            ::unity::il2cpp_call!((::unity::module_base()+0x2ef5ff0usize)as*mut u8,();
243(MainLightShadowCasterPass)__receiver)
244        }
245    }
246    #[doc = "`RenderMainLightCascadeShadowmap(*mutcrate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, *mutcrate::unity_engine::rendering::cullingresults::CullingResults, *mutcrate::unity_engine::rendering::universal::lightdata::LightData, *mutcrate::unity_engine::rendering::universal::shadowdata::ShadowData)` overload"]
247    fn render_main_light_cascade_shadowmap(
248        self,
249    ) -> (
250        crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
251        crate::unity_engine::rendering::cullingresults::CullingResults,
252        crate::unity_engine::rendering::universal::lightdata::LightData,
253        crate::unity_engine::rendering::universal::shadowdata::ShadowData,
254    ) {
255        unsafe {
256            let __receiver =
257                <MainLightShadowCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
258            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>::uninit();
259            let mut __out_1 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::cullingresults::CullingResults>::uninit();
260            let mut __out_2 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::lightdata::LightData>::uninit();
261            let mut __out_3 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::shadowdata::ShadowData>::uninit();
262            ::unity::il2cpp_call!((::unity::module_base()+0x2ef62c0usize)as*mut u8,();
263(MainLightShadowCasterPass)__receiver,(*mut crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext)__out_0.as_mut_ptr(),(*mut crate::unity_engine::rendering::cullingresults::CullingResults)__out_1.as_mut_ptr(),(*mut crate::unity_engine::rendering::universal::lightdata::LightData)__out_2.as_mut_ptr(),(*mut crate::unity_engine::rendering::universal::shadowdata::ShadowData)__out_3.as_mut_ptr());
264            (__out_0.assume_init(), __out_1.assume_init(), __out_2.assume_init(), __out_3.assume_init())
265        }
266    }
267    #[doc = "`SetupMainLightShadowReceiverConstants(crate::unity_engine::rendering::commandbuffer::CommandBuffer, crate::unity_engine::rendering::visiblelight::VisibleLight, bool)` overload"]
268    fn setup_main_light_shadow_receiver_constants(
269        self,
270        cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
271        shadow_light: impl ::core::convert::Into<crate::unity_engine::rendering::visiblelight::VisibleLight>,
272        supports_soft_shadows: impl ::core::convert::Into<bool>,
273    ) -> () {
274        unsafe {
275            let __receiver =
276                <MainLightShadowCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
277            ::unity::il2cpp_call!((::unity::module_base()+0x2ef69c0usize)as*mut u8,();
278(MainLightShadowCasterPass)__receiver,(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(crate::unity_engine::rendering::visiblelight::VisibleLight)::core::convert::Into::into(shadow_light),(bool)::core::convert::Into::into(supports_soft_shadows))
279        }
280    }
281}
282
283#[cfg(feature = "unity_engine-rendering-universal-internal-mainlightshadowcasterpass")]
284impl<__T: IMainLightShadowCasterPass> IMainLightShadowCasterPassMethods for __T {}
285
286#[cfg(feature = "unity_engine-rendering-universal-internal-mainlightshadowcasterpass")]
287impl MainLightShadowCasterPass {
288    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
290    }
291
292    pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
294    }
295
296    pub fn configure_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
298    }
299
300    pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
302    }
303
304    pub fn on_camera_cleanup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
306    }
307
308    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
309        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
310    }
311
312    pub fn render_main_light_cascade_shadowmap_method_info() -> &'static ::unity::il2cpp::MethodInfo {
313        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
314    }
315
316    pub fn setup_main_light_shadow_receiver_constants_method_info() -> &'static ::unity::il2cpp::MethodInfo {
317        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
318    }
319}
320
321#[cfg(feature = "unity_engine-rendering-universal-internal-mainlightshadowcasterpass")]
322impl MainLightShadowCasterPass {
323    #[doc = "Direct (non-virtual) call to `MainLightShadowCasterPass`'s own `Configure`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
324    pub unsafe fn configure(
325        this: impl ::core::convert::Into<::unity::IlInstance>,
326        cmd: crate::unity_engine::rendering::commandbuffer::CommandBuffer,
327        camera_texture_descriptor: crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor,
328    ) -> () {
329        let __mi = Self::configure_method_info();
330        let __inner: extern "C" fn(
331            ::unity::IlInstance,
332            crate::unity_engine::rendering::commandbuffer::CommandBuffer,
333            crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor,
334            ::unity::OptionalMethod,
335        ) -> () = ::core::mem::transmute(__mi.method_ptr);
336        __inner(this.into(), cmd, camera_texture_descriptor, ::core::option::Option::None)
337    }
338
339    #[doc = "Direct (non-virtual) call to `MainLightShadowCasterPass`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
340    pub unsafe fn execute(
341        this: impl ::core::convert::Into<::unity::IlInstance>,
342        context: crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
343        rendering_data: *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
344    ) -> () {
345        let __mi = Self::execute_method_info();
346        let __inner: extern "C" fn(
347            ::unity::IlInstance,
348            crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
349            *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
350            ::unity::OptionalMethod,
351        ) -> () = ::core::mem::transmute(__mi.method_ptr);
352        __inner(this.into(), context, rendering_data, ::core::option::Option::None)
353    }
354
355    #[doc = "Direct (non-virtual) call to `MainLightShadowCasterPass`'s own `OnCameraCleanup`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
356    pub unsafe fn on_camera_cleanup(
357        this: impl ::core::convert::Into<::unity::IlInstance>,
358        cmd: crate::unity_engine::rendering::commandbuffer::CommandBuffer,
359    ) -> () {
360        let __mi = Self::on_camera_cleanup_method_info();
361        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rendering::commandbuffer::CommandBuffer, ::unity::OptionalMethod) -> () =
362            ::core::mem::transmute(__mi.method_ptr);
363        __inner(this.into(), cmd, ::core::option::Option::None)
364    }
365}
366
367#[cfg(feature = "unity_engine-rendering-universal-internal-mainlightshadowcasterpass")]
368impl MainLightShadowCasterPass {
369    #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent)` — overload selector"]
370    pub fn new(evt: crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent) -> Self {
371        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
372            panic!(
373                "{}
374::{}
375 failed to instantiate",
376                ::core::stringify!(MainLightShadowCasterPass),
377                ::core::stringify!(new),
378            )
379        });
380        <Self as IMainLightShadowCasterPassMethods>::ctor(this, evt);
381        this
382    }
383}
384
385#[cfg(feature = "unity_engine-rendering-universal-internal-mainlightshadowcasterpass")]
386#[doc(hidden)]
387pub mod prelude {
388    pub use super::{
389        IMainLightShadowCasterPass, IMainLightShadowCasterPassMethods, IMainLightShadowCasterPass_MainLightShadowConstantBuffer,
390        MainLightShadowCasterPass, MainLightShadowCasterPass_MainLightShadowConstantBuffer,
391    };
392    #[cfg(feature = "system-object")]
393    pub use crate::system::object::IObjectMethods;
394    #[cfg(feature = "unity_engine-rendering-universal-scriptablerenderpass")]
395    pub use crate::unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPassMethods;
396    pub use crate::{system::object::IObject, unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPass};
397}