Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-shaderinput-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::{
9        object::{IObject, Object},
10        valuetype::{IValueType, ValueType},
11    };
12
13    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/shaderinput/ShaderInput_LightData.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct ShaderInput_LightData {
17        pub position: crate::unity_engine::vector4::Vector4,
18        pub color: crate::unity_engine::vector4::Vector4,
19        pub attenuation: crate::unity_engine::vector4::Vector4,
20        pub spot_direction: crate::unity_engine::vector4::Vector4,
21        pub occlusion_probe_channels: crate::unity_engine::vector4::Vector4,
22    }
23    impl ::unity::ClassIdentity for ShaderInput_LightData {
24        const NAME: &'static str = "ShaderInput.LightData";
25        const NAMESPACE: &'static str = "UnityEngine.Rendering.Universal";
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 ShaderInput_LightData {
33        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
34            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
35        }
36    }
37
38    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/shaderinput/ShaderInput_ShadowData.md"))]
39    #[repr(C)]
40    #[derive(::core::clone::Clone, ::core::marker::Copy)]
41    pub struct ShaderInput_ShadowData {
42        pub world_to_shadow_matrix: crate::unity_engine::matrix4x4::Matrix4x4,
43        pub shadow_params: crate::unity_engine::vector4::Vector4,
44    }
45    impl ::unity::ClassIdentity for ShaderInput_ShadowData {
46        const NAME: &'static str = "ShaderInput.ShadowData";
47        const NAMESPACE: &'static str = "UnityEngine.Rendering.Universal";
48
49        fn class() -> ::unity::Class {
50            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
51            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
52        }
53    }
54    impl ::unity::IlType for ShaderInput_ShadowData {
55        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
56            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
57        }
58    }
59
60    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/shaderinput/ShaderInput.md"))]
61    #[::unity::class(namespace = "UnityEngine.Rendering.Universal", name = "ShaderInput")]
62    #[parent(crate::system::object::Object)]
63    pub struct ShaderInput {}
64}
65
66#[cfg(feature = "unity_engine-rendering-universal-shaderinput-types")]
67pub use __types::*;
68
69#[cfg(feature = "unity_engine-rendering-universal-shaderinput")]
70#[doc(hidden)]
71pub mod prelude {
72    pub use super::{IShaderInput, ShaderInput, ShaderInput_LightData, ShaderInput_ShadowData};
73    #[cfg(feature = "system-object")]
74    pub use crate::system::object::IObjectMethods;
75    #[cfg(feature = "system-valuetype")]
76    pub use crate::system::valuetype::IValueTypeMethods;
77    pub use crate::system::{object::IObject, valuetype::IValueType};
78}