Skip to main content

engage/generated/unity_engine/rendering/
packingattribute.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-packingattribute-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/packingattribute/PackingAttribute.md"))]
10    #[::unity::class(namespace = "UnityEngine.Rendering", name = "PackingAttribute")]
11    pub struct PackingAttribute {
12        #[offset(16)]
13        #[rename(name = "displayNames")]
14        pub display_names: ::unity::Array<::unity::Il2CppString>,
15        #[offset(24)]
16        #[rename(name = "range")]
17        pub range: ::unity::Array<f32>,
18        #[offset(32)]
19        #[rename(name = "packingScheme")]
20        pub packing_scheme: crate::unity_engine::rendering::fieldpacking::FieldPacking,
21        #[offset(36)]
22        #[rename(name = "offsetInSource")]
23        pub offset_in_source: i32,
24        #[offset(40)]
25        #[rename(name = "sizeInBits")]
26        pub size_in_bits: i32,
27        #[offset(44)]
28        #[rename(name = "isDirection")]
29        pub is_direction: bool,
30        #[offset(45)]
31        #[rename(name = "sRGBDisplay")]
32        pub s_rgb_display: bool,
33        #[offset(46)]
34        #[rename(name = "checkIsNormalized")]
35        pub check_is_normalized: bool,
36    }
37}
38
39#[cfg(feature = "unity_engine-rendering-packingattribute-types")]
40pub use __types::*;
41
42#[cfg(feature = "unity_engine-rendering-packingattribute")]
43pub trait IPackingAttributeMethods: IPackingAttribute {
44    #[doc = "`.ctor(::unity::Array<::unity::Il2CppString>, crate::unity_engine::rendering::fieldpacking::FieldPacking, i32, i32, f32, f32, bool, bool, bool)` overload"]
45    fn ctor(
46        self,
47        display_names: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>,
48        packing_scheme: impl ::core::convert::Into<crate::unity_engine::rendering::fieldpacking::FieldPacking>,
49        bit_size: impl ::core::convert::Into<i32>,
50        offset_in_source: impl ::core::convert::Into<i32>,
51        min_value: impl ::core::convert::Into<f32>,
52        max_value: impl ::core::convert::Into<f32>,
53        is_direction: impl ::core::convert::Into<bool>,
54        s_rgb_display: impl ::core::convert::Into<bool>,
55        check_is_normalized: impl ::core::convert::Into<bool>,
56    ) -> () {
57        unsafe {
58            let __receiver = <PackingAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
59            ::unity::il2cpp_call!((::unity::module_base()+0x30ac880usize)as*mut u8,();
60(PackingAttribute)__receiver,(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(display_names),(crate::unity_engine::rendering::fieldpacking::FieldPacking)::core::convert::Into::into(packing_scheme),(i32)::core::convert::Into::into(bit_size),(i32)::core::convert::Into::into(offset_in_source),(f32)::core::convert::Into::into(min_value),(f32)::core::convert::Into::into(max_value),(bool)::core::convert::Into::into(is_direction),(bool)::core::convert::Into::into(s_rgb_display),(bool)::core::convert::Into::into(check_is_normalized))
61        }
62    }
63    #[doc = "`.ctor(::unity::Il2CppString, crate::unity_engine::rendering::fieldpacking::FieldPacking, i32, i32, f32, f32, bool, bool, bool)` overload"]
64    fn ctor_2(
65        self,
66        display_name: impl ::core::convert::Into<::unity::Il2CppString>,
67        packing_scheme: impl ::core::convert::Into<crate::unity_engine::rendering::fieldpacking::FieldPacking>,
68        bit_size: impl ::core::convert::Into<i32>,
69        offset_in_source: impl ::core::convert::Into<i32>,
70        min_value: impl ::core::convert::Into<f32>,
71        max_value: impl ::core::convert::Into<f32>,
72        is_direction: impl ::core::convert::Into<bool>,
73        s_rgb_display: impl ::core::convert::Into<bool>,
74        check_is_normalized: impl ::core::convert::Into<bool>,
75    ) -> () {
76        unsafe {
77            let __receiver = <PackingAttribute as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
78            ::unity::il2cpp_call!((::unity::module_base()+0x30ac990usize)as*mut u8,();
79(PackingAttribute)__receiver,(::unity::Il2CppString)::core::convert::Into::into(display_name),(crate::unity_engine::rendering::fieldpacking::FieldPacking)::core::convert::Into::into(packing_scheme),(i32)::core::convert::Into::into(bit_size),(i32)::core::convert::Into::into(offset_in_source),(f32)::core::convert::Into::into(min_value),(f32)::core::convert::Into::into(max_value),(bool)::core::convert::Into::into(is_direction),(bool)::core::convert::Into::into(s_rgb_display),(bool)::core::convert::Into::into(check_is_normalized))
80        }
81    }
82}
83
84#[cfg(feature = "unity_engine-rendering-packingattribute")]
85impl<__T: IPackingAttribute> IPackingAttributeMethods for __T {}
86
87#[cfg(feature = "unity_engine-rendering-packingattribute")]
88impl PackingAttribute {
89    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
90        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
91    }
92
93    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
94        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
95    }
96}
97
98#[cfg(feature = "unity_engine-rendering-packingattribute")]
99impl PackingAttribute {
100    #[doc = "`.ctor(::unity::Array<::unity::Il2CppString>, crate::unity_engine::rendering::fieldpacking::FieldPacking, i32, i32, f32, f32, bool, bool, bool)` — overload selector"]
101    pub fn new(
102        display_names: ::unity::Array<::unity::Il2CppString>,
103        packing_scheme: crate::unity_engine::rendering::fieldpacking::FieldPacking,
104        bit_size: i32,
105        offset_in_source: i32,
106        min_value: f32,
107        max_value: f32,
108        is_direction: bool,
109        s_rgb_display: bool,
110        check_is_normalized: bool,
111    ) -> Self {
112        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
113            panic!(
114                "{}
115::{}
116 failed to instantiate",
117                ::core::stringify!(PackingAttribute),
118                ::core::stringify!(new),
119            )
120        });
121        <Self as IPackingAttributeMethods>::ctor(
122            this,
123            display_names,
124            packing_scheme,
125            bit_size,
126            offset_in_source,
127            min_value,
128            max_value,
129            is_direction,
130            s_rgb_display,
131            check_is_normalized,
132        );
133        this
134    }
135
136    #[doc = "`.ctor(::unity::Il2CppString, crate::unity_engine::rendering::fieldpacking::FieldPacking, i32, i32, f32, f32, bool, bool, bool)` — overload selector"]
137    pub fn new_2(
138        display_name: ::unity::Il2CppString,
139        packing_scheme: crate::unity_engine::rendering::fieldpacking::FieldPacking,
140        bit_size: i32,
141        offset_in_source: i32,
142        min_value: f32,
143        max_value: f32,
144        is_direction: bool,
145        s_rgb_display: bool,
146        check_is_normalized: bool,
147    ) -> Self {
148        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
149            panic!(
150                "{}
151::{}
152 failed to instantiate",
153                ::core::stringify!(PackingAttribute),
154                ::core::stringify!(new_2),
155            )
156        });
157        <Self as IPackingAttributeMethods>::ctor_2(
158            this,
159            display_name,
160            packing_scheme,
161            bit_size,
162            offset_in_source,
163            min_value,
164            max_value,
165            is_direction,
166            s_rgb_display,
167            check_is_normalized,
168        );
169        this
170    }
171}
172
173#[cfg(feature = "unity_engine-rendering-packingattribute")]
174#[doc(hidden)]
175pub mod prelude {
176    pub use super::{IPackingAttribute, IPackingAttributeMethods, PackingAttribute};
177}