engage/generated/unity_engine/rendering/
surfacedataattributes.rs1#[cfg(feature = "unity_engine-rendering-surfacedataattributes-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8
9 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/surfacedataattributes/SurfaceDataAttributes.md"))]
10 #[::unity::class(namespace = "UnityEngine.Rendering", name = "SurfaceDataAttributes")]
11 pub struct SurfaceDataAttributes {
12 #[offset(16)]
13 #[rename(name = "displayNames")]
14 pub display_names: ::unity::Array<::unity::Il2CppString>,
15 #[offset(24)]
16 #[rename(name = "isDirection")]
17 pub is_direction: bool,
18 #[offset(25)]
19 #[rename(name = "sRGBDisplay")]
20 pub s_rgb_display: bool,
21 #[offset(28)]
22 #[rename(name = "precision")]
23 pub precision: crate::unity_engine::rendering::fieldprecision::FieldPrecision,
24 #[offset(32)]
25 #[rename(name = "checkIsNormalized")]
26 pub check_is_normalized: bool,
27 }
28}
29
30#[cfg(feature = "unity_engine-rendering-surfacedataattributes-types")]
31pub use __types::*;
32
33#[cfg(feature = "unity_engine-rendering-surfacedataattributes")]
34pub trait ISurfaceDataAttributesMethods: ISurfaceDataAttributes {
35 #[doc = "`.ctor(::unity::Il2CppString, bool, bool, crate::unity_engine::rendering::fieldprecision::FieldPrecision, bool)` overload"]
36 fn ctor(
37 self,
38 display_name: impl ::core::convert::Into<::unity::Il2CppString>,
39 is_direction: impl ::core::convert::Into<bool>,
40 s_rgb_display: impl ::core::convert::Into<bool>,
41 precision: impl ::core::convert::Into<crate::unity_engine::rendering::fieldprecision::FieldPrecision>,
42 check_is_normalized: impl ::core::convert::Into<bool>,
43 ) -> () {
44 unsafe {
45 let __receiver = <SurfaceDataAttributes as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46 ::unity::il2cpp_call!((::unity::module_base()+0x33e10b0usize)as*mut u8,();
47(SurfaceDataAttributes)__receiver,(::unity::Il2CppString)::core::convert::Into::into(display_name),(bool)::core::convert::Into::into(is_direction),(bool)::core::convert::Into::into(s_rgb_display),(crate::unity_engine::rendering::fieldprecision::FieldPrecision)::core::convert::Into::into(precision),(bool)::core::convert::Into::into(check_is_normalized))
48 }
49 }
50 #[doc = "`.ctor(::unity::Array<::unity::Il2CppString>, bool, bool, bool, crate::unity_engine::rendering::fieldprecision::FieldPrecision)` overload"]
51 fn ctor_2(
52 self,
53 display_names: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>,
54 is_direction: impl ::core::convert::Into<bool>,
55 s_rgb_display: impl ::core::convert::Into<bool>,
56 check_is_normalized: impl ::core::convert::Into<bool>,
57 precision: impl ::core::convert::Into<crate::unity_engine::rendering::fieldprecision::FieldPrecision>,
58 ) -> () {
59 unsafe {
60 let __receiver = <SurfaceDataAttributes as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
61 ::unity::il2cpp_call!((::unity::module_base()+0x33e11c0usize)as*mut u8,();
62(SurfaceDataAttributes)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(display_names),(bool)::core::convert::Into::into(is_direction),(bool)::core::convert::Into::into(s_rgb_display),(bool)::core::convert::Into::into(check_is_normalized),(crate::unity_engine::rendering::fieldprecision::FieldPrecision)::core::convert::Into::into(precision))
63 }
64 }
65}
66
67#[cfg(feature = "unity_engine-rendering-surfacedataattributes")]
68impl<__T: ISurfaceDataAttributes> ISurfaceDataAttributesMethods for __T {}
69
70#[cfg(feature = "unity_engine-rendering-surfacedataattributes")]
71impl SurfaceDataAttributes {
72 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
74 }
75
76 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
78 }
79}
80
81#[cfg(feature = "unity_engine-rendering-surfacedataattributes")]
82impl SurfaceDataAttributes {
83 #[doc = "`.ctor(::unity::Il2CppString, bool, bool, crate::unity_engine::rendering::fieldprecision::FieldPrecision, bool)` — overload selector"]
84 pub fn new(
85 display_name: ::unity::Il2CppString,
86 is_direction: bool,
87 s_rgb_display: bool,
88 precision: crate::unity_engine::rendering::fieldprecision::FieldPrecision,
89 check_is_normalized: bool,
90 ) -> Self {
91 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
92 panic!(
93 "{}
94::{}
95 failed to instantiate",
96 ::core::stringify!(SurfaceDataAttributes),
97 ::core::stringify!(new),
98 )
99 });
100 <Self as ISurfaceDataAttributesMethods>::ctor(this, display_name, is_direction, s_rgb_display, precision, check_is_normalized);
101 this
102 }
103
104 #[doc = "`.ctor(::unity::Array<::unity::Il2CppString>, bool, bool, bool, crate::unity_engine::rendering::fieldprecision::FieldPrecision)` — overload selector"]
105 pub fn new_2(
106 display_names: ::unity::Array<::unity::Il2CppString>,
107 is_direction: bool,
108 s_rgb_display: bool,
109 check_is_normalized: bool,
110 precision: crate::unity_engine::rendering::fieldprecision::FieldPrecision,
111 ) -> Self {
112 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
113 panic!(
114 "{}
115::{}
116 failed to instantiate",
117 ::core::stringify!(SurfaceDataAttributes),
118 ::core::stringify!(new_2),
119 )
120 });
121 <Self as ISurfaceDataAttributesMethods>::ctor_2(this, display_names, is_direction, s_rgb_display, check_is_normalized, precision);
122 this
123 }
124}
125
126#[cfg(feature = "unity_engine-rendering-surfacedataattributes")]
127#[doc(hidden)]
128pub mod prelude {
129 pub use super::{ISurfaceDataAttributes, ISurfaceDataAttributesMethods, SurfaceDataAttributes};
130}