Skip to main content

engage/generated/unity_engine/rendering/
profilingscope.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-profilingscope-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/profilingscope/ProfilingScope.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct ProfilingScope {}
17    impl ::unity::ClassIdentity for ProfilingScope {
18        const NAME: &'static str = "ProfilingScope";
19        const NAMESPACE: &'static str = "UnityEngine.Rendering";
20
21        fn class() -> ::unity::Class {
22            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
23            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
24        }
25    }
26    impl ::unity::IlType for ProfilingScope {
27        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
28            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
29        }
30    }
31}
32
33#[cfg(feature = "unity_engine-rendering-profilingscope-types")]
34pub use __types::*;
35
36#[cfg(feature = "unity_engine-rendering-profilingscope")]
37impl ProfilingScope {
38    #[doc = "`.ctor(crate::unity_engine::rendering::commandbuffer::CommandBuffer, crate::unity_engine::rendering::profilingsampler::ProfilingSampler)` overload"]
39    pub fn ctor(
40        &mut self,
41        cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
42        sampler: impl ::core::convert::Into<crate::unity_engine::rendering::profilingsampler::ProfilingSampler>,
43    ) -> () {
44        unsafe {
45            ::unity::il2cpp_call!((::unity::module_base()+0x30ad3f0usize)as*mut u8,();
46(*mut ProfilingScope)self as*mut ProfilingScope,(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(crate::unity_engine::rendering::profilingsampler::ProfilingSampler)::core::convert::Into::into(sampler))
47        }
48    }
49
50    #[doc = "`Dispose()` overload"]
51    pub fn dispose(&mut self) -> () {
52        unsafe {
53            ::unity::il2cpp_call!((::unity::module_base()+0x30ad400usize)as*mut u8,();
54(*mut ProfilingScope)self as*mut ProfilingScope)
55        }
56    }
57}
58
59#[cfg(feature = "unity_engine-rendering-profilingscope")]
60impl ProfilingScope {
61    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
62        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
63    }
64
65    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
66        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
67    }
68}
69
70#[cfg(feature = "unity_engine-rendering-profilingscope")]
71#[doc(hidden)]
72pub mod prelude {
73    pub use super::ProfilingScope;
74    #[cfg(feature = "system-object")]
75    pub use crate::system::object::IObjectMethods;
76    #[cfg(feature = "system-valuetype")]
77    pub use crate::system::valuetype::IValueTypeMethods;
78    pub use crate::system::{object::IObject, valuetype::IValueType};
79}