Skip to main content

engage/generated/unity_engine/rendering/
renderpipeline.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-renderpipeline-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/rendering/renderpipeline/RenderPipeline.md"))]
11    #[::unity::class(namespace = "UnityEngine.Rendering", name = "RenderPipeline")]
12    #[parent(crate::system::object::Object)]
13    pub struct RenderPipeline {}
14}
15
16#[cfg(feature = "unity_engine-rendering-renderpipeline-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-rendering-renderpipeline")]
20impl RenderPipeline {
21    #[doc = "`BeginFrameRendering(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, ::unity::Array<crate::unity_engine::camera::Camera>)` overload"]
22    pub fn begin_frame_rendering(
23        context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
24        cameras: impl ::core::convert::Into<::unity::Array<crate::unity_engine::camera::Camera>>,
25    ) -> () {
26        unsafe {
27            ::unity::il2cpp_call!((::unity::module_base()+0x2f7f9c0usize)as*mut u8,();
28(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext)::core::convert::Into::into(context),(::unity::Array<crate::unity_engine::camera::Camera>)::core::convert::Into::into(cameras))
29        }
30    }
31
32    #[doc = "`BeginCameraRendering(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, crate::unity_engine::camera::Camera)` overload"]
33    pub fn begin_camera_rendering(
34        context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
35        camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
36    ) -> () {
37        unsafe {
38            ::unity::il2cpp_call!((::unity::module_base()+0x2f7fb80usize)as*mut u8,();
39(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext)::core::convert::Into::into(context),(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera))
40        }
41    }
42
43    #[doc = "`EndFrameRendering(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, ::unity::Array<crate::unity_engine::camera::Camera>)` overload"]
44    pub fn end_frame_rendering(
45        context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
46        cameras: impl ::core::convert::Into<::unity::Array<crate::unity_engine::camera::Camera>>,
47    ) -> () {
48        unsafe {
49            ::unity::il2cpp_call!((::unity::module_base()+0x2f7fd40usize)as*mut u8,();
50(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext)::core::convert::Into::into(context),(::unity::Array<crate::unity_engine::camera::Camera>)::core::convert::Into::into(cameras))
51        }
52    }
53
54    #[doc = "`EndCameraRendering(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, crate::unity_engine::camera::Camera)` overload"]
55    pub fn end_camera_rendering(
56        context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
57        camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
58    ) -> () {
59        unsafe {
60            ::unity::il2cpp_call!((::unity::module_base()+0x2f7ff00usize)as*mut u8,();
61(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext)::core::convert::Into::into(context),(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera))
62        }
63    }
64}
65
66#[cfg(feature = "unity_engine-rendering-renderpipeline")]
67pub trait IRenderPipelineMethods: IRenderPipeline {
68    #[doc = "`Render(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, ::unity::Array<crate::unity_engine::camera::Camera>)` overload"]
69    fn render(
70        self,
71        context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
72        cameras: impl ::core::convert::Into<::unity::Array<crate::unity_engine::camera::Camera>>,
73    ) -> () {
74        unsafe {
75            let __receiver = <RenderPipeline as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
76            {
77                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
78                let __vi = *__vt.get(4usize).unwrap_or_else(|| {
79                    panic!(
80                        "unity: virtual slot {}
81 out of range (vtable len {}
82) on the runtime class behind {}
83 (method `{}
84`)",
85                        4usize,
86                        __vt.len(),
87                        <RenderPipeline as ::unity::ClassIdentity>::NAME,
88                        "Render",
89                    )
90                });
91                let __inner: extern "C" fn(
92                    RenderPipeline,
93                    crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
94                    ::unity::Array<crate::unity_engine::camera::Camera>,
95                    ::unity::OptionalMethod,
96                ) -> () = ::core::mem::transmute(__vi.method_ptr);
97                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
98                __inner(
99                    __receiver,
100                    ::core::convert::Into::into(context),
101                    ::core::convert::Into::into(cameras),
102                    __mi,
103                )
104            }
105        }
106    }
107    #[doc = "`ProcessRenderRequests(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, crate::unity_engine::camera::Camera, crate::system::collections::generic::list_1::List_1<crate::unity_engine::camera::Camera_RenderRequest>)` overload"]
108    fn process_render_requests(
109        self,
110        context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
111        camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
112        render_requests: impl ::core::convert::Into<
113            crate::system::collections::generic::list_1::List_1<crate::unity_engine::camera::Camera_RenderRequest>,
114        >,
115    ) -> () {
116        unsafe {
117            let __receiver = <RenderPipeline as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
118            {
119                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
120                let __vi = *__vt.get(5usize).unwrap_or_else(|| {
121                    panic!(
122                        "unity: virtual slot {}
123 out of range (vtable len {}
124) on the runtime class behind {}
125 (method `{}
126`)",
127                        5usize,
128                        __vt.len(),
129                        <RenderPipeline as ::unity::ClassIdentity>::NAME,
130                        "ProcessRenderRequests",
131                    )
132                });
133                let __inner: extern "C" fn(
134                    RenderPipeline,
135                    crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
136                    crate::unity_engine::camera::Camera,
137                    crate::system::collections::generic::list_1::List_1<crate::unity_engine::camera::Camera_RenderRequest>,
138                    ::unity::OptionalMethod,
139                ) -> () = ::core::mem::transmute(__vi.method_ptr);
140                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
141                __inner(
142                    __receiver,
143                    ::core::convert::Into::into(context),
144                    ::core::convert::Into::into(camera),
145                    ::core::convert::Into::into(render_requests),
146                    __mi,
147                )
148            }
149        }
150    }
151    #[doc = "`InternalRender(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, ::unity::Array<crate::unity_engine::camera::Camera>)` overload"]
152    fn internal_render(
153        self,
154        context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
155        cameras: impl ::core::convert::Into<::unity::Array<crate::unity_engine::camera::Camera>>,
156    ) -> () {
157        unsafe {
158            let __receiver = <RenderPipeline as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
159            ::unity::il2cpp_call!((::unity::module_base()+0x2f800c0usize)as*mut u8,();
160(RenderPipeline)__receiver,(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext)::core::convert::Into::into(context),(::unity::Array<crate::unity_engine::camera::Camera>)::core::convert::Into::into(cameras))
161        }
162    }
163    #[doc = "`InternalRenderWithRequests(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, ::unity::Array<crate::unity_engine::camera::Camera>, crate::system::collections::generic::list_1::List_1<crate::unity_engine::camera::Camera_RenderRequest>)` overload"]
164    fn internal_render_with_requests(
165        self,
166        context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
167        cameras: impl ::core::convert::Into<::unity::Array<crate::unity_engine::camera::Camera>>,
168        render_requests: impl ::core::convert::Into<
169            crate::system::collections::generic::list_1::List_1<crate::unity_engine::camera::Camera_RenderRequest>,
170        >,
171    ) -> () {
172        unsafe {
173            let __receiver = <RenderPipeline as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
174            ::unity::il2cpp_call!((::unity::module_base()+0x2f80150usize)as*mut u8,();
175(RenderPipeline)__receiver,(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext)::core::convert::Into::into(context),(::unity::Array<crate::unity_engine::camera::Camera>)::core::convert::Into::into(cameras),(crate::system::collections::generic::list_1::List_1<crate::unity_engine::camera::Camera_RenderRequest>)::core::convert::Into::into(render_requests))
176        }
177    }
178    #[doc = "`get_disposed()` overload"]
179    fn get_disposed(self) -> bool {
180        unsafe {
181            let __receiver = <RenderPipeline as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
182            ::unity::il2cpp_call!((::unity::module_base()+0x2f80200usize)as*mut u8,bool;
183(RenderPipeline)__receiver)
184        }
185    }
186    #[doc = "`set_disposed(bool)` overload"]
187    fn set_disposed(self, value: impl ::core::convert::Into<bool>) -> () {
188        unsafe {
189            let __receiver = <RenderPipeline as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
190            ::unity::il2cpp_call!((::unity::module_base()+0x2f80210usize)as*mut u8,();
191(RenderPipeline)__receiver,(bool)::core::convert::Into::into(value))
192        }
193    }
194    #[doc = "`Dispose()` overload"]
195    fn dispose(self) -> () {
196        unsafe {
197            let __receiver = <RenderPipeline as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
198            ::unity::il2cpp_call!((::unity::module_base()+0x2f80220usize)as*mut u8,();
199(RenderPipeline)__receiver)
200        }
201    }
202    #[doc = "`Dispose(bool)` overload"]
203    fn dispose_2(self, disposing: impl ::core::convert::Into<bool>) -> () {
204        unsafe {
205            let __receiver = <RenderPipeline as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
206            {
207                let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
208                let __vi = *__vt.get(6usize).unwrap_or_else(|| {
209                    panic!(
210                        "unity: virtual slot {}
211 out of range (vtable len {}
212) on the runtime class behind {}
213 (method `{}
214`)",
215                        6usize,
216                        __vt.len(),
217                        <RenderPipeline as ::unity::ClassIdentity>::NAME,
218                        "Dispose",
219                    )
220                });
221                let __inner: extern "C" fn(RenderPipeline, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__vi.method_ptr);
222                let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
223                __inner(__receiver, ::core::convert::Into::into(disposing), __mi)
224            }
225        }
226    }
227    #[doc = "`.ctor()` overload"]
228    fn ctor(self) -> () {
229        unsafe {
230            let __receiver = <RenderPipeline as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
231            ::unity::il2cpp_call!((::unity::module_base()+0x2f802c0usize)as*mut u8,();
232(RenderPipeline)__receiver)
233        }
234    }
235}
236
237#[cfg(feature = "unity_engine-rendering-renderpipeline")]
238impl<__T: IRenderPipeline> IRenderPipelineMethods for __T {}
239
240#[cfg(feature = "unity_engine-rendering-renderpipeline")]
241impl RenderPipeline {
242    pub fn render_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
244    }
245
246    pub fn process_render_requests_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
248    }
249
250    pub fn begin_frame_rendering_method_info() -> &'static ::unity::il2cpp::MethodInfo {
251        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
252    }
253
254    pub fn begin_camera_rendering_method_info() -> &'static ::unity::il2cpp::MethodInfo {
255        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
256    }
257
258    pub fn end_frame_rendering_method_info() -> &'static ::unity::il2cpp::MethodInfo {
259        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
260    }
261
262    pub fn end_camera_rendering_method_info() -> &'static ::unity::il2cpp::MethodInfo {
263        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
264    }
265
266    pub fn internal_render_method_info() -> &'static ::unity::il2cpp::MethodInfo {
267        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
268    }
269
270    pub fn internal_render_with_requests_method_info() -> &'static ::unity::il2cpp::MethodInfo {
271        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
272    }
273
274    pub fn get_disposed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
275        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
276    }
277
278    pub fn set_disposed_method_info() -> &'static ::unity::il2cpp::MethodInfo {
279        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
280    }
281
282    pub fn dispose_method_info() -> &'static ::unity::il2cpp::MethodInfo {
283        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
284    }
285
286    pub fn dispose_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
287        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
288    }
289
290    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
291        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
292    }
293}
294
295#[cfg(feature = "unity_engine-rendering-renderpipeline")]
296impl RenderPipeline {
297    #[doc = "Direct (non-virtual) call to `RenderPipeline`'s own `Render`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
298    pub unsafe fn render(
299        this: impl ::core::convert::Into<::unity::IlInstance>,
300        context: crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
301        cameras: ::unity::Array<crate::unity_engine::camera::Camera>,
302    ) -> () {
303        let __mi = Self::render_method_info();
304        let __inner: extern "C" fn(
305            ::unity::IlInstance,
306            crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
307            ::unity::Array<crate::unity_engine::camera::Camera>,
308            ::unity::OptionalMethod,
309        ) -> () = ::core::mem::transmute(__mi.method_ptr);
310        __inner(this.into(), context, cameras, ::core::option::Option::None)
311    }
312
313    #[doc = "Direct (non-virtual) call to `RenderPipeline`'s own `ProcessRenderRequests`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
314    pub unsafe fn process_render_requests(
315        this: impl ::core::convert::Into<::unity::IlInstance>,
316        context: crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
317        camera: crate::unity_engine::camera::Camera,
318        render_requests: crate::system::collections::generic::list_1::List_1<crate::unity_engine::camera::Camera_RenderRequest>,
319    ) -> () {
320        let __mi = Self::process_render_requests_method_info();
321        let __inner: extern "C" fn(
322            ::unity::IlInstance,
323            crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
324            crate::unity_engine::camera::Camera,
325            crate::system::collections::generic::list_1::List_1<crate::unity_engine::camera::Camera_RenderRequest>,
326            ::unity::OptionalMethod,
327        ) -> () = ::core::mem::transmute(__mi.method_ptr);
328        __inner(this.into(), context, camera, render_requests, ::core::option::Option::None)
329    }
330
331    #[doc = "Direct (non-virtual) call to `RenderPipeline`'s own `Dispose`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
332    pub unsafe fn dispose_2(this: impl ::core::convert::Into<::unity::IlInstance>, disposing: bool) -> () {
333        let __mi = Self::dispose_2_method_info();
334        let __inner: extern "C" fn(::unity::IlInstance, bool, ::unity::OptionalMethod) -> () = ::core::mem::transmute(__mi.method_ptr);
335        __inner(this.into(), disposing, ::core::option::Option::None)
336    }
337}
338
339#[cfg(feature = "unity_engine-rendering-renderpipeline")]
340impl RenderPipeline {
341    #[doc = "`.ctor()` — no args"]
342    pub fn new() -> Self {
343        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
344            panic!(
345                "{}
346::{}
347 failed to instantiate",
348                ::core::stringify!(RenderPipeline),
349                ::core::stringify!(new),
350            )
351        });
352        <Self as IRenderPipelineMethods>::ctor(this);
353        this
354    }
355}
356
357#[cfg(feature = "unity_engine-rendering-renderpipeline")]
358#[doc(hidden)]
359pub mod prelude {
360    pub use super::{IRenderPipeline, IRenderPipelineMethods, RenderPipeline};
361    pub use crate::system::object::IObject;
362    #[cfg(feature = "system-object")]
363    pub use crate::system::object::IObjectMethods;
364}