Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-internal-copydepthpass-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/copydepthpass/CopyDepthPass.md"))]
14    #[::unity::class(namespace = "UnityEngine.Rendering.Universal.Internal", name = "CopyDepthPass")]
15    #[parent(crate::unity_engine::rendering::universal::scriptablerenderpass::ScriptableRenderPass)]
16    pub struct CopyDepthPass {
17        #[offset(216)]
18        #[rename(name = "m_CopyDepthMaterial")]
19        pub m_copy_depth_material: crate::unity_engine::material::Material,
20    }
21}
22
23#[cfg(feature = "unity_engine-rendering-universal-internal-copydepthpass-types")]
24pub use __types::*;
25
26#[cfg(feature = "unity_engine-rendering-universal-internal-copydepthpass")]
27pub trait ICopyDepthPassMethods: ICopyDepthPass {
28    #[doc = "`get_source()` overload"]
29    fn get_source(self) -> crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle {
30        unsafe {
31            let __receiver = <CopyDepthPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
32            ::unity::il2cpp_call!((::unity::module_base()+0x2a41e10usize)as*mut u8,crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle;
33(CopyDepthPass)__receiver)
34        }
35    }
36    #[doc = "`set_source(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)` overload"]
37    fn set_source(self, value: impl ::core::convert::Into<crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle>) -> () {
38        unsafe {
39            let __receiver = <CopyDepthPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
40            ::unity::il2cpp_call!((::unity::module_base()+0x2a41e30usize)as*mut u8,();
41(CopyDepthPass)__receiver,(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)::core::convert::Into::into(value))
42        }
43    }
44    #[doc = "`get_destination()` overload"]
45    fn get_destination(self) -> crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle {
46        unsafe {
47            let __receiver = <CopyDepthPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
48            ::unity::il2cpp_call!((::unity::module_base()+0x2a41e50usize)as*mut u8,crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle;
49(CopyDepthPass)__receiver)
50        }
51    }
52    #[doc = "`set_destination(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)` overload"]
53    fn set_destination(
54        self,
55        value: impl ::core::convert::Into<crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle>,
56    ) -> () {
57        unsafe {
58            let __receiver = <CopyDepthPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x2a41e70usize)as*mut u8,();
60(CopyDepthPass)__receiver,(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)::core::convert::Into::into(value))
61        }
62    }
63    #[doc = "`get_AllocateRT()` overload"]
64    fn get_allocate_rt(self) -> bool {
65        unsafe {
66            let __receiver = <CopyDepthPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67            ::unity::il2cpp_call!((::unity::module_base()+0x2a41e90usize)as*mut u8,bool;
68(CopyDepthPass)__receiver)
69        }
70    }
71    #[doc = "`set_AllocateRT(bool)` overload"]
72    fn set_allocate_rt(self, value: impl ::core::convert::Into<bool>) -> () {
73        unsafe {
74            let __receiver = <CopyDepthPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75            ::unity::il2cpp_call!((::unity::module_base()+0x2a41ea0usize)as*mut u8,();
76(CopyDepthPass)__receiver,(bool)::core::convert::Into::into(value))
77        }
78    }
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        copy_depth_material: impl ::core::convert::Into<crate::unity_engine::material::Material>,
84    ) -> () {
85        unsafe {
86            let __receiver = <CopyDepthPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
87            ::unity::il2cpp_call!((::unity::module_base()+0x2a41eb0usize)as*mut u8,();
88(CopyDepthPass)__receiver,(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent)::core::convert::Into::into(evt),(crate::unity_engine::material::Material)::core::convert::Into::into(copy_depth_material))
89        }
90    }
91    #[doc = "`Setup(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle, crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)` overload"]
92    fn setup(
93        self,
94        source: impl ::core::convert::Into<crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle>,
95        destination: impl ::core::convert::Into<crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle>,
96    ) -> () {
97        unsafe {
98            let __receiver = <CopyDepthPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
99            ::unity::il2cpp_call!((::unity::module_base()+0x2a41f70usize)as*mut u8,();
100(CopyDepthPass)__receiver,(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)::core::convert::Into::into(source),(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)::core::convert::Into::into(destination))
101        }
102    }
103    #[doc = "`OnCameraSetup(crate::unity_engine::rendering::commandbuffer::CommandBuffer, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData)` overload"]
104    fn on_camera_setup(
105        self,
106        cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
107    ) -> crate::unity_engine::rendering::universal::renderingdata::RenderingData {
108        unsafe {
109            let __receiver = <CopyDepthPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
110            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::renderingdata::RenderingData>::uninit();
111            {
112                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
113                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
114                    panic!(
115                        "unity: virtual slot {}
116 out of range (vtable len {}
117) on the runtime class behind {}
118 (method `{}
119`)",
120                        5usize,
121                        __vt.len(),
122                        <CopyDepthPass as ::unity::ClassIdentity>::NAME,
123                        "OnCameraSetup",
124                    )
125                });
126                let __inner: extern "C" fn(
127                    CopyDepthPass,
128                    crate::unity_engine::rendering::commandbuffer::CommandBuffer,
129                    *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
130                    ::unity::OptionalMethod,
131                ) -> () = ::core::mem::transmute(__vi.method_ptr);
132                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
133                __inner(__receiver, ::core::convert::Into::into(cmd), __out_0.as_mut_ptr(), __mi)
134            };
135            __out_0.assume_init()
136        }
137    }
138    #[doc = "`Execute(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData)` overload"]
139    fn execute(
140        self,
141        context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
142    ) -> crate::unity_engine::rendering::universal::renderingdata::RenderingData {
143        unsafe {
144            let __receiver = <CopyDepthPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
145            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::renderingdata::RenderingData>::uninit();
146            {
147                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
148                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
149                    panic!(
150                        "unity: virtual slot {}
151 out of range (vtable len {}
152) on the runtime class behind {}
153 (method `{}
154`)",
155                        9usize,
156                        __vt.len(),
157                        <CopyDepthPass as ::unity::ClassIdentity>::NAME,
158                        "Execute",
159                    )
160                });
161                let __inner: extern "C" fn(
162                    CopyDepthPass,
163                    crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
164                    *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
165                    ::unity::OptionalMethod,
166                ) -> () = ::core::mem::transmute(__vi.method_ptr);
167                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
168                __inner(__receiver, ::core::convert::Into::into(context), __out_0.as_mut_ptr(), __mi)
169            };
170            __out_0.assume_init()
171        }
172    }
173    #[doc = "`OnCameraCleanup(crate::unity_engine::rendering::commandbuffer::CommandBuffer)` overload"]
174    fn on_camera_cleanup(self, cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>) -> () {
175        unsafe {
176            let __receiver = <CopyDepthPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
177            {
178                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
179                let __vi = *__vt.get(7usize).unwrap_or_else(|| {
180                    panic!(
181                        "unity: virtual slot {}
182 out of range (vtable len {}
183) on the runtime class behind {}
184 (method `{}
185`)",
186                        7usize,
187                        __vt.len(),
188                        <CopyDepthPass as ::unity::ClassIdentity>::NAME,
189                        "OnCameraCleanup",
190                    )
191                });
192                let __inner: extern "C" fn(
193                    CopyDepthPass,
194                    crate::unity_engine::rendering::commandbuffer::CommandBuffer,
195                    ::unity::OptionalMethod,
196                ) -> () = ::core::mem::transmute(__vi.method_ptr);
197                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
198                __inner(__receiver, ::core::convert::Into::into(cmd), __mi)
199            }
200        }
201    }
202}
203
204#[cfg(feature = "unity_engine-rendering-universal-internal-copydepthpass")]
205impl<__T: ICopyDepthPass> ICopyDepthPassMethods for __T {}
206
207#[cfg(feature = "unity_engine-rendering-universal-internal-copydepthpass")]
208impl CopyDepthPass {
209    pub fn get_source_method_info() -> &'static ::unity::il2cpp::MethodInfo {
210        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
211    }
212
213    pub fn set_source_method_info() -> &'static ::unity::il2cpp::MethodInfo {
214        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
215    }
216
217    pub fn get_destination_method_info() -> &'static ::unity::il2cpp::MethodInfo {
218        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
219    }
220
221    pub fn set_destination_method_info() -> &'static ::unity::il2cpp::MethodInfo {
222        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
223    }
224
225    pub fn get_allocate_rt_method_info() -> &'static ::unity::il2cpp::MethodInfo {
226        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
227    }
228
229    pub fn set_allocate_rt_method_info() -> &'static ::unity::il2cpp::MethodInfo {
230        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
231    }
232
233    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
234        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
235    }
236
237    pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
238        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
239    }
240
241    pub fn on_camera_setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
242        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
243    }
244
245    pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
246        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
247    }
248
249    pub fn on_camera_cleanup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
250        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
251    }
252}
253
254#[cfg(feature = "unity_engine-rendering-universal-internal-copydepthpass")]
255impl CopyDepthPass {
256    #[doc = "Direct (non-virtual) call to `CopyDepthPass`'s own `OnCameraSetup`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
257    pub unsafe fn on_camera_setup(
258        this: impl ::core::convert::Into<::unity::IlInstance>,
259        cmd: crate::unity_engine::rendering::commandbuffer::CommandBuffer,
260        rendering_data: *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
261    ) -> () {
262        let __mi = Self::on_camera_setup_method_info();
263        let __inner: extern "C" fn(
264            ::unity::IlInstance,
265            crate::unity_engine::rendering::commandbuffer::CommandBuffer,
266            *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
267            ::unity::OptionalMethod,
268        ) -> () = ::core::mem::transmute(__mi.method_ptr);
269        __inner(this.into(), cmd, rendering_data, ::core::option::Option::None)
270    }
271
272    #[doc = "Direct (non-virtual) call to `CopyDepthPass`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
273    pub unsafe fn execute(
274        this: impl ::core::convert::Into<::unity::IlInstance>,
275        context: crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
276        rendering_data: *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
277    ) -> () {
278        let __mi = Self::execute_method_info();
279        let __inner: extern "C" fn(
280            ::unity::IlInstance,
281            crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
282            *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
283            ::unity::OptionalMethod,
284        ) -> () = ::core::mem::transmute(__mi.method_ptr);
285        __inner(this.into(), context, rendering_data, ::core::option::Option::None)
286    }
287
288    #[doc = "Direct (non-virtual) call to `CopyDepthPass`'s own `OnCameraCleanup`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
289    pub unsafe fn on_camera_cleanup(
290        this: impl ::core::convert::Into<::unity::IlInstance>,
291        cmd: crate::unity_engine::rendering::commandbuffer::CommandBuffer,
292    ) -> () {
293        let __mi = Self::on_camera_cleanup_method_info();
294        let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rendering::commandbuffer::CommandBuffer, ::unity::OptionalMethod) -> () =
295            ::core::mem::transmute(__mi.method_ptr);
296        __inner(this.into(), cmd, ::core::option::Option::None)
297    }
298}
299
300#[cfg(feature = "unity_engine-rendering-universal-internal-copydepthpass")]
301impl CopyDepthPass {
302    #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, crate::unity_engine::material::Material)` — overload selector"]
303    pub fn new(
304        evt: crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent,
305        copy_depth_material: crate::unity_engine::material::Material,
306    ) -> Self {
307        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
308            panic!(
309                "{}
310::{}
311 failed to instantiate",
312                ::core::stringify!(CopyDepthPass),
313                ::core::stringify!(new),
314            )
315        });
316        <Self as ICopyDepthPassMethods>::ctor(this, evt, copy_depth_material);
317        this
318    }
319}
320
321#[cfg(feature = "unity_engine-rendering-universal-internal-copydepthpass")]
322#[doc(hidden)]
323pub mod prelude {
324    pub use super::{CopyDepthPass, ICopyDepthPass, ICopyDepthPassMethods};
325    #[cfg(feature = "system-object")]
326    pub use crate::system::object::IObjectMethods;
327    #[cfg(feature = "unity_engine-rendering-universal-scriptablerenderpass")]
328    pub use crate::unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPassMethods;
329    pub use crate::{system::object::IObject, unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPass};
330}