Skip to main content

engage/generated/unity_engine/rendering/universal/custom/internal/
customshadowcasterpass.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customshadowcasterpass-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/custom/internal/customshadowcasterpass/CustomShadowCasterPass.md"))]
14    #[::unity::class(namespace = "UnityEngine.Rendering.Universal.Custom.Internal", name = "CustomShadowCasterPass")]
15    #[parent(crate::unity_engine::rendering::universal::scriptablerenderpass::ScriptableRenderPass)]
16    pub struct CustomShadowCasterPass {
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_MaxShadowDistanceSq")]
25        pub m_max_shadow_distance_sq: 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_CustomShadowmap")]
40        pub m_custom_shadowmap: crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle,
41        #[offset(184)]
42        #[rename(name = "m_CustomShadowmapTexture")]
43        pub m_custom_shadowmap_texture: crate::unity_engine::rendertexture::RenderTexture,
44        #[offset(192)]
45        #[rename(name = "m_CustomShadowMatrices")]
46        pub m_custom_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        #[static_field]
54        #[rename(name = "m_ProfilerTag")]
55        pub m_profiler_tag: ::unity::Il2CppString,
56        #[offset(216)]
57        #[rename(name = "m_ProfilingSampler")]
58        pub m_profiling_sampler: crate::unity_engine::rendering::profilingsampler::ProfilingSampler,
59    }
60
61    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/custom/internal/customshadowcasterpass/CustomShadowCasterPass_CustomShadowConstantBuffer.md"))]
62    #[::unity::class(
63        namespace = "UnityEngine.Rendering.Universal.Custom.Internal",
64        name = "CustomShadowCasterPass.CustomShadowConstantBuffer"
65    )]
66    #[parent(crate::system::object::Object)]
67    pub struct CustomShadowCasterPass_CustomShadowConstantBuffer {
68        #[static_field]
69        #[rename(name = "_WorldToShadow")]
70        pub world_to_shadow: i32,
71        #[static_field]
72        #[rename(name = "_ShadowParams")]
73        pub shadow_params: i32,
74        #[static_field]
75        #[rename(name = "_ShadowOffset0")]
76        pub shadow_offset0: i32,
77        #[static_field]
78        #[rename(name = "_ShadowOffset1")]
79        pub shadow_offset1: i32,
80        #[static_field]
81        #[rename(name = "_ShadowOffset2")]
82        pub shadow_offset2: i32,
83        #[static_field]
84        #[rename(name = "_ShadowOffset3")]
85        pub shadow_offset3: i32,
86        #[static_field]
87        #[rename(name = "_ShadowmapSize")]
88        pub shadowmap_size: i32,
89    }
90}
91
92#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customshadowcasterpass-types")]
93pub use __types::*;
94
95#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customshadowcasterpass")]
96pub trait ICustomShadowCasterPassMethods: ICustomShadowCasterPass {
97    #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent)` overload"]
98    fn ctor(self, evt: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent>) -> () {
99        unsafe {
100            let __receiver =
101                <CustomShadowCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
102            ::unity::il2cpp_call!((::unity::module_base()+0x2a47f40usize)as*mut u8,();
103(CustomShadowCasterPass)__receiver,(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent)::core::convert::Into::into(evt))
104        }
105    }
106    #[doc = "`Setup(*mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData)` overload"]
107    fn setup(self) -> (bool, crate::unity_engine::rendering::universal::renderingdata::RenderingData) {
108        unsafe {
109            let __receiver =
110                <CustomShadowCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
111            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::renderingdata::RenderingData>::uninit();
112            let __ret = {
113                ::unity::il2cpp_call!((::unity::module_base()+0x2a4a570usize)as*mut u8,bool;
114(CustomShadowCasterPass)__receiver,(*mut crate::unity_engine::rendering::universal::renderingdata::RenderingData)__out_0.as_mut_ptr())
115            };
116            (__ret, __out_0.assume_init())
117        }
118    }
119    #[doc = "`Configure(crate::unity_engine::rendering::commandbuffer::CommandBuffer, crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor)` overload"]
120    fn configure(
121        self,
122        cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
123        camera_texture_descriptor: impl ::core::convert::Into<crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor>,
124    ) -> () {
125        unsafe {
126            let __receiver =
127                <CustomShadowCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
128            {
129                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
130                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
131                    panic!(
132                        "unity: virtual slot {}
133 out of range (vtable len {}
134) on the runtime class behind {}
135 (method `{}
136`)",
137                        6usize,
138                        __vt.len(),
139                        <CustomShadowCasterPass as ::unity::ClassIdentity>::NAME,
140                        "Configure",
141                    )
142                });
143                let __inner: extern "C" fn(
144                    CustomShadowCasterPass,
145                    crate::unity_engine::rendering::commandbuffer::CommandBuffer,
146                    crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor,
147                    ::unity::OptionalMethod,
148                ) -> () = ::core::mem::transmute(__vi.method_ptr);
149                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
150                __inner(
151                    __receiver,
152                    ::core::convert::Into::into(cmd),
153                    ::core::convert::Into::into(camera_texture_descriptor),
154                    __mi,
155                )
156            }
157        }
158    }
159    #[doc = "`Execute(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData)` overload"]
160    fn execute(
161        self,
162        context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
163    ) -> crate::unity_engine::rendering::universal::renderingdata::RenderingData {
164        unsafe {
165            let __receiver =
166                <CustomShadowCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::renderingdata::RenderingData>::uninit();
168            {
169                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
170                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
171                    panic!(
172                        "unity: virtual slot {}
173 out of range (vtable len {}
174) on the runtime class behind {}
175 (method `{}
176`)",
177                        9usize,
178                        __vt.len(),
179                        <CustomShadowCasterPass as ::unity::ClassIdentity>::NAME,
180                        "Execute",
181                    )
182                });
183                let __inner: extern "C" fn(
184                    CustomShadowCasterPass,
185                    crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
186                    *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
187                    ::unity::OptionalMethod,
188                ) -> () = ::core::mem::transmute(__vi.method_ptr);
189                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
190                __inner(__receiver, ::core::convert::Into::into(context), __out_0.as_mut_ptr(), __mi)
191            };
192            __out_0.assume_init()
193        }
194    }
195    #[doc = "`OnCameraCleanup(crate::unity_engine::rendering::commandbuffer::CommandBuffer)` overload"]
196    fn on_camera_cleanup(self, cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>) -> () {
197        unsafe {
198            let __receiver =
199                <CustomShadowCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
200            {
201                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
202                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
203                    panic!(
204                        "unity: virtual slot {}
205 out of range (vtable len {}
206) on the runtime class behind {}
207 (method `{}
208`)",
209                        7usize,
210                        __vt.len(),
211                        <CustomShadowCasterPass as ::unity::ClassIdentity>::NAME,
212                        "OnCameraCleanup",
213                    )
214                });
215                let __inner: extern "C" fn(
216                    CustomShadowCasterPass,
217                    crate::unity_engine::rendering::commandbuffer::CommandBuffer,
218                    ::unity::OptionalMethod,
219                ) -> () = ::core::mem::transmute(__vi.method_ptr);
220                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
221                __inner(__receiver, ::core::convert::Into::into(cmd), __mi)
222            }
223        }
224    }
225    #[doc = "`Clear()` overload"]
226    fn clear(self) -> () {
227        unsafe {
228            let __receiver =
229                <CustomShadowCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
230            ::unity::il2cpp_call!((::unity::module_base()+0x2a4da20usize)as*mut u8,();
231(CustomShadowCasterPass)__receiver)
232        }
233    }
234    #[doc = "`RenderShadowmap(*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"]
235    fn render_shadowmap(
236        self,
237    ) -> (
238        crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
239        crate::unity_engine::rendering::cullingresults::CullingResults,
240        crate::unity_engine::rendering::universal::lightdata::LightData,
241        crate::unity_engine::rendering::universal::shadowdata::ShadowData,
242    ) {
243        unsafe {
244            let __receiver =
245                <CustomShadowCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
246            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>::uninit();
247            let mut __out_1 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::cullingresults::CullingResults>::uninit();
248            let mut __out_2 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::lightdata::LightData>::uninit();
249            let mut __out_3 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::shadowdata::ShadowData>::uninit();
250            ::unity::il2cpp_call!((::unity::module_base()+0x2a4dcf0usize)as*mut u8,();
251(CustomShadowCasterPass)__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());
252            (__out_0.assume_init(), __out_1.assume_init(), __out_2.assume_init(), __out_3.assume_init())
253        }
254    }
255    #[doc = "`SetupCustomShadowReceiverConstants(crate::unity_engine::rendering::commandbuffer::CommandBuffer, crate::unity_engine::rendering::visiblelight::VisibleLight, bool)` overload"]
256    fn setup_custom_shadow_receiver_constants(
257        self,
258        cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
259        shadow_light: impl ::core::convert::Into<crate::unity_engine::rendering::visiblelight::VisibleLight>,
260        soft_shadows: impl ::core::convert::Into<bool>,
261    ) -> () {
262        unsafe {
263            let __receiver =
264                <CustomShadowCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
265            ::unity::il2cpp_call!((::unity::module_base()+0x2a4e380usize)as*mut u8,();
266(CustomShadowCasterPass)__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(soft_shadows))
267        }
268    }
269}
270
271#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customshadowcasterpass")]
272impl<__T: ICustomShadowCasterPass> ICustomShadowCasterPassMethods for __T {}
273
274#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customshadowcasterpass")]
275impl CustomShadowCasterPass {
276    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
278    }
279
280    pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
282    }
283
284    pub fn configure_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
286    }
287
288    pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
289        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
290    }
291
292    pub fn on_camera_cleanup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
293        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
294    }
295
296    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
297        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
298    }
299
300    pub fn render_shadowmap_method_info() -> &'static ::unity::il2cpp::MethodInfo {
301        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
302    }
303
304    pub fn setup_custom_shadow_receiver_constants_method_info() -> &'static ::unity::il2cpp::MethodInfo {
305        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
306    }
307}
308
309#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customshadowcasterpass")]
310impl CustomShadowCasterPass {
311    #[doc = "Direct (non-virtual) call to `CustomShadowCasterPass`'s own `Configure`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
312    pub unsafe fn configure(
313        this: impl ::core::convert::Into<::unity::IlInstance>,
314        cmd: crate::unity_engine::rendering::commandbuffer::CommandBuffer,
315        camera_texture_descriptor: crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor,
316    ) -> () {
317        let __mi = Self::configure_method_info();
318        let __inner: extern "C" fn(
319            ::unity::IlInstance,
320            crate::unity_engine::rendering::commandbuffer::CommandBuffer,
321            crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor,
322            ::unity::OptionalMethod,
323        ) -> () = ::core::mem::transmute(__mi.method_ptr);
324        __inner(this.into(), cmd, camera_texture_descriptor, ::core::option::Option::None)
325    }
326
327    #[doc = "Direct (non-virtual) call to `CustomShadowCasterPass`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
328    pub unsafe fn execute(
329        this: impl ::core::convert::Into<::unity::IlInstance>,
330        context: crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
331        rendering_data: *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
332    ) -> () {
333        let __mi = Self::execute_method_info();
334        let __inner: extern "C" fn(
335            ::unity::IlInstance,
336            crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
337            *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
338            ::unity::OptionalMethod,
339        ) -> () = ::core::mem::transmute(__mi.method_ptr);
340        __inner(this.into(), context, rendering_data, ::core::option::Option::None)
341    }
342
343    #[doc = "Direct (non-virtual) call to `CustomShadowCasterPass`'s own `OnCameraCleanup`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
344    pub unsafe fn on_camera_cleanup(
345        this: impl ::core::convert::Into<::unity::IlInstance>,
346        cmd: crate::unity_engine::rendering::commandbuffer::CommandBuffer,
347    ) -> () {
348        let __mi = Self::on_camera_cleanup_method_info();
349        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rendering::commandbuffer::CommandBuffer, ::unity::OptionalMethod) -> () =
350            ::core::mem::transmute(__mi.method_ptr);
351        __inner(this.into(), cmd, ::core::option::Option::None)
352    }
353}
354
355#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customshadowcasterpass")]
356impl CustomShadowCasterPass {
357    #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent)` — overload selector"]
358    pub fn new(evt: crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent) -> Self {
359        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
360            panic!(
361                "{}
362::{}
363 failed to instantiate",
364                ::core::stringify!(CustomShadowCasterPass),
365                ::core::stringify!(new),
366            )
367        });
368        <Self as ICustomShadowCasterPassMethods>::ctor(this, evt);
369        this
370    }
371}
372
373#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customshadowcasterpass")]
374#[doc(hidden)]
375pub mod prelude {
376    pub use super::{
377        CustomShadowCasterPass, CustomShadowCasterPass_CustomShadowConstantBuffer, ICustomShadowCasterPass, ICustomShadowCasterPassMethods,
378        ICustomShadowCasterPass_CustomShadowConstantBuffer,
379    };
380    #[cfg(feature = "system-object")]
381    pub use crate::system::object::IObjectMethods;
382    #[cfg(feature = "unity_engine-rendering-universal-scriptablerenderpass")]
383    pub use crate::unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPassMethods;
384    pub use crate::{system::object::IObject, unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPass};
385}