Skip to main content

engage/generated/unity_engine/experimental/rendering/render_graph_module/
rendergraphprofilingscope.rs

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