Skip to main content

engage/generated/unity_engine/rendering/
shaderkeyword.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-shaderkeyword-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/shaderkeyword/ShaderKeyword.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct ShaderKeyword {
17        pub m_keyword_index: i32,
18    }
19    impl ::unity::ClassIdentity for ShaderKeyword {
20        const NAME: &'static str = "ShaderKeyword";
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 ShaderKeyword {
29        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
30            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
31        }
32    }
33}
34
35#[cfg(feature = "unity_engine-rendering-shaderkeyword-types")]
36pub use __types::*;
37
38#[cfg(feature = "unity_engine-rendering-shaderkeyword")]
39impl ShaderKeyword {
40    #[doc = "`GetGlobalKeywordIndex(::unity::Il2CppString)` overload"]
41    pub fn get_global_keyword_index(keyword: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
42        unsafe {
43            ::unity::il2cpp_call!((::unity::module_base()+0x2f92dc0usize)as*mut u8,i32;
44(::unity::Il2CppString)::core::convert::Into::into(keyword))
45        }
46    }
47}
48
49#[cfg(feature = "unity_engine-rendering-shaderkeyword")]
50impl ShaderKeyword {
51    #[doc = "`.ctor(::unity::Il2CppString)` overload"]
52    pub fn ctor(&mut self, keyword_name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
53        unsafe {
54            ::unity::il2cpp_call!((::unity::module_base()+0x2f92e10usize)as*mut u8,();
55(*mut ShaderKeyword)self as*mut ShaderKeyword,(::unity::Il2CppString)::core::convert::Into::into(keyword_name))
56        }
57    }
58}
59
60#[cfg(feature = "unity_engine-rendering-shaderkeyword")]
61impl ShaderKeyword {
62    pub fn get_global_keyword_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
63        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
64    }
65
66    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
67        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
68    }
69}
70
71#[cfg(feature = "unity_engine-rendering-shaderkeyword")]
72#[doc(hidden)]
73pub mod prelude {
74    pub use super::ShaderKeyword;
75    #[cfg(feature = "system-object")]
76    pub use crate::system::object::IObjectMethods;
77    #[cfg(feature = "system-valuetype")]
78    pub use crate::system::valuetype::IValueTypeMethods;
79    pub use crate::system::{object::IObject, valuetype::IValueType};
80}