Skip to main content

engage/generated/unity_engine/rendering/
profilingsample.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-profilingsample-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/profilingsample/ProfilingSample.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct ProfilingSample {
17        pub m_cmd: crate::unity_engine::rendering::commandbuffer::CommandBuffer,
18        pub m_name: ::unity::Il2CppString,
19        pub m_disposed: bool,
20        pub m_sampler: crate::unity_engine::profiling::customsampler::CustomSampler,
21    }
22    impl ::unity::ClassIdentity for ProfilingSample {
23        const NAME: &'static str = "ProfilingSample";
24        const NAMESPACE: &'static str = "UnityEngine.Rendering";
25
26        fn class() -> ::unity::Class {
27            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
28            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
29        }
30    }
31    impl ::unity::IlType for ProfilingSample {
32        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
33            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
34        }
35    }
36}
37
38#[cfg(feature = "unity_engine-rendering-profilingsample-types")]
39pub use __types::*;
40
41#[cfg(feature = "unity_engine-rendering-profilingsample")]
42impl ProfilingSample {
43    #[doc = "`.ctor(crate::unity_engine::rendering::commandbuffer::CommandBuffer, ::unity::Il2CppString, crate::unity_engine::profiling::customsampler::CustomSampler)` overload"]
44    pub fn ctor(
45        &mut self,
46        cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
47        name: impl ::core::convert::Into<::unity::Il2CppString>,
48        sampler: impl ::core::convert::Into<crate::unity_engine::profiling::customsampler::CustomSampler>,
49    ) -> () {
50        unsafe {
51            ::unity::il2cpp_call!((::unity::module_base()+0x30acb60usize)as*mut u8,();
52(*mut ProfilingSample)self as*mut ProfilingSample,(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(::unity::Il2CppString)::core::convert::Into::into(name),(crate::unity_engine::profiling::customsampler::CustomSampler)::core::convert::Into::into(sampler))
53        }
54    }
55
56    #[doc = "`.ctor(crate::unity_engine::rendering::commandbuffer::CommandBuffer, ::unity::Il2CppString, crate::system::object::Object)` overload"]
57    pub fn ctor_2(
58        &mut self,
59        cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
60        format: impl ::core::convert::Into<::unity::Il2CppString>,
61        arg: impl ::core::convert::Into<crate::system::object::Object>,
62    ) -> () {
63        unsafe {
64            ::unity::il2cpp_call!((::unity::module_base()+0x30acc20usize)as*mut u8,();
65(*mut ProfilingSample)self as*mut ProfilingSample,(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(::unity::Il2CppString)::core::convert::Into::into(format),(crate::system::object::Object)::core::convert::Into::into(arg))
66        }
67    }
68
69    #[doc = "`.ctor(crate::unity_engine::rendering::commandbuffer::CommandBuffer, ::unity::Il2CppString, ::unity::Array<crate::system::object::Object>)` overload"]
70    pub fn ctor_3(
71        &mut self,
72        cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
73        format: impl ::core::convert::Into<::unity::Il2CppString>,
74        args: impl ::core::convert::Into<::unity::Array<crate::system::object::Object>>,
75    ) -> () {
76        unsafe {
77            ::unity::il2cpp_call!((::unity::module_base()+0x30acce0usize)as*mut u8,();
78(*mut ProfilingSample)self as*mut ProfilingSample,(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(::unity::Il2CppString)::core::convert::Into::into(format),(::unity::Array<crate::system::object::Object>)::core::convert::Into::into(args))
79        }
80    }
81
82    #[doc = "`Dispose()` overload"]
83    pub fn dispose(&mut self) -> () {
84        unsafe {
85            ::unity::il2cpp_call!((::unity::module_base()+0x30acda0usize)as*mut u8,();
86(*mut ProfilingSample)self as*mut ProfilingSample)
87        }
88    }
89
90    #[doc = "`Dispose(bool)` overload"]
91    pub fn dispose_2(&mut self, disposing: impl ::core::convert::Into<bool>) -> () {
92        unsafe {
93            ::unity::il2cpp_call!((::unity::module_base()+0x30ace30usize)as*mut u8,();
94(*mut ProfilingSample)self as*mut ProfilingSample,(bool)::core::convert::Into::into(disposing))
95        }
96    }
97}
98
99#[cfg(feature = "unity_engine-rendering-profilingsample")]
100impl ProfilingSample {
101    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
102        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
103    }
104
105    pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
106        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
107    }
108
109    pub fn ctor_3_method_info() -> &'static ::unity::il2cpp::MethodInfo {
110        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
111    }
112
113    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
115    }
116
117    pub fn dispose_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
119    }
120}
121
122#[cfg(feature = "unity_engine-rendering-profilingsample")]
123#[doc(hidden)]
124pub mod prelude {
125    pub use super::ProfilingSample;
126    #[cfg(feature = "system-object")]
127    pub use crate::system::object::IObjectMethods;
128    #[cfg(feature = "system-valuetype")]
129    pub use crate::system::valuetype::IValueTypeMethods;
130    pub use crate::system::{object::IObject, valuetype::IValueType};
131}