Skip to main content

engage/generated/unity_engine/rendering/universal/
sceneviewdepthcopypass.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-sceneviewdepthcopypass-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/sceneviewdepthcopypass/SceneViewDepthCopyPass.md"))]
14    #[::unity::class(namespace = "UnityEngine.Rendering.Universal", name = "SceneViewDepthCopyPass")]
15    #[parent(crate::unity_engine::rendering::universal::scriptablerenderpass::ScriptableRenderPass)]
16    pub struct SceneViewDepthCopyPass {
17        #[offset(160)]
18        #[rename(name = "m_CopyDepthMaterial")]
19        pub m_copy_depth_material: crate::unity_engine::material::Material,
20        #[static_field]
21        #[rename(name = "m_ProfilerTag")]
22        pub m_profiler_tag: ::unity::Il2CppString,
23        #[static_field]
24        #[rename(name = "m_ProfilingSampler")]
25        pub m_profiling_sampler: crate::unity_engine::rendering::profilingsampler::ProfilingSampler,
26    }
27}
28
29#[cfg(feature = "unity_engine-rendering-universal-sceneviewdepthcopypass-types")]
30pub use __types::*;
31
32#[cfg(feature = "unity_engine-rendering-universal-sceneviewdepthcopypass")]
33impl SceneViewDepthCopyPass {
34    #[doc = "`.cctor()` overload"]
35    pub fn cctor() -> () {
36        unsafe {
37            ::unity::il2cpp_call!((::unity::module_base()+0x2ece580usize)as*mut u8,();
38            )
39        }
40    }
41}
42
43#[cfg(feature = "unity_engine-rendering-universal-sceneviewdepthcopypass")]
44pub trait ISceneViewDepthCopyPassMethods: ISceneViewDepthCopyPass {
45    #[doc = "`get_source()` overload"]
46    fn get_source(self) -> crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle {
47        unsafe {
48            let __receiver =
49                <SceneViewDepthCopyPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50            ::unity::il2cpp_call!((::unity::module_base()+0x2ecda40usize)as*mut u8,crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle;
51(SceneViewDepthCopyPass)__receiver)
52        }
53    }
54    #[doc = "`set_source(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)` overload"]
55    fn set_source(self, value: impl ::core::convert::Into<crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle>) -> () {
56        unsafe {
57            let __receiver =
58                <SceneViewDepthCopyPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x2ecda60usize)as*mut u8,();
60(SceneViewDepthCopyPass)__receiver,(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)::core::convert::Into::into(value))
61        }
62    }
63    #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, crate::unity_engine::material::Material)` overload"]
64    fn ctor(
65        self,
66        evt: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent>,
67        copy_depth_material: impl ::core::convert::Into<crate::unity_engine::material::Material>,
68    ) -> () {
69        unsafe {
70            let __receiver =
71                <SceneViewDepthCopyPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
72            ::unity::il2cpp_call!((::unity::module_base()+0x2ecda80usize)as*mut u8,();
73(SceneViewDepthCopyPass)__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))
74        }
75    }
76    #[doc = "`Setup(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)` overload"]
77    fn setup(self, source: impl ::core::convert::Into<crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle>) -> () {
78        unsafe {
79            let __receiver =
80                <SceneViewDepthCopyPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81            ::unity::il2cpp_call!((::unity::module_base()+0x2ecdfa0usize)as*mut u8,();
82(SceneViewDepthCopyPass)__receiver,(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)::core::convert::Into::into(source))
83        }
84    }
85    #[doc = "`Execute(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData)` overload"]
86    fn execute(
87        self,
88        context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
89    ) -> crate::unity_engine::rendering::universal::renderingdata::RenderingData {
90        unsafe {
91            let __receiver =
92                <SceneViewDepthCopyPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
93            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::renderingdata::RenderingData>::uninit();
94            {
95                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
96                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
97                    panic!(
98                        "unity: virtual slot {}
99 out of range (vtable len {}
100) on the runtime class behind {}
101 (method `{}
102`)",
103                        9usize,
104                        __vt.len(),
105                        <SceneViewDepthCopyPass as ::unity::ClassIdentity>::NAME,
106                        "Execute",
107                    )
108                });
109                let __inner: extern "C" fn(
110                    SceneViewDepthCopyPass,
111                    crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
112                    *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
113                    ::unity::OptionalMethod,
114                ) -> () = ::core::mem::transmute(__vi.method_ptr);
115                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
116                __inner(__receiver, ::core::convert::Into::into(context), __out_0.as_mut_ptr(), __mi)
117            };
118            __out_0.assume_init()
119        }
120    }
121}
122
123#[cfg(feature = "unity_engine-rendering-universal-sceneviewdepthcopypass")]
124impl<__T: ISceneViewDepthCopyPass> ISceneViewDepthCopyPassMethods for __T {}
125
126#[cfg(feature = "unity_engine-rendering-universal-sceneviewdepthcopypass")]
127impl SceneViewDepthCopyPass {
128    pub fn get_source_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
130    }
131
132    pub fn set_source_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
134    }
135
136    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
138    }
139
140    pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
142    }
143
144    pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
146    }
147
148    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
150    }
151}
152
153#[cfg(feature = "unity_engine-rendering-universal-sceneviewdepthcopypass")]
154impl SceneViewDepthCopyPass {
155    #[doc = "Direct (non-virtual) call to `SceneViewDepthCopyPass`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
156    pub unsafe fn execute(
157        this: impl ::core::convert::Into<::unity::IlInstance>,
158        context: crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
159        rendering_data: *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
160    ) -> () {
161        let __mi = Self::execute_method_info();
162        let __inner: extern "C" fn(
163            ::unity::IlInstance,
164            crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
165            *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
166            ::unity::OptionalMethod,
167        ) -> () = ::core::mem::transmute(__mi.method_ptr);
168        __inner(this.into(), context, rendering_data, ::core::option::Option::None)
169    }
170}
171
172#[cfg(feature = "unity_engine-rendering-universal-sceneviewdepthcopypass")]
173impl SceneViewDepthCopyPass {
174    #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, crate::unity_engine::material::Material)` — overload selector"]
175    pub fn new(
176        evt: crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent,
177        copy_depth_material: crate::unity_engine::material::Material,
178    ) -> Self {
179        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
180            panic!(
181                "{}
182::{}
183 failed to instantiate",
184                ::core::stringify!(SceneViewDepthCopyPass),
185                ::core::stringify!(new),
186            )
187        });
188        <Self as ISceneViewDepthCopyPassMethods>::ctor(this, evt, copy_depth_material);
189        this
190    }
191}
192
193#[cfg(feature = "unity_engine-rendering-universal-sceneviewdepthcopypass")]
194#[doc(hidden)]
195pub mod prelude {
196    pub use super::{ISceneViewDepthCopyPass, ISceneViewDepthCopyPassMethods, SceneViewDepthCopyPass};
197    #[cfg(feature = "system-object")]
198    pub use crate::system::object::IObjectMethods;
199    #[cfg(feature = "unity_engine-rendering-universal-scriptablerenderpass")]
200    pub use crate::unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPassMethods;
201    pub use crate::{system::object::IObject, unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPass};
202}