Skip to main content

engage/generated/unity_engine/rendering/universal/custom/
customrpparams.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-custom-customrpparams-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/custom/customrpparams/CustomRPParams.md"))]
11    #[::unity::class(namespace = "UnityEngine.Rendering.Universal.Custom", name = "CustomRPParams")]
12    #[parent(crate::system::object::Object)]
13    pub struct CustomRPParams {
14        #[offset(16)]
15        #[rename(name = "blurEnabled")]
16        pub blur_enabled: bool,
17        #[offset(20)]
18        #[rename(name = "blurLevels")]
19        pub blur_levels: i32,
20        #[offset(24)]
21        #[rename(name = "captureEnabled")]
22        pub capture_enabled: bool,
23        #[offset(28)]
24        #[rename(name = "finalMonoColor")]
25        pub final_mono_color: crate::unity_engine::color::Color,
26        #[offset(44)]
27        #[rename(name = "finalMonoColorRate")]
28        pub final_mono_color_rate: f32,
29        #[offset(48)]
30        #[rename(name = "specialFilterEnabled")]
31        pub special_filter_enabled: bool,
32        #[offset(52)]
33        #[rename(name = "specialFilterColor")]
34        pub special_filter_color: crate::unity_engine::color::Color,
35        #[offset(68)]
36        #[rename(name = "specialFilterSaturation")]
37        pub special_filter_saturation: f32,
38        #[offset(72)]
39        #[rename(name = "specialFilterRate")]
40        pub special_filter_rate: f32,
41        #[offset(76)]
42        #[rename(name = "specialFilterWhiteRate")]
43        pub special_filter_white_rate: f32,
44        #[offset(80)]
45        #[rename(name = "specialFilterWhitePoint")]
46        pub special_filter_white_point: f32,
47        #[offset(88)]
48        #[rename(name = "silhouetteColors")]
49        pub silhouette_colors: ::unity::Array<crate::unity_engine::color::Color>,
50        #[offset(96)]
51        #[rename(name = "exposures")]
52        pub exposures: ::unity::Array<f32>,
53        #[offset(104)]
54        #[rename(name = "lodFadeBias")]
55        pub lod_fade_bias: f32,
56    }
57}
58
59#[cfg(feature = "unity_engine-rendering-universal-custom-customrpparams-types")]
60pub use __types::*;
61
62#[cfg(feature = "unity_engine-rendering-universal-custom-customrpparams")]
63pub trait ICustomRPParamsMethods: ICustomRPParams {
64    #[doc = "`.ctor()` overload"]
65    fn ctor(self) -> () {
66        unsafe {
67            let __receiver = <CustomRPParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
68            ::unity::il2cpp_call!((::unity::module_base()+0x2a48ea0usize)as*mut u8,();
69(CustomRPParams)__receiver)
70        }
71    }
72}
73
74#[cfg(feature = "unity_engine-rendering-universal-custom-customrpparams")]
75impl<__T: ICustomRPParams> ICustomRPParamsMethods for __T {}
76
77#[cfg(feature = "unity_engine-rendering-universal-custom-customrpparams")]
78impl CustomRPParams {
79    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
80        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
81    }
82}
83
84#[cfg(feature = "unity_engine-rendering-universal-custom-customrpparams")]
85impl CustomRPParams {
86    #[doc = "`.ctor()` — no args"]
87    pub fn new() -> Self {
88        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
89            panic!(
90                "{}
91::{}
92 failed to instantiate",
93                ::core::stringify!(CustomRPParams),
94                ::core::stringify!(new),
95            )
96        });
97        <Self as ICustomRPParamsMethods>::ctor(this);
98        this
99    }
100}
101
102#[cfg(feature = "unity_engine-rendering-universal-custom-customrpparams")]
103#[doc(hidden)]
104pub mod prelude {
105    pub use super::{CustomRPParams, ICustomRPParams, ICustomRPParamsMethods};
106    pub use crate::system::object::IObject;
107    #[cfg(feature = "system-object")]
108    pub use crate::system::object::IObjectMethods;
109}