Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customeffectpass-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/customeffectpass/CustomEffectPass.md"))]
14    #[::unity::class(namespace = "UnityEngine.Rendering.Universal.Custom.Internal", name = "CustomEffectPass")]
15    #[parent(crate::unity_engine::rendering::universal::scriptablerenderpass::ScriptableRenderPass)]
16    pub struct CustomEffectPass {
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_EffectTagId")]
28        pub m_effect_tag_id: crate::unity_engine::rendering::shadertagid::ShaderTagId,
29        #[offset(148)]
30        #[rename(name = "m_EffectFullTagId")]
31        pub m_effect_full_tag_id: crate::unity_engine::rendering::shadertagid::ShaderTagId,
32        #[offset(152)]
33        #[rename(name = "m_ShouldSetEffectDepth")]
34        pub m_should_set_effect_depth: bool,
35        #[offset(160)]
36        #[rename(name = "m_EffectDepthId")]
37        pub m_effect_depth_id: crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier,
38    }
39}
40
41#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customeffectpass-types")]
42pub use __types::*;
43
44#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customeffectpass")]
45pub trait ICustomEffectPassMethods: ICustomEffectPass {
46    #[doc = "`get_forceHalfEffectToDrawFull()` overload"]
47    fn get_force_half_effect_to_draw_full(self) -> bool {
48        unsafe {
49            let __receiver = <CustomEffectPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50            ::unity::il2cpp_call!((::unity::module_base()+0x2a464a0usize)as*mut u8,bool;
51(CustomEffectPass)__receiver)
52        }
53    }
54    #[doc = "`set_forceHalfEffectToDrawFull(bool)` overload"]
55    fn set_force_half_effect_to_draw_full(self, value: impl ::core::convert::Into<bool>) -> () {
56        unsafe {
57            let __receiver = <CustomEffectPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58            ::unity::il2cpp_call!((::unity::module_base()+0x2a464b0usize)as*mut u8,();
59(CustomEffectPass)__receiver,(bool)::core::convert::Into::into(value))
60        }
61    }
62    #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, crate::unity_engine::layermask::LayerMask)` overload"]
63    fn ctor(
64        self,
65        evt: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent>,
66        layer_mask: impl ::core::convert::Into<crate::unity_engine::layermask::LayerMask>,
67    ) -> () {
68        unsafe {
69            let __receiver = <CustomEffectPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70            ::unity::il2cpp_call!((::unity::module_base()+0x2a464c0usize)as*mut u8,();
71(CustomEffectPass)__receiver,(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent)::core::convert::Into::into(evt),(crate::unity_engine::layermask::LayerMask)::core::convert::Into::into(layer_mask))
72        }
73    }
74    #[doc = "`SetEffectDepth(i32)` overload"]
75    fn set_effect_depth(self, id: impl ::core::convert::Into<i32>) -> () {
76        unsafe {
77            let __receiver = <CustomEffectPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78            ::unity::il2cpp_call!((::unity::module_base()+0x2a46690usize)as*mut u8,();
79(CustomEffectPass)__receiver,(i32)::core::convert::Into::into(id))
80        }
81    }
82    #[doc = "`Execute(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData)` overload"]
83    fn execute(
84        self,
85        context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
86    ) -> crate::unity_engine::rendering::universal::renderingdata::RenderingData {
87        unsafe {
88            let __receiver = <CustomEffectPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::renderingdata::RenderingData>::uninit();
90            {
91                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
92                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
93                    panic!(
94                        "unity: virtual slot {}
95 out of range (vtable len {}
96) on the runtime class behind {}
97 (method `{}
98`)",
99                        9usize,
100                        __vt.len(),
101                        <CustomEffectPass as ::unity::ClassIdentity>::NAME,
102                        "Execute",
103                    )
104                });
105                let __inner: extern "C" fn(
106                    CustomEffectPass,
107                    crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
108                    *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
109                    ::unity::OptionalMethod,
110                ) -> () = ::core::mem::transmute(__vi.method_ptr);
111                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
112                __inner(__receiver, ::core::convert::Into::into(context), __out_0.as_mut_ptr(), __mi)
113            };
114            __out_0.assume_init()
115        }
116    }
117}
118
119#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customeffectpass")]
120impl<__T: ICustomEffectPass> ICustomEffectPassMethods for __T {}
121
122#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customeffectpass")]
123impl CustomEffectPass {
124    pub fn get_force_half_effect_to_draw_full_method_info() -> &'static ::unity::il2cpp::MethodInfo {
125        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
126    }
127
128    pub fn set_force_half_effect_to_draw_full_method_info() -> &'static ::unity::il2cpp::MethodInfo {
129        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
130    }
131
132    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
133        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
134    }
135
136    pub fn set_effect_depth_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
138    }
139
140    pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
142    }
143}
144
145#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customeffectpass")]
146impl CustomEffectPass {
147    #[doc = "Direct (non-virtual) call to `CustomEffectPass`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
148    pub unsafe fn execute(
149        this: impl ::core::convert::Into<::unity::IlInstance>,
150        context: crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
151        rendering_data: *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
152    ) -> () {
153        let __mi = Self::execute_method_info();
154        let __inner: extern "C" fn(
155            ::unity::IlInstance,
156            crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
157            *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
158            ::unity::OptionalMethod,
159        ) -> () = ::core::mem::transmute(__mi.method_ptr);
160        __inner(this.into(), context, rendering_data, ::core::option::Option::None)
161    }
162}
163
164#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customeffectpass")]
165impl CustomEffectPass {
166    #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, crate::unity_engine::layermask::LayerMask)` — overload selector"]
167    pub fn new(
168        evt: crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent,
169        layer_mask: crate::unity_engine::layermask::LayerMask,
170    ) -> Self {
171        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
172            panic!(
173                "{}
174::{}
175 failed to instantiate",
176                ::core::stringify!(CustomEffectPass),
177                ::core::stringify!(new),
178            )
179        });
180        <Self as ICustomEffectPassMethods>::ctor(this, evt, layer_mask);
181        this
182    }
183}
184
185#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customeffectpass")]
186#[doc(hidden)]
187pub mod prelude {
188    pub use super::{CustomEffectPass, ICustomEffectPass, ICustomEffectPassMethods};
189    #[cfg(feature = "system-object")]
190    pub use crate::system::object::IObjectMethods;
191    #[cfg(feature = "unity_engine-rendering-universal-scriptablerenderpass")]
192    pub use crate::unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPassMethods;
193    pub use crate::{system::object::IObject, unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPass};
194}