engage/generated/unity_engine/experimental/rendering/render_graph_module/
rendergraphdebugparams.rs1#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphdebugparams-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/experimental/rendering/render_graph_module/rendergraphdebugparams/RenderGraphDebugParams.md"))]
11 #[::unity::class(namespace = "UnityEngine.Experimental.Rendering.RenderGraphModule", name = "RenderGraphDebugParams")]
12 #[parent(crate::system::object::Object)]
13 pub struct RenderGraphDebugParams {
14 #[offset(16)]
15 #[rename(name = "clearRenderTargetsAtCreation")]
16 pub clear_render_targets_at_creation: bool,
17 #[offset(17)]
18 #[rename(name = "clearRenderTargetsAtRelease")]
19 pub clear_render_targets_at_release: bool,
20 #[offset(18)]
21 #[rename(name = "disablePassCulling")]
22 pub disable_pass_culling: bool,
23 #[offset(19)]
24 #[rename(name = "immediateMode")]
25 pub immediate_mode: bool,
26 #[offset(20)]
27 #[rename(name = "logFrameInformation")]
28 pub log_frame_information: bool,
29 #[offset(21)]
30 #[rename(name = "logResources")]
31 pub log_resources: bool,
32 }
33}
34
35#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphdebugparams-types")]
36pub use __types::*;
37
38#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphdebugparams")]
39pub trait IRenderGraphDebugParamsMethods: IRenderGraphDebugParams {
40 #[doc = "`RegisterDebug(::unity::Il2CppString)` overload"]
41 fn register_debug(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
42 unsafe {
43 let __receiver =
44 <RenderGraphDebugParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
45 ::unity::il2cpp_call!((::unity::module_base()+0x30b1a30usize)as*mut u8,();
46(RenderGraphDebugParams)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
47 }
48 }
49 #[doc = "`UnRegisterDebug(::unity::Il2CppString)` overload"]
50 fn un_register_debug(self, name: impl ::core::convert::Into<::unity::Il2CppString>) -> () {
51 unsafe {
52 let __receiver =
53 <RenderGraphDebugParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54 ::unity::il2cpp_call!((::unity::module_base()+0x30b2100usize)as*mut u8,();
55(RenderGraphDebugParams)__receiver,(::unity::Il2CppString)::core::convert::Into::into(name))
56 }
57 }
58 #[doc = "`.ctor()` overload"]
59 fn ctor(self) -> () {
60 unsafe {
61 let __receiver =
62 <RenderGraphDebugParams as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
63 ::unity::il2cpp_call!((::unity::module_base()+0x30b1770usize)as*mut u8,();
64(RenderGraphDebugParams)__receiver)
65 }
66 }
67}
68
69#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphdebugparams")]
70impl<__T: IRenderGraphDebugParams> IRenderGraphDebugParamsMethods for __T {}
71
72#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphdebugparams")]
73impl RenderGraphDebugParams {
74 pub fn register_debug_method_info() -> &'static ::unity::il2cpp::MethodInfo {
75 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
76 }
77
78 pub fn un_register_debug_method_info() -> &'static ::unity::il2cpp::MethodInfo {
79 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
80 }
81
82 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
83 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
84 }
85}
86
87#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphdebugparams")]
88impl RenderGraphDebugParams {
89 #[doc = "`.ctor()` — no args"]
90 pub fn new() -> Self {
91 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
92 panic!(
93 "{}
94::{}
95 failed to instantiate",
96 ::core::stringify!(RenderGraphDebugParams),
97 ::core::stringify!(new),
98 )
99 });
100 <Self as IRenderGraphDebugParamsMethods>::ctor(this);
101 this
102 }
103}
104
105#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphdebugparams")]
106#[doc(hidden)]
107pub mod prelude {
108 pub use super::{IRenderGraphDebugParams, IRenderGraphDebugParamsMethods, RenderGraphDebugParams};
109 pub use crate::system::object::IObject;
110 #[cfg(feature = "system-object")]
111 pub use crate::system::object::IObjectMethods;
112}