Skip to main content

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

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