Skip to main content

engage/generated/unity_engine/rendering/universal/
shaderutils.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-universal-shaderutils-types")]
4mod __types {
5    #[allow(unused_imports)] use ::unity::prelude::*;
6
7    use super::*;
8    use crate::system::object::{IObject, Object};
9
10    #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/shaderutils/ShaderUtils.md"))]
11    #[::unity::class(namespace = "UnityEngine.Rendering.Universal", name = "ShaderUtils")]
12    #[parent(crate::system::object::Object)]
13    pub struct ShaderUtils {
14        #[static_field]
15        #[rename(name = "s_ShaderPaths")]
16        pub s_shader_paths: ::unity::Array<::unity::Il2CppString>,
17    }
18}
19
20#[cfg(feature = "unity_engine-rendering-universal-shaderutils-types")]
21pub use __types::*;
22
23#[cfg(feature = "unity_engine-rendering-universal-shaderutils")]
24impl ShaderUtils {
25    #[doc = "`GetShaderPath(crate::unity_engine::rendering::universal::shaderpathid::ShaderPathID)` overload"]
26    pub fn get_shader_path(
27        id: impl ::core::convert::Into<crate::unity_engine::rendering::universal::shaderpathid::ShaderPathID>,
28    ) -> ::unity::Il2CppString {
29        unsafe {
30            ::unity::il2cpp_call!((::unity::module_base()+0x2ed7c50usize)as*mut u8, ::unity::Il2CppString;
31(crate::unity_engine::rendering::universal::shaderpathid::ShaderPathID)::core::convert::Into::into(id))
32        }
33    }
34
35    #[doc = "`GetEnumFromPath(::unity::Il2CppString)` overload"]
36    pub fn get_enum_from_path(
37        path: impl ::core::convert::Into<::unity::Il2CppString>,
38    ) -> crate::unity_engine::rendering::universal::shaderpathid::ShaderPathID {
39        unsafe {
40            ::unity::il2cpp_call!((::unity::module_base()+0x2ed7f80usize)as*mut u8,crate::unity_engine::rendering::universal::shaderpathid::ShaderPathID;
41(::unity::Il2CppString)::core::convert::Into::into(path))
42        }
43    }
44
45    #[doc = "`IsLWShader(crate::unity_engine::shader::Shader)` overload"]
46    pub fn is_lw_shader(shader: impl ::core::convert::Into<crate::unity_engine::shader::Shader>) -> bool {
47        unsafe {
48            ::unity::il2cpp_call!((::unity::module_base()+0x2ed80b0usize)as*mut u8,bool;
49(crate::unity_engine::shader::Shader)::core::convert::Into::into(shader))
50        }
51    }
52
53    #[doc = "`.cctor()` overload"]
54    pub fn cctor() -> () {
55        unsafe {
56            ::unity::il2cpp_call!((::unity::module_base()+0x2ed8150usize)as*mut u8,();
57            )
58        }
59    }
60}
61
62#[cfg(feature = "unity_engine-rendering-universal-shaderutils")]
63impl ShaderUtils {
64    pub fn get_shader_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
65        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
66    }
67
68    pub fn get_enum_from_path_method_info() -> &'static ::unity::il2cpp::MethodInfo {
69        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
70    }
71
72    pub fn is_lw_shader_method_info() -> &'static ::unity::il2cpp::MethodInfo {
73        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
74    }
75
76    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
77        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
78    }
79}
80
81#[cfg(feature = "unity_engine-rendering-universal-shaderutils")]
82#[doc(hidden)]
83pub mod prelude {
84    pub use super::{IShaderUtils, ShaderUtils};
85    pub use crate::system::object::IObject;
86    #[cfg(feature = "system-object")]
87    pub use crate::system::object::IObjectMethods;
88}