engage/generated/unity_engine/rendering/universal/
capturepass.rs1#[cfg(feature = "unity_engine-rendering-universal-capturepass-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::rendering::universal::scriptablerenderpass::{IScriptableRenderPass, ScriptableRenderPass},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/capturepass/CapturePass.md"))]
14 #[::unity::class(namespace = "UnityEngine.Rendering.Universal", name = "CapturePass")]
15 #[parent(crate::unity_engine::rendering::universal::scriptablerenderpass::ScriptableRenderPass)]
16 pub struct CapturePass {
17 #[offset(112)]
18 #[rename(name = "m_CameraColorHandle")]
19 pub m_camera_color_handle: crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle,
20 #[static_field]
21 #[rename(name = "m_ProfilerTag")]
22 pub m_profiler_tag: ::unity::Il2CppString,
23 #[static_field]
24 #[rename(name = "m_ProfilingSampler")]
25 pub m_profiling_sampler: crate::unity_engine::rendering::profilingsampler::ProfilingSampler,
26 }
27}
28
29#[cfg(feature = "unity_engine-rendering-universal-capturepass-types")]
30pub use __types::*;
31
32#[cfg(feature = "unity_engine-rendering-universal-capturepass")]
33impl CapturePass {
34 #[doc = "`.cctor()` overload"]
35 pub fn cctor() -> () {
36 unsafe {
37 ::unity::il2cpp_call!((::unity::module_base()+0x2a3e2a0usize)as*mut u8,();
38 )
39 }
40 }
41}
42
43#[cfg(feature = "unity_engine-rendering-universal-capturepass")]
44pub trait ICapturePassMethods: ICapturePass {
45 #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent)` overload"]
46 fn ctor(self, evt: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent>) -> () {
47 unsafe {
48 let __receiver = <CapturePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
49 ::unity::il2cpp_call!((::unity::module_base()+0x2a3dec0usize)as*mut u8,();
50(CapturePass)__receiver,(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent)::core::convert::Into::into(evt))
51 }
52 }
53 #[doc = "`Setup(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)` overload"]
54 fn setup(
55 self,
56 color_handle: impl ::core::convert::Into<crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle>,
57 ) -> () {
58 unsafe {
59 let __receiver = <CapturePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
60 ::unity::il2cpp_call!((::unity::module_base()+0x2a3df70usize)as*mut u8,();
61(CapturePass)__receiver,(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)::core::convert::Into::into(color_handle))
62 }
63 }
64 #[doc = "`Execute(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData)` overload"]
65 fn execute(
66 self,
67 context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
68 ) -> crate::unity_engine::rendering::universal::renderingdata::RenderingData {
69 unsafe {
70 let __receiver = <CapturePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
71 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::renderingdata::RenderingData>::uninit();
72 {
73 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
74 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
75 panic!(
76 "unity: virtual slot {}
77 out of range (vtable len {}
78) on the runtime class behind {}
79 (method `{}
80`)",
81 9usize,
82 __vt.len(),
83 <CapturePass as ::unity::ClassIdentity>::NAME,
84 "Execute",
85 )
86 });
87 let __inner: extern "C" fn(
88 CapturePass,
89 crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
90 *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
91 ::unity::OptionalMethod,
92 ) -> () = ::core::mem::transmute(__vi.method_ptr);
93 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
94 __inner(__receiver, ::core::convert::Into::into(context), __out_0.as_mut_ptr(), __mi)
95 };
96 __out_0.assume_init()
97 }
98 }
99}
100
101#[cfg(feature = "unity_engine-rendering-universal-capturepass")]
102impl<__T: ICapturePass> ICapturePassMethods for __T {}
103
104#[cfg(feature = "unity_engine-rendering-universal-capturepass")]
105impl CapturePass {
106 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
107 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
108 }
109
110 pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
111 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
112 }
113
114 pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
115 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
116 }
117
118 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
119 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
120 }
121}
122
123#[cfg(feature = "unity_engine-rendering-universal-capturepass")]
124impl CapturePass {
125 #[doc = "Direct (non-virtual) call to `CapturePass`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
126 pub unsafe fn execute(
127 this: impl ::core::convert::Into<::unity::IlInstance>,
128 context: crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
129 rendering_data: *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
130 ) -> () {
131 let __mi = Self::execute_method_info();
132 let __inner: extern "C" fn(
133 ::unity::IlInstance,
134 crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
135 *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
136 ::unity::OptionalMethod,
137 ) -> () = ::core::mem::transmute(__mi.method_ptr);
138 __inner(this.into(), context, rendering_data, ::core::option::Option::None)
139 }
140}
141
142#[cfg(feature = "unity_engine-rendering-universal-capturepass")]
143impl CapturePass {
144 #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent)` — overload selector"]
145 pub fn new(evt: crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent) -> Self {
146 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
147 panic!(
148 "{}
149::{}
150 failed to instantiate",
151 ::core::stringify!(CapturePass),
152 ::core::stringify!(new),
153 )
154 });
155 <Self as ICapturePassMethods>::ctor(this, evt);
156 this
157 }
158}
159
160#[cfg(feature = "unity_engine-rendering-universal-capturepass")]
161#[doc(hidden)]
162pub mod prelude {
163 pub use super::{CapturePass, ICapturePass, ICapturePassMethods};
164 #[cfg(feature = "system-object")]
165 pub use crate::system::object::IObjectMethods;
166 #[cfg(feature = "unity_engine-rendering-universal-scriptablerenderpass")]
167 pub use crate::unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPassMethods;
168 pub use crate::{system::object::IObject, unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPass};
169}