Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customshadownocasterpass-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/customshadownocasterpass/CustomShadowNoCasterPass.md"))]
14    #[::unity::class(namespace = "UnityEngine.Rendering.Universal.Custom.Internal", name = "CustomShadowNoCasterPass")]
15    #[parent(crate::unity_engine::rendering::universal::scriptablerenderpass::ScriptableRenderPass)]
16    pub struct CustomShadowNoCasterPass {
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        #[static_field]
24        #[rename(name = "k_ShadowmapWidth")]
25        pub k_shadowmap_width: i32,
26        #[static_field]
27        #[rename(name = "k_ShadowmapHeight")]
28        pub k_shadowmap_height: i32,
29        #[offset(112)]
30        #[rename(name = "m_CustomShadowmap")]
31        pub m_custom_shadowmap: crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle,
32        #[offset(160)]
33        #[rename(name = "m_CustomShadowmapTexture")]
34        pub m_custom_shadowmap_texture: crate::unity_engine::rendertexture::RenderTexture,
35        #[offset(168)]
36        #[rename(name = "m_CustomShadowMatrices")]
37        pub m_custom_shadow_matrices: ::unity::Array<crate::unity_engine::matrix4x4::Matrix4x4>,
38        #[static_field]
39        #[rename(name = "m_ProfilerTag")]
40        pub m_profiler_tag: ::unity::Il2CppString,
41        #[offset(176)]
42        #[rename(name = "m_ProfilingSampler")]
43        pub m_profiling_sampler: crate::unity_engine::rendering::profilingsampler::ProfilingSampler,
44    }
45
46    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/custom/internal/customshadownocasterpass/CustomShadowNoCasterPass_CustomShadowConstantBuffer.md"))]
47    #[::unity::class(
48        namespace = "UnityEngine.Rendering.Universal.Custom.Internal",
49        name = "CustomShadowNoCasterPass.CustomShadowConstantBuffer"
50    )]
51    #[parent(crate::system::object::Object)]
52    pub struct CustomShadowNoCasterPass_CustomShadowConstantBuffer {
53        #[static_field]
54        #[rename(name = "_WorldToShadow")]
55        pub world_to_shadow: i32,
56        #[static_field]
57        #[rename(name = "_ShadowParams")]
58        pub shadow_params: i32,
59        #[static_field]
60        #[rename(name = "_ShadowOffset0")]
61        pub shadow_offset0: i32,
62        #[static_field]
63        #[rename(name = "_ShadowOffset1")]
64        pub shadow_offset1: i32,
65        #[static_field]
66        #[rename(name = "_ShadowOffset2")]
67        pub shadow_offset2: i32,
68        #[static_field]
69        #[rename(name = "_ShadowOffset3")]
70        pub shadow_offset3: i32,
71        #[static_field]
72        #[rename(name = "_ShadowmapSize")]
73        pub shadowmap_size: i32,
74    }
75}
76
77#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customshadownocasterpass-types")]
78pub use __types::*;
79
80#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customshadownocasterpass")]
81pub trait ICustomShadowNoCasterPassMethods: ICustomShadowNoCasterPass {
82    #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent)` overload"]
83    fn ctor(self, evt: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent>) -> () {
84        unsafe {
85            let __receiver =
86                <CustomShadowNoCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87            ::unity::il2cpp_call!((::unity::module_base()+0x2a48210usize)as*mut u8,();
88(CustomShadowNoCasterPass)__receiver,(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent)::core::convert::Into::into(evt))
89        }
90    }
91    #[doc = "`Configure(crate::unity_engine::rendering::commandbuffer::CommandBuffer, crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor)` overload"]
92    fn configure(
93        self,
94        cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
95        camera_texture_descriptor: impl ::core::convert::Into<crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor>,
96    ) -> () {
97        unsafe {
98            let __receiver =
99                <CustomShadowNoCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100            {
101                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
102                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
103                    panic!(
104                        "unity: virtual slot {}
105 out of range (vtable len {}
106) on the runtime class behind {}
107 (method `{}
108`)",
109                        6usize,
110                        __vt.len(),
111                        <CustomShadowNoCasterPass as ::unity::ClassIdentity>::NAME,
112                        "Configure",
113                    )
114                });
115                let __inner: extern "C" fn(
116                    CustomShadowNoCasterPass,
117                    crate::unity_engine::rendering::commandbuffer::CommandBuffer,
118                    crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor,
119                    ::unity::OptionalMethod,
120                ) -> () = ::core::mem::transmute(__vi.method_ptr);
121                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
122                __inner(
123                    __receiver,
124                    ::core::convert::Into::into(cmd),
125                    ::core::convert::Into::into(camera_texture_descriptor),
126                    __mi,
127                )
128            }
129        }
130    }
131    #[doc = "`Execute(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData)` overload"]
132    fn execute(
133        self,
134        context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
135    ) -> crate::unity_engine::rendering::universal::renderingdata::RenderingData {
136        unsafe {
137            let __receiver =
138                <CustomShadowNoCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
139            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::renderingdata::RenderingData>::uninit();
140            {
141                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
142                let __vi = *__vt.get(9usize).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                        9usize,
150                        __vt.len(),
151                        <CustomShadowNoCasterPass as ::unity::ClassIdentity>::NAME,
152                        "Execute",
153                    )
154                });
155                let __inner: extern "C" fn(
156                    CustomShadowNoCasterPass,
157                    crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
158                    *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
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(__receiver, ::core::convert::Into::into(context), __out_0.as_mut_ptr(), __mi)
163            };
164            __out_0.assume_init()
165        }
166    }
167    #[doc = "`OnCameraCleanup(crate::unity_engine::rendering::commandbuffer::CommandBuffer)` overload"]
168    fn on_camera_cleanup(self, cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>) -> () {
169        unsafe {
170            let __receiver =
171                <CustomShadowNoCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172            {
173                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
174                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
175                    panic!(
176                        "unity: virtual slot {}
177 out of range (vtable len {}
178) on the runtime class behind {}
179 (method `{}
180`)",
181                        7usize,
182                        __vt.len(),
183                        <CustomShadowNoCasterPass as ::unity::ClassIdentity>::NAME,
184                        "OnCameraCleanup",
185                    )
186                });
187                let __inner: extern "C" fn(
188                    CustomShadowNoCasterPass,
189                    crate::unity_engine::rendering::commandbuffer::CommandBuffer,
190                    ::unity::OptionalMethod,
191                ) -> () = ::core::mem::transmute(__vi.method_ptr);
192                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
193                __inner(__receiver, ::core::convert::Into::into(cmd), __mi)
194            }
195        }
196    }
197    #[doc = "`Clear()` overload"]
198    fn clear(self) -> () {
199        unsafe {
200            let __receiver =
201                <CustomShadowNoCasterPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
202            ::unity::il2cpp_call!((::unity::module_base()+0x2a4eda0usize)as*mut u8,();
203(CustomShadowNoCasterPass)__receiver)
204        }
205    }
206}
207
208#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customshadownocasterpass")]
209impl<__T: ICustomShadowNoCasterPass> ICustomShadowNoCasterPassMethods for __T {}
210
211#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customshadownocasterpass")]
212impl CustomShadowNoCasterPass {
213    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
215    }
216
217    pub fn configure_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
219    }
220
221    pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
223    }
224
225    pub fn on_camera_cleanup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
226        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
227    }
228
229    pub fn clear_method_info() -> &'static ::unity::il2cpp::MethodInfo {
230        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
231    }
232}
233
234#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customshadownocasterpass")]
235impl CustomShadowNoCasterPass {
236    #[doc = "Direct (non-virtual) call to `CustomShadowNoCasterPass`'s own `Configure`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
237    pub unsafe fn configure(
238        this: impl ::core::convert::Into<::unity::IlInstance>,
239        cmd: crate::unity_engine::rendering::commandbuffer::CommandBuffer,
240        camera_texture_descriptor: crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor,
241    ) -> () {
242        let __mi = Self::configure_method_info();
243        let __inner: extern "C" fn(
244            ::unity::IlInstance,
245            crate::unity_engine::rendering::commandbuffer::CommandBuffer,
246            crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor,
247            ::unity::OptionalMethod,
248        ) -> () = ::core::mem::transmute(__mi.method_ptr);
249        __inner(this.into(), cmd, camera_texture_descriptor, ::core::option::Option::None)
250    }
251
252    #[doc = "Direct (non-virtual) call to `CustomShadowNoCasterPass`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
253    pub unsafe fn execute(
254        this: impl ::core::convert::Into<::unity::IlInstance>,
255        context: crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
256        rendering_data: *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
257    ) -> () {
258        let __mi = Self::execute_method_info();
259        let __inner: extern "C" fn(
260            ::unity::IlInstance,
261            crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
262            *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
263            ::unity::OptionalMethod,
264        ) -> () = ::core::mem::transmute(__mi.method_ptr);
265        __inner(this.into(), context, rendering_data, ::core::option::Option::None)
266    }
267
268    #[doc = "Direct (non-virtual) call to `CustomShadowNoCasterPass`'s own `OnCameraCleanup`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
269    pub unsafe fn on_camera_cleanup(
270        this: impl ::core::convert::Into<::unity::IlInstance>,
271        cmd: crate::unity_engine::rendering::commandbuffer::CommandBuffer,
272    ) -> () {
273        let __mi = Self::on_camera_cleanup_method_info();
274        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rendering::commandbuffer::CommandBuffer, ::unity::OptionalMethod) -> () =
275            ::core::mem::transmute(__mi.method_ptr);
276        __inner(this.into(), cmd, ::core::option::Option::None)
277    }
278}
279
280#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customshadownocasterpass")]
281impl CustomShadowNoCasterPass {
282    #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent)` — overload selector"]
283    pub fn new(evt: crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent) -> Self {
284        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
285            panic!(
286                "{}
287::{}
288 failed to instantiate",
289                ::core::stringify!(CustomShadowNoCasterPass),
290                ::core::stringify!(new),
291            )
292        });
293        <Self as ICustomShadowNoCasterPassMethods>::ctor(this, evt);
294        this
295    }
296}
297
298#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customshadownocasterpass")]
299#[doc(hidden)]
300pub mod prelude {
301    pub use super::{
302        CustomShadowNoCasterPass, CustomShadowNoCasterPass_CustomShadowConstantBuffer, ICustomShadowNoCasterPass, ICustomShadowNoCasterPassMethods,
303        ICustomShadowNoCasterPass_CustomShadowConstantBuffer,
304    };
305    #[cfg(feature = "system-object")]
306    pub use crate::system::object::IObjectMethods;
307    #[cfg(feature = "unity_engine-rendering-universal-scriptablerenderpass")]
308    pub use crate::unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPassMethods;
309    pub use crate::{system::object::IObject, unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPass};
310}