Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-custom-internal-custommixedresolutionpass-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::{
9        system::{
10            object::{IObject, Object},
11            r#enum::{Enum, IEnum},
12            valuetype::{IValueType, ValueType},
13        },
14        unity_engine::rendering::universal::scriptablerenderpass::{IScriptableRenderPass, ScriptableRenderPass},
15    };
16
17    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/custom/internal/custommixedresolutionpass/CustomMixedResolutionPass_DownsampleType.md"))]
18    #[repr(C)]
19    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
20    pub struct CustomMixedResolutionPass_DownsampleType {
21        pub value: i32,
22    }
23    impl ::unity::ClassIdentity for CustomMixedResolutionPass_DownsampleType {
24        const NAME: &'static str = "CustomMixedResolutionPass.DownsampleType";
25        const NAMESPACE: &'static str = "UnityEngine.Rendering.Universal.Custom.Internal";
26
27        fn class() -> ::unity::Class {
28            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
29            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
30        }
31    }
32    impl ::unity::IlType for CustomMixedResolutionPass_DownsampleType {
33        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35        }
36    }
37    impl CustomMixedResolutionPass_DownsampleType {
38        pub fn average() -> Self {
39            Self { value: 0 }
40        }
41
42        pub fn min_max() -> Self {
43            Self { value: 1 }
44        }
45    }
46
47    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/custom/internal/custommixedresolutionpass/CustomMixedResolutionPass_CompositeType.md"))]
48    #[repr(C)]
49    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
50    pub struct CustomMixedResolutionPass_CompositeType {
51        pub value: i32,
52    }
53    impl ::unity::ClassIdentity for CustomMixedResolutionPass_CompositeType {
54        const NAME: &'static str = "CustomMixedResolutionPass.CompositeType";
55        const NAMESPACE: &'static str = "UnityEngine.Rendering.Universal.Custom.Internal";
56
57        fn class() -> ::unity::Class {
58            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
59            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
60        }
61    }
62    impl ::unity::IlType for CustomMixedResolutionPass_CompositeType {
63        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
64            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
65        }
66    }
67    impl CustomMixedResolutionPass_CompositeType {
68        pub fn bilinear() -> Self {
69            Self { value: 0 }
70        }
71
72        pub fn bilateral4x() -> Self {
73            Self { value: 1 }
74        }
75
76        pub fn bilateral2x() -> Self {
77            Self { value: 2 }
78        }
79    }
80
81    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/custom/internal/custommixedresolutionpass/CustomMixedResolutionPass.md"))]
82    #[::unity::class(namespace = "UnityEngine.Rendering.Universal.Custom.Internal", name = "CustomMixedResolutionPass")]
83    #[parent(crate::unity_engine::rendering::universal::scriptablerenderpass::ScriptableRenderPass)]
84    pub struct CustomMixedResolutionPass {
85        #[static_field]
86        #[rename(name = "m_ProfilerTag")]
87        pub m_profiler_tag: ::unity::Il2CppString,
88        #[offset(112)]
89        #[rename(name = "m_ProfilingSampler")]
90        pub m_profiling_sampler: crate::unity_engine::rendering::profilingsampler::ProfilingSampler,
91        #[offset(120)]
92        #[rename(name = "m_HalfColorHandle")]
93        pub m_half_color_handle: crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle,
94        #[offset(168)]
95        #[rename(name = "m_HalfDepthHandle")]
96        pub m_half_depth_handle: crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle,
97        #[offset(216)]
98        #[rename(name = "m_EffectSoftParticleDepthHandle")]
99        pub m_effect_soft_particle_depth_handle: crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle,
100        #[offset(264)]
101        #[rename(name = "m_EdgeHandle")]
102        pub m_edge_handle: crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle,
103        #[offset(312)]
104        #[rename(name = "m_CopyDepthMaterial")]
105        pub m_copy_depth_material: crate::unity_engine::material::Material,
106        #[offset(320)]
107        #[rename(name = "m_CompositeMaterial")]
108        pub m_composite_material: crate::unity_engine::material::Material,
109        #[offset(328)]
110        #[rename(name = "m_FullScreenTriangle")]
111        pub m_full_screen_triangle: crate::unity_engine::mesh::Mesh,
112        #[offset(336)]
113        #[rename(name = "m_FilteringSettings")]
114        pub m_filtering_settings: crate::unity_engine::rendering::filteringsettings::FilteringSettings,
115        #[offset(360)]
116        #[rename(name = "m_EffectTagId")]
117        pub m_effect_tag_id: crate::unity_engine::rendering::shadertagid::ShaderTagId,
118        #[offset(364)]
119        #[rename(name = "m_MixedRenderState")]
120        pub m_mixed_render_state: crate::unity_engine::rendering::renderstateblock::RenderStateBlock,
121    }
122}
123
124#[cfg(feature = "unity_engine-rendering-universal-custom-internal-custommixedresolutionpass-types")]
125pub use __types::*;
126
127#[cfg(feature = "unity_engine-rendering-universal-custom-internal-custommixedresolutionpass")]
128pub trait ICustomMixedResolutionPassMethods: ICustomMixedResolutionPass {
129    #[doc = "`get_downsampleType()` overload"]
130    fn get_downsample_type(
131        self,
132    ) -> crate::unity_engine::rendering::universal::custom::internal::custommixedresolutionpass::CustomMixedResolutionPass_DownsampleType {
133        unsafe {
134            let __receiver =
135                <CustomMixedResolutionPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
136            ::unity::il2cpp_call!((::unity::module_base()+0x2a4c3d0usize)as*mut u8,crate::unity_engine::rendering::universal::custom::internal::custommixedresolutionpass::CustomMixedResolutionPass_DownsampleType;
137(CustomMixedResolutionPass)__receiver)
138        }
139    }
140    #[doc = "`set_downsampleType(crate::unity_engine::rendering::universal::custom::internal::custommixedresolutionpass::CustomMixedResolutionPass_DownsampleType)` overload"]
141    fn set_downsample_type(
142        self,
143        value: impl ::core::convert::Into<
144            crate::unity_engine::rendering::universal::custom::internal::custommixedresolutionpass::CustomMixedResolutionPass_DownsampleType,
145        >,
146    ) -> () {
147        unsafe {
148            let __receiver =
149                <CustomMixedResolutionPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
150            ::unity::il2cpp_call!((::unity::module_base()+0x2a4c3e0usize)as*mut u8,();
151(CustomMixedResolutionPass)__receiver,(crate::unity_engine::rendering::universal::custom::internal::custommixedresolutionpass::CustomMixedResolutionPass_DownsampleType)::core::convert::Into::into(value))
152        }
153    }
154    #[doc = "`get_compositeType()` overload"]
155    fn get_composite_type(
156        self,
157    ) -> crate::unity_engine::rendering::universal::custom::internal::custommixedresolutionpass::CustomMixedResolutionPass_CompositeType {
158        unsafe {
159            let __receiver =
160                <CustomMixedResolutionPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
161            ::unity::il2cpp_call!((::unity::module_base()+0x2a4c3f0usize)as*mut u8,crate::unity_engine::rendering::universal::custom::internal::custommixedresolutionpass::CustomMixedResolutionPass_CompositeType;
162(CustomMixedResolutionPass)__receiver)
163        }
164    }
165    #[doc = "`set_compositeType(crate::unity_engine::rendering::universal::custom::internal::custommixedresolutionpass::CustomMixedResolutionPass_CompositeType)` overload"]
166    fn set_composite_type(
167        self,
168        value: impl ::core::convert::Into<
169            crate::unity_engine::rendering::universal::custom::internal::custommixedresolutionpass::CustomMixedResolutionPass_CompositeType,
170        >,
171    ) -> () {
172        unsafe {
173            let __receiver =
174                <CustomMixedResolutionPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175            ::unity::il2cpp_call!((::unity::module_base()+0x2a4c400usize)as*mut u8,();
176(CustomMixedResolutionPass)__receiver,(crate::unity_engine::rendering::universal::custom::internal::custommixedresolutionpass::CustomMixedResolutionPass_CompositeType)::core::convert::Into::into(value))
177        }
178    }
179    #[doc = "`get_mixHalfAndFull()` overload"]
180    fn get_mix_half_and_full(self) -> bool {
181        unsafe {
182            let __receiver =
183                <CustomMixedResolutionPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
184            ::unity::il2cpp_call!((::unity::module_base()+0x2a4c410usize)as*mut u8,bool;
185(CustomMixedResolutionPass)__receiver)
186        }
187    }
188    #[doc = "`set_mixHalfAndFull(bool)` overload"]
189    fn set_mix_half_and_full(self, value: impl ::core::convert::Into<bool>) -> () {
190        unsafe {
191            let __receiver =
192                <CustomMixedResolutionPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
193            ::unity::il2cpp_call!((::unity::module_base()+0x2a4c420usize)as*mut u8,();
194(CustomMixedResolutionPass)__receiver,(bool)::core::convert::Into::into(value))
195        }
196    }
197    #[doc = "`get_srcDepth()` overload"]
198    fn get_src_depth(self) -> crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier {
199        unsafe {
200            let __receiver =
201                <CustomMixedResolutionPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
202            ::unity::il2cpp_call!((::unity::module_base()+0x2a4c430usize)as*mut u8,crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier;
203(CustomMixedResolutionPass)__receiver)
204        }
205    }
206    #[doc = "`set_srcDepth(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)` overload"]
207    fn set_src_depth(self, value: impl ::core::convert::Into<crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier>) -> () {
208        unsafe {
209            let __receiver =
210                <CustomMixedResolutionPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
211            ::unity::il2cpp_call!((::unity::module_base()+0x2a4c450usize)as*mut u8,();
212(CustomMixedResolutionPass)__receiver,(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)::core::convert::Into::into(value))
213        }
214    }
215    #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, crate::unity_engine::layermask::LayerMask, crate::unity_engine::material::Material, crate::unity_engine::material::Material)` overload"]
216    fn ctor(
217        self,
218        evt: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent>,
219        layer_mask: impl ::core::convert::Into<crate::unity_engine::layermask::LayerMask>,
220        copy_depth_material: impl ::core::convert::Into<crate::unity_engine::material::Material>,
221        composite_material: impl ::core::convert::Into<crate::unity_engine::material::Material>,
222    ) -> () {
223        unsafe {
224            let __receiver =
225                <CustomMixedResolutionPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
226            ::unity::il2cpp_call!((::unity::module_base()+0x2a48a10usize)as*mut u8,();
227(CustomMixedResolutionPass)__receiver,(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent)::core::convert::Into::into(evt),(crate::unity_engine::layermask::LayerMask)::core::convert::Into::into(layer_mask),(crate::unity_engine::material::Material)::core::convert::Into::into(copy_depth_material),(crate::unity_engine::material::Material)::core::convert::Into::into(composite_material))
228        }
229    }
230    #[doc = "`Execute(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData)` overload"]
231    fn execute(
232        self,
233        context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
234    ) -> crate::unity_engine::rendering::universal::renderingdata::RenderingData {
235        unsafe {
236            let __receiver =
237                <CustomMixedResolutionPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
238            let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::renderingdata::RenderingData>::uninit();
239            {
240                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
241                let __vi = *__vt.get(9usize).unwrap_or_else(|| {
242                    panic!(
243                        "unity: virtual slot {}
244 out of range (vtable len {}
245) on the runtime class behind {}
246 (method `{}
247`)",
248                        9usize,
249                        __vt.len(),
250                        <CustomMixedResolutionPass as ::unity::ClassIdentity>::NAME,
251                        "Execute",
252                    )
253                });
254                let __inner: extern "C" fn(
255                    CustomMixedResolutionPass,
256                    crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
257                    *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
258                    ::unity::OptionalMethod,
259                ) -> () = ::core::mem::transmute(__vi.method_ptr);
260                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
261                __inner(__receiver, ::core::convert::Into::into(context), __out_0.as_mut_ptr(), __mi)
262            };
263            __out_0.assume_init()
264        }
265    }
266}
267
268#[cfg(feature = "unity_engine-rendering-universal-custom-internal-custommixedresolutionpass")]
269impl<__T: ICustomMixedResolutionPass> ICustomMixedResolutionPassMethods for __T {}
270
271#[cfg(feature = "unity_engine-rendering-universal-custom-internal-custommixedresolutionpass")]
272impl CustomMixedResolutionPass {
273    pub fn get_downsample_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
274        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
275    }
276
277    pub fn set_downsample_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
278        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
279    }
280
281    pub fn get_composite_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
282        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
283    }
284
285    pub fn set_composite_type_method_info() -> &'static ::unity::il2cpp::MethodInfo {
286        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
287    }
288
289    pub fn get_mix_half_and_full_method_info() -> &'static ::unity::il2cpp::MethodInfo {
290        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
291    }
292
293    pub fn set_mix_half_and_full_method_info() -> &'static ::unity::il2cpp::MethodInfo {
294        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
295    }
296
297    pub fn get_src_depth_method_info() -> &'static ::unity::il2cpp::MethodInfo {
298        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
299    }
300
301    pub fn set_src_depth_method_info() -> &'static ::unity::il2cpp::MethodInfo {
302        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
303    }
304
305    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
306        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
307    }
308
309    pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
310        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
311    }
312}
313
314#[cfg(feature = "unity_engine-rendering-universal-custom-internal-custommixedresolutionpass")]
315impl CustomMixedResolutionPass {
316    #[doc = "Direct (non-virtual) call to `CustomMixedResolutionPass`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
317    pub unsafe fn execute(
318        this: impl ::core::convert::Into<::unity::IlInstance>,
319        context: crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
320        rendering_data: *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
321    ) -> () {
322        let __mi = Self::execute_method_info();
323        let __inner: extern "C" fn(
324            ::unity::IlInstance,
325            crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
326            *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
327            ::unity::OptionalMethod,
328        ) -> () = ::core::mem::transmute(__mi.method_ptr);
329        __inner(this.into(), context, rendering_data, ::core::option::Option::None)
330    }
331}
332
333#[cfg(feature = "unity_engine-rendering-universal-custom-internal-custommixedresolutionpass")]
334impl CustomMixedResolutionPass {
335    #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, crate::unity_engine::layermask::LayerMask, crate::unity_engine::material::Material, crate::unity_engine::material::Material)` — overload selector"]
336    pub fn new(
337        evt: crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent,
338        layer_mask: crate::unity_engine::layermask::LayerMask,
339        copy_depth_material: crate::unity_engine::material::Material,
340        composite_material: crate::unity_engine::material::Material,
341    ) -> Self {
342        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
343            panic!(
344                "{}
345::{}
346 failed to instantiate",
347                ::core::stringify!(CustomMixedResolutionPass),
348                ::core::stringify!(new),
349            )
350        });
351        <Self as ICustomMixedResolutionPassMethods>::ctor(this, evt, layer_mask, copy_depth_material, composite_material);
352        this
353    }
354}
355
356#[cfg(feature = "unity_engine-rendering-universal-custom-internal-custommixedresolutionpass")]
357#[doc(hidden)]
358pub mod prelude {
359    pub use super::{
360        CustomMixedResolutionPass, CustomMixedResolutionPass_CompositeType, CustomMixedResolutionPass_DownsampleType, ICustomMixedResolutionPass,
361        ICustomMixedResolutionPassMethods,
362    };
363    #[cfg(feature = "system-object")]
364    pub use crate::system::object::IObjectMethods;
365    #[cfg(feature = "system-enum")]
366    pub use crate::system::r#enum::IEnumMethods;
367    #[cfg(feature = "system-valuetype")]
368    pub use crate::system::valuetype::IValueTypeMethods;
369    #[cfg(feature = "unity_engine-rendering-universal-scriptablerenderpass")]
370    pub use crate::unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPassMethods;
371    pub use crate::{
372        system::{object::IObject, r#enum::IEnum, valuetype::IValueType},
373        unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPass,
374    };
375}