Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customlightocclusionpass-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/customlightocclusionpass/CustomLightOcclusionPass_ShaderConstants.md"))]
14    #[::unity::class(
15        namespace = "UnityEngine.Rendering.Universal.Custom.Internal",
16        name = "CustomLightOcclusionPass.ShaderConstants"
17    )]
18    #[parent(crate::system::object::Object)]
19    pub struct CustomLightOcclusionPass_ShaderConstants {
20        #[static_field]
21        #[rename(name = "_MatrixVP")]
22        pub matrix_vp: i32,
23        #[static_field]
24        #[rename(name = "_CameraPositionWS")]
25        pub camera_position_ws: i32,
26        #[static_field]
27        #[rename(name = "_LightAxisX")]
28        pub light_axis_x: i32,
29        #[static_field]
30        #[rename(name = "_LightAxisY")]
31        pub light_axis_y: i32,
32        #[static_field]
33        #[rename(name = "_LightAxisZ")]
34        pub light_axis_z: i32,
35    }
36
37    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/custom/internal/customlightocclusionpass/CustomLightOcclusionPass.md"))]
38    #[::unity::class(namespace = "UnityEngine.Rendering.Universal.Custom.Internal", name = "CustomLightOcclusionPass")]
39    #[parent(crate::unity_engine::rendering::universal::scriptablerenderpass::ScriptableRenderPass)]
40    pub struct CustomLightOcclusionPass {
41        #[static_field]
42        #[rename(name = "k_ProfilerTag")]
43        pub k_profiler_tag: ::unity::Il2CppString,
44        #[offset(112)]
45        #[rename(name = "m_Material")]
46        pub m_material: crate::unity_engine::material::Material,
47        #[offset(120)]
48        #[rename(name = "m_Result")]
49        pub m_result: crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle,
50        #[offset(168)]
51        #[rename(name = "m_DepthTextureEnabled")]
52        pub m_depth_texture_enabled: bool,
53    }
54}
55
56#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customlightocclusionpass-types")]
57pub use __types::*;
58
59#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customlightocclusionpass")]
60impl CustomLightOcclusionPass_ShaderConstants {
61    #[doc = "`.cctor()` overload"]
62    pub fn cctor() -> () {
63        unsafe {
64            ::unity::il2cpp_call!((::unity::module_base()+0x2cb6090usize)as*mut u8,();
65            )
66        }
67    }
68}
69
70#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customlightocclusionpass")]
71impl CustomLightOcclusionPass_ShaderConstants {
72    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
74    }
75}
76
77#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customlightocclusionpass")]
78pub trait ICustomLightOcclusionPassMethods: ICustomLightOcclusionPass {
79    #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, crate::unity_engine::material::Material)` overload"]
80    fn ctor(
81        self,
82        evt: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent>,
83        material: impl ::core::convert::Into<crate::unity_engine::material::Material>,
84    ) -> () {
85        unsafe {
86            let __receiver =
87                <CustomLightOcclusionPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
88            ::unity::il2cpp_call!((::unity::module_base()+0x2a48460usize)as*mut u8,();
89(CustomLightOcclusionPass)__receiver,(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent)::core::convert::Into::into(evt),(crate::unity_engine::material::Material)::core::convert::Into::into(material))
90        }
91    }
92    #[doc = "`Execute(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData)` overload"]
93    fn execute(
94        self,
95        context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
96    ) -> crate::unity_engine::rendering::universal::renderingdata::RenderingData {
97        unsafe {
98            let __receiver =
99                <CustomLightOcclusionPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::renderingdata::RenderingData>::uninit();
101            {
102                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
103                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
104                    panic!(
105                        "unity: virtual slot {}
106 out of range (vtable len {}
107) on the runtime class behind {}
108 (method `{}
109`)",
110                        9usize,
111                        __vt.len(),
112                        <CustomLightOcclusionPass as ::unity::ClassIdentity>::NAME,
113                        "Execute",
114                    )
115                });
116                let __inner: extern "C" fn(
117                    CustomLightOcclusionPass,
118                    crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
119                    *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
120                    ::unity::OptionalMethod,
121                ) -> () = ::core::mem::transmute(__vi.method_ptr);
122                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
123                __inner(__receiver, ::core::convert::Into::into(context), __out_0.as_mut_ptr(), __mi)
124            };
125            __out_0.assume_init()
126        }
127    }
128    #[doc = "`OnCameraCleanup(crate::unity_engine::rendering::commandbuffer::CommandBuffer)` overload"]
129    fn on_camera_cleanup(self, cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>) -> () {
130        unsafe {
131            let __receiver =
132                <CustomLightOcclusionPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
133            {
134                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
135                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
136                    panic!(
137                        "unity: virtual slot {}
138 out of range (vtable len {}
139) on the runtime class behind {}
140 (method `{}
141`)",
142                        7usize,
143                        __vt.len(),
144                        <CustomLightOcclusionPass as ::unity::ClassIdentity>::NAME,
145                        "OnCameraCleanup",
146                    )
147                });
148                let __inner: extern "C" fn(
149                    CustomLightOcclusionPass,
150                    crate::unity_engine::rendering::commandbuffer::CommandBuffer,
151                    ::unity::OptionalMethod,
152                ) -> () = ::core::mem::transmute(__vi.method_ptr);
153                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
154                __inner(__receiver, ::core::convert::Into::into(cmd), __mi)
155            }
156        }
157    }
158    #[doc = "`SetDepthTextureEnabled(bool)` overload"]
159    fn set_depth_texture_enabled(self, flag: impl ::core::convert::Into<bool>) -> () {
160        unsafe {
161            let __receiver =
162                <CustomLightOcclusionPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
163            ::unity::il2cpp_call!((::unity::module_base()+0x2a4c3c0usize)as*mut u8,();
164(CustomLightOcclusionPass)__receiver,(bool)::core::convert::Into::into(flag))
165        }
166    }
167}
168
169#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customlightocclusionpass")]
170impl<__T: ICustomLightOcclusionPass> ICustomLightOcclusionPassMethods for __T {}
171
172#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customlightocclusionpass")]
173impl CustomLightOcclusionPass {
174    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
176    }
177
178    pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
180    }
181
182    pub fn on_camera_cleanup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
184    }
185
186    pub fn set_depth_texture_enabled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
187        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
188    }
189}
190
191#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customlightocclusionpass")]
192impl CustomLightOcclusionPass {
193    #[doc = "Direct (non-virtual) call to `CustomLightOcclusionPass`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
194    pub unsafe fn execute(
195        this: impl ::core::convert::Into<::unity::IlInstance>,
196        context: crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
197        rendering_data: *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
198    ) -> () {
199        let __mi = Self::execute_method_info();
200        let __inner: extern "C" fn(
201            ::unity::IlInstance,
202            crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
203            *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
204            ::unity::OptionalMethod,
205        ) -> () = ::core::mem::transmute(__mi.method_ptr);
206        __inner(this.into(), context, rendering_data, ::core::option::Option::None)
207    }
208
209    #[doc = "Direct (non-virtual) call to `CustomLightOcclusionPass`'s own `OnCameraCleanup`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
210    pub unsafe fn on_camera_cleanup(
211        this: impl ::core::convert::Into<::unity::IlInstance>,
212        cmd: crate::unity_engine::rendering::commandbuffer::CommandBuffer,
213    ) -> () {
214        let __mi = Self::on_camera_cleanup_method_info();
215        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rendering::commandbuffer::CommandBuffer, ::unity::OptionalMethod) -> () =
216            ::core::mem::transmute(__mi.method_ptr);
217        __inner(this.into(), cmd, ::core::option::Option::None)
218    }
219}
220
221#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customlightocclusionpass")]
222impl CustomLightOcclusionPass {
223    #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, crate::unity_engine::material::Material)` — overload selector"]
224    pub fn new(
225        evt: crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent,
226        material: crate::unity_engine::material::Material,
227    ) -> Self {
228        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
229            panic!(
230                "{}
231::{}
232 failed to instantiate",
233                ::core::stringify!(CustomLightOcclusionPass),
234                ::core::stringify!(new),
235            )
236        });
237        <Self as ICustomLightOcclusionPassMethods>::ctor(this, evt, material);
238        this
239    }
240}
241
242#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customlightocclusionpass")]
243#[doc(hidden)]
244pub mod prelude {
245    pub use super::{
246        CustomLightOcclusionPass, CustomLightOcclusionPass_ShaderConstants, ICustomLightOcclusionPass, ICustomLightOcclusionPassMethods,
247        ICustomLightOcclusionPass_ShaderConstants,
248    };
249    #[cfg(feature = "system-object")]
250    pub use crate::system::object::IObjectMethods;
251    #[cfg(feature = "unity_engine-rendering-universal-scriptablerenderpass")]
252    pub use crate::unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPassMethods;
253    pub use crate::{system::object::IObject, unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPass};
254}