Skip to main content

engage/generated/unity_engine/rendering/universal/
scriptablerenderpassinput.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-scriptablerenderpassinput-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        r#enum::{Enum, IEnum},
11        valuetype::{IValueType, ValueType},
12    };
13
14    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/scriptablerenderpassinput/ScriptableRenderPassInput.md"))]
15    #[repr(C)]
16    #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
17    pub struct ScriptableRenderPassInput {
18        pub value: i32,
19    }
20    impl ::unity::ClassIdentity for ScriptableRenderPassInput {
21        const NAME: &'static str = "ScriptableRenderPassInput";
22        const NAMESPACE: &'static str = "UnityEngine.Rendering.Universal";
23
24        fn class() -> ::unity::Class {
25            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
26            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
27        }
28    }
29    impl ::unity::IlType for ScriptableRenderPassInput {
30        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
31            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
32        }
33    }
34    impl ScriptableRenderPassInput {
35        pub fn none() -> Self {
36            Self { value: 0 }
37        }
38
39        pub fn depth() -> Self {
40            Self { value: 1 }
41        }
42
43        pub fn normal() -> Self {
44            Self { value: 2 }
45        }
46
47        pub fn color() -> Self {
48            Self { value: 4 }
49        }
50    }
51}
52
53#[cfg(feature = "unity_engine-rendering-universal-scriptablerenderpassinput-types")]
54pub use __types::*;
55
56#[cfg(feature = "unity_engine-rendering-universal-scriptablerenderpassinput")]
57#[doc(hidden)]
58pub mod prelude {
59    pub use super::ScriptableRenderPassInput;
60    #[cfg(feature = "system-object")]
61    pub use crate::system::object::IObjectMethods;
62    #[cfg(feature = "system-enum")]
63    pub use crate::system::r#enum::IEnumMethods;
64    #[cfg(feature = "system-valuetype")]
65    pub use crate::system::valuetype::IValueTypeMethods;
66    pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
67}