Skip to main content

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

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