engage/generated/unity_engine/
computeshader.rs1#[cfg(feature = "unity_engine-computeshader-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::{
9 system::object::{IObject, Object},
10 unity_engine::object_2::{IObject_2, Object_2},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/computeshader/ComputeShader.md"))]
14 #[::unity::class(namespace = "UnityEngine", name = "ComputeShader")]
15 #[parent(crate::unity_engine::object_2::Object_2)]
16 pub struct ComputeShader {}
17}
18
19#[cfg(feature = "unity_engine-computeshader-types")]
20pub use __types::*;
21
22#[cfg(feature = "unity_engine-computeshader")]
23pub trait IComputeShaderMethods: IComputeShader {
24 #[doc = "`FindKernel(::unity::Il2CppString)` overload"]
25 fn find_kernel(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> i32 {
26 unsafe {
27 let __receiver = <ComputeShader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
28 ::unity::il2cpp_call!((::unity::module_base()+0x2c47190usize)as*mut u8,i32;
29(ComputeShader)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
30 }
31 }
32 #[doc = "`EnableKeyword(::unity::Il2CppString)` overload"]
33 fn enable_keyword(self, keyword: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
34 unsafe {
35 let __receiver = <ComputeShader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
36 ::unity::il2cpp_call!((::unity::module_base()+0x2c471e0usize)as*mut u8,();
37(ComputeShader)__receiver,(::unity::Il2CppString)::core::convert::Into::into(keyword))
38 }
39 }
40 #[doc = "`DisableKeyword(::unity::Il2CppString)` overload"]
41 fn disable_keyword(self, keyword: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
42 unsafe {
43 let __receiver = <ComputeShader as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
44 ::unity::il2cpp_call!((::unity::module_base()+0x2c47230usize)as*mut u8,();
45(ComputeShader)__receiver,(::unity::Il2CppString)::core::convert::Into::into(keyword))
46 }
47 }
48}
49
50#[cfg(feature = "unity_engine-computeshader")]
51impl<__T: IComputeShader> IComputeShaderMethods for __T {}
52
53#[cfg(feature = "unity_engine-computeshader")]
54impl ComputeShader {
55 pub fn find_kernel_method_info() -> &'static ::unity::il2cpp::MethodInfo {
56 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
57 }
58
59 pub fn enable_keyword_method_info() -> &'static ::unity::il2cpp::MethodInfo {
60 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
61 }
62
63 pub fn disable_keyword_method_info() -> &'static ::unity::il2cpp::MethodInfo {
64 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
65 }
66}
67
68#[cfg(feature = "unity_engine-computeshader")]
69#[doc(hidden)]
70pub mod prelude {
71 pub use super::{ComputeShader, IComputeShader, IComputeShaderMethods};
72 #[cfg(feature = "system-object")]
73 pub use crate::system::object::IObjectMethods;
74 #[cfg(feature = "unity_engine-object_2")]
75 pub use crate::unity_engine::object_2::IObject_2Methods;
76 pub use crate::{system::object::IObject, unity_engine::object_2::IObject_2};
77}