Skip to main content

engage/generated/unity_engine/rendering/
shadertagid.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-shadertagid-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/shadertagid/ShaderTagId.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct ShaderTagId {
17        pub m_id: i32,
18    }
19    impl ::unity::ClassIdentity for ShaderTagId {
20        const NAME: &'static str = "ShaderTagId";
21        const NAMESPACE: &'static str = "UnityEngine.Rendering";
22
23        fn class() -> ::unity::Class {
24            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
25            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
26        }
27    }
28    impl ::unity::IlType for ShaderTagId {
29        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
30            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
31        }
32    }
33    impl ShaderTagId {
34        #[inline]
35        pub fn none() -> crate::unity_engine::rendering::shadertagid::ShaderTagId {
36            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
37            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "none");
38            ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
39        }
40
41        #[inline]
42        pub fn set_none(value: crate::unity_engine::rendering::shadertagid::ShaderTagId) {
43            static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
44            let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "none");
45            ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
46        }
47    }
48}
49
50#[cfg(feature = "unity_engine-rendering-shadertagid-types")]
51pub use __types::*;
52
53#[cfg(feature = "unity_engine-rendering-shadertagid")]
54impl ShaderTagId {
55    #[doc = "`op_Equality(crate::unity_engine::rendering::shadertagid::ShaderTagId, crate::unity_engine::rendering::shadertagid::ShaderTagId)` overload"]
56    pub fn op_equality(
57        tag1: impl ::core::convert::Into<crate::unity_engine::rendering::shadertagid::ShaderTagId>,
58        tag2: impl ::core::convert::Into<crate::unity_engine::rendering::shadertagid::ShaderTagId>,
59    ) -> bool {
60        unsafe {
61            ::unity::il2cpp_call!((::unity::module_base()+0x2f92f40usize)as*mut u8,bool;
62(crate::unity_engine::rendering::shadertagid::ShaderTagId)::core::convert::Into::into(tag1),(crate::unity_engine::rendering::shadertagid::ShaderTagId)::core::convert::Into::into(tag2))
63        }
64    }
65
66    #[doc = "`op_Inequality(crate::unity_engine::rendering::shadertagid::ShaderTagId, crate::unity_engine::rendering::shadertagid::ShaderTagId)` overload"]
67    pub fn op_inequality(
68        tag1: impl ::core::convert::Into<crate::unity_engine::rendering::shadertagid::ShaderTagId>,
69        tag2: impl ::core::convert::Into<crate::unity_engine::rendering::shadertagid::ShaderTagId>,
70    ) -> bool {
71        unsafe {
72            ::unity::il2cpp_call!((::unity::module_base()+0x2f92f50usize)as*mut u8,bool;
73(crate::unity_engine::rendering::shadertagid::ShaderTagId)::core::convert::Into::into(tag1),(crate::unity_engine::rendering::shadertagid::ShaderTagId)::core::convert::Into::into(tag2))
74        }
75    }
76
77    #[doc = "`.cctor()` overload"]
78    pub fn cctor() -> () {
79        unsafe {
80            ::unity::il2cpp_call!((::unity::module_base()+0x2f92fc0usize)as*mut u8,();
81            )
82        }
83    }
84}
85
86#[cfg(feature = "unity_engine-rendering-shadertagid")]
87impl ShaderTagId {
88    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
89    pub fn ctor(&mut self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
90        unsafe {
91            ::unity::il2cpp_call!((::unity::module_base()+0x2f8e420usize)as*mut u8,();
92(*mut ShaderTagId)self as*mut ShaderTagId,(::unity::Il2CppString)::core::convert::Into::into(name))
93        }
94    }
95
96    #[doc = "`get_id()` overload"]
97    pub fn get_id(&mut self) -> i32 {
98        unsafe {
99            ::unity::il2cpp_call!((::unity::module_base()+0x2f8f270usize)as*mut u8,i32;
100(*mut ShaderTagId)self as*mut ShaderTagId)
101        }
102    }
103
104    #[doc = "`set_id(i32)` overload"]
105    pub fn set_id(&mut self, value: impl ::core::convert::Into<i32>) -> () {
106        unsafe {
107            ::unity::il2cpp_call!((::unity::module_base()+0x2f8f2e0usize)as*mut u8,();
108(*mut ShaderTagId)self as*mut ShaderTagId,(i32)::core::convert::Into::into(value))
109        }
110    }
111
112    #[doc = "`Equals(crate::system::object::Object)` overload"]
113    pub fn equals(&mut self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
114        unsafe {
115            ::unity::il2cpp_call!((::unity::module_base()+0x2f92e70usize)as*mut u8,bool;
116(*mut ShaderTagId)self as*mut ShaderTagId,(crate::system::object::Object)::core::convert::Into::into(obj))
117        }
118    }
119
120    #[doc = "`Equals(crate::unity_engine::rendering::shadertagid::ShaderTagId)` overload"]
121    pub fn equals_2(&mut self, other: impl ::core::convert::Into<crate::unity_engine::rendering::shadertagid::ShaderTagId>) -> bool {
122        unsafe {
123            ::unity::il2cpp_call!((::unity::module_base()+0x2f92f00usize)as*mut u8,bool;
124(*mut ShaderTagId)self as*mut ShaderTagId,(crate::unity_engine::rendering::shadertagid::ShaderTagId)::core::convert::Into::into(other))
125        }
126    }
127
128    #[doc = "`GetHashCode()` overload"]
129    pub fn get_hash_code(&mut self) -> i32 {
130        unsafe {
131            ::unity::il2cpp_call!((::unity::module_base()+0x2f92f10usize)as*mut u8,i32;
132(*mut ShaderTagId)self as*mut ShaderTagId)
133        }
134    }
135}
136
137#[cfg(feature = "unity_engine-rendering-shadertagid")]
138impl ShaderTagId {
139    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
141    }
142
143    pub fn get_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
145    }
146
147    pub fn set_id_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
149    }
150
151    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
152        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
153    }
154
155    pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
156        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
157    }
158
159    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
160        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
161    }
162
163    pub fn op_equality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
164        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
165    }
166
167    pub fn op_inequality_method_info() -> &'static ::unity::il2cpp::MethodInfo {
168        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
169    }
170
171    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
172        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
173    }
174}
175
176#[cfg(feature = "unity_engine-rendering-shadertagid")]
177#[doc(hidden)]
178pub mod prelude {
179    pub use super::ShaderTagId;
180    #[cfg(feature = "system-object")]
181    pub use crate::system::object::IObjectMethods;
182    #[cfg(feature = "system-valuetype")]
183    pub use crate::system::valuetype::IValueTypeMethods;
184    pub use crate::system::{object::IObject, valuetype::IValueType};
185}