Skip to main content

engage/generated/unity_engine/rendering/
vertexattributedescriptor.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-vertexattributedescriptor-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/vertexattributedescriptor/VertexAttributeDescriptor.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct VertexAttributeDescriptor {}
17    impl ::unity::ClassIdentity for VertexAttributeDescriptor {
18        const NAME: &'static str = "VertexAttributeDescriptor";
19        const NAMESPACE: &'static str = "UnityEngine.Rendering";
20
21        fn class() -> ::unity::Class {
22            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
23            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
24        }
25    }
26    impl ::unity::IlType for VertexAttributeDescriptor {
27        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
28            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
29        }
30    }
31}
32
33#[cfg(feature = "unity_engine-rendering-vertexattributedescriptor-types")]
34pub use __types::*;
35
36#[cfg(feature = "unity_engine-rendering-vertexattributedescriptor")]
37impl VertexAttributeDescriptor {
38    #[doc = "`get_attribute()` overload"]
39    pub fn get_attribute(&mut self) -> crate::unity_engine::rendering::vertexattribute::VertexAttribute {
40        unsafe {
41            ::unity::il2cpp_call!((::unity::module_base()+0x3799ff0usize)as*mut u8,crate::unity_engine::rendering::vertexattribute::VertexAttribute;
42(*mut VertexAttributeDescriptor)self as*mut VertexAttributeDescriptor)
43        }
44    }
45
46    #[doc = "`set_attribute(crate::unity_engine::rendering::vertexattribute::VertexAttribute)` overload"]
47    pub fn set_attribute(&mut self, value: impl ::core::convert::Into<crate::unity_engine::rendering::vertexattribute::VertexAttribute>) -> () {
48        unsafe {
49            ::unity::il2cpp_call!((::unity::module_base()+0x379a000usize)as*mut u8,();
50(*mut VertexAttributeDescriptor)self as*mut VertexAttributeDescriptor,(crate::unity_engine::rendering::vertexattribute::VertexAttribute)::core::convert::Into::into(value))
51        }
52    }
53
54    #[doc = "`get_format()` overload"]
55    pub fn get_format(&mut self) -> crate::unity_engine::rendering::vertexattributeformat::VertexAttributeFormat {
56        unsafe {
57            ::unity::il2cpp_call!((::unity::module_base()+0x379a010usize)as*mut u8,crate::unity_engine::rendering::vertexattributeformat::VertexAttributeFormat;
58(*mut VertexAttributeDescriptor)self as*mut VertexAttributeDescriptor)
59        }
60    }
61
62    #[doc = "`set_format(crate::unity_engine::rendering::vertexattributeformat::VertexAttributeFormat)` overload"]
63    pub fn set_format(
64        &mut self,
65        value: impl ::core::convert::Into<crate::unity_engine::rendering::vertexattributeformat::VertexAttributeFormat>,
66    ) -> () {
67        unsafe {
68            ::unity::il2cpp_call!((::unity::module_base()+0x379a020usize)as*mut u8,();
69(*mut VertexAttributeDescriptor)self as*mut VertexAttributeDescriptor,(crate::unity_engine::rendering::vertexattributeformat::VertexAttributeFormat)::core::convert::Into::into(value))
70        }
71    }
72
73    #[doc = "`get_dimension()` overload"]
74    pub fn get_dimension(&mut self) -> i32 {
75        unsafe {
76            ::unity::il2cpp_call!((::unity::module_base()+0x379a030usize)as*mut u8,i32;
77(*mut VertexAttributeDescriptor)self as*mut VertexAttributeDescriptor)
78        }
79    }
80
81    #[doc = "`set_dimension(i32)` overload"]
82    pub fn set_dimension(&mut self, value: impl ::core::convert::Into<i32>) -> () {
83        unsafe {
84            ::unity::il2cpp_call!((::unity::module_base()+0x379a040usize)as*mut u8,();
85(*mut VertexAttributeDescriptor)self as*mut VertexAttributeDescriptor,(i32)::core::convert::Into::into(value))
86        }
87    }
88
89    #[doc = "`get_stream()` overload"]
90    pub fn get_stream(&mut self) -> i32 {
91        unsafe {
92            ::unity::il2cpp_call!((::unity::module_base()+0x379a050usize)as*mut u8,i32;
93(*mut VertexAttributeDescriptor)self as*mut VertexAttributeDescriptor)
94        }
95    }
96
97    #[doc = "`set_stream(i32)` overload"]
98    pub fn set_stream(&mut self, value: impl ::core::convert::Into<i32>) -> () {
99        unsafe {
100            ::unity::il2cpp_call!((::unity::module_base()+0x379a060usize)as*mut u8,();
101(*mut VertexAttributeDescriptor)self as*mut VertexAttributeDescriptor,(i32)::core::convert::Into::into(value))
102        }
103    }
104
105    #[doc = "`.ctor(crate::unity_engine::rendering::vertexattribute::VertexAttribute, crate::unity_engine::rendering::vertexattributeformat::VertexAttributeFormat, i32, i32)` overload"]
106    pub fn ctor(
107        &mut self,
108        attribute: impl ::core::convert::Into<crate::unity_engine::rendering::vertexattribute::VertexAttribute>,
109        format: impl ::core::convert::Into<crate::unity_engine::rendering::vertexattributeformat::VertexAttributeFormat>,
110        dimension: impl ::core::convert::Into<i32>,
111        stream: impl ::core::convert::Into<i32>,
112    ) -> () {
113        unsafe {
114            ::unity::il2cpp_call!((::unity::module_base()+0x379a070usize)as*mut u8,();
115(*mut VertexAttributeDescriptor)self as*mut VertexAttributeDescriptor,(crate::unity_engine::rendering::vertexattribute::VertexAttribute)::core::convert::Into::into(attribute),(crate::unity_engine::rendering::vertexattributeformat::VertexAttributeFormat)::core::convert::Into::into(format),(i32)::core::convert::Into::into(dimension),(i32)::core::convert::Into::into(stream))
116        }
117    }
118
119    #[doc = "`ToString()` overload"]
120    pub fn to_string(&mut self) -> ::unity::Il2CppString {
121        unsafe {
122            ::unity::il2cpp_call!((::unity::module_base()+0x379a080usize)as*mut u8, ::unity::Il2CppString;
123(*mut VertexAttributeDescriptor)self as*mut VertexAttributeDescriptor)
124        }
125    }
126
127    #[doc = "`GetHashCode()` overload"]
128    pub fn get_hash_code(&mut self) -> i32 {
129        unsafe {
130            ::unity::il2cpp_call!((::unity::module_base()+0x379a290usize)as*mut u8,i32;
131(*mut VertexAttributeDescriptor)self as*mut VertexAttributeDescriptor)
132        }
133    }
134
135    #[doc = "`Equals(crate::system::object::Object)` overload"]
136    pub fn equals(&mut self, other: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
137        unsafe {
138            ::unity::il2cpp_call!((::unity::module_base()+0x379a2c0usize)as*mut u8,bool;
139(*mut VertexAttributeDescriptor)self as*mut VertexAttributeDescriptor,(crate::system::object::Object)::core::convert::Into::into(other))
140        }
141    }
142
143    #[doc = "`Equals(crate::unity_engine::rendering::vertexattributedescriptor::VertexAttributeDescriptor)` overload"]
144    pub fn equals_2(
145        &mut self,
146        other: impl ::core::convert::Into<crate::unity_engine::rendering::vertexattributedescriptor::VertexAttributeDescriptor>,
147    ) -> bool {
148        unsafe {
149            ::unity::il2cpp_call!((::unity::module_base()+0x379a380usize)as*mut u8,bool;
150(*mut VertexAttributeDescriptor)self as*mut VertexAttributeDescriptor,(crate::unity_engine::rendering::vertexattributedescriptor::VertexAttributeDescriptor)::core::convert::Into::into(other))
151        }
152    }
153}
154
155#[cfg(feature = "unity_engine-rendering-vertexattributedescriptor")]
156impl VertexAttributeDescriptor {
157    pub fn get_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
158        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
159    }
160
161    pub fn set_attribute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
162        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
163    }
164
165    pub fn get_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
166        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
167    }
168
169    pub fn set_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
170        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
171    }
172
173    pub fn get_dimension_method_info() -> &'static ::unity::il2cpp::MethodInfo {
174        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
175    }
176
177    pub fn set_dimension_method_info() -> &'static ::unity::il2cpp::MethodInfo {
178        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
179    }
180
181    pub fn get_stream_method_info() -> &'static ::unity::il2cpp::MethodInfo {
182        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
183    }
184
185    pub fn set_stream_method_info() -> &'static ::unity::il2cpp::MethodInfo {
186        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
187    }
188
189    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
190        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
191    }
192
193    pub fn to_string_method_info() -> &'static ::unity::il2cpp::MethodInfo {
194        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
195    }
196
197    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
198        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
199    }
200
201    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
202        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
203    }
204
205    pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
206        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
207    }
208}
209
210#[cfg(feature = "unity_engine-rendering-vertexattributedescriptor")]
211#[doc(hidden)]
212pub mod prelude {
213    pub use super::VertexAttributeDescriptor;
214    #[cfg(feature = "system-object")]
215    pub use crate::system::object::IObjectMethods;
216    #[cfg(feature = "system-valuetype")]
217    pub use crate::system::valuetype::IValueTypeMethods;
218    pub use crate::system::{object::IObject, valuetype::IValueType};
219}