Skip to main content

engage/generated/unity_engine/rendering/lwrp/
lightweightrenderpipeline.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-lwrp-lightweightrenderpipeline-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/lwrp/lightweightrenderpipeline/LightweightRenderPipeline.md"))]
11    #[::unity::class(namespace = "UnityEngine.Rendering.LWRP", name = "LightweightRenderPipeline")]
12    #[parent(crate::system::object::Object)]
13    pub struct LightweightRenderPipeline {}
14}
15
16#[cfg(feature = "unity_engine-rendering-lwrp-lightweightrenderpipeline-types")]
17pub use __types::*;
18
19#[cfg(feature = "unity_engine-rendering-lwrp-lightweightrenderpipeline")]
20pub trait ILightweightRenderPipelineMethods: ILightweightRenderPipeline {
21    #[doc = "`.ctor(crate::unity_engine::rendering::lwrp::lightweightrenderpipelineasset::LightweightRenderPipelineAsset)` overload"]
22    fn ctor(
23        self,
24        asset: impl ::core::convert::Into<crate::unity_engine::rendering::lwrp::lightweightrenderpipelineasset::LightweightRenderPipelineAsset>,
25    ) -> () {
26        unsafe {
27            let __receiver =
28                <LightweightRenderPipeline as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
29            ::unity::il2cpp_call!((::unity::module_base()+0x2ef5fc0usize)as*mut u8,();
30(LightweightRenderPipeline)__receiver,(crate::unity_engine::rendering::lwrp::lightweightrenderpipelineasset::LightweightRenderPipelineAsset)::core::convert::Into::into(asset))
31        }
32    }
33}
34
35#[cfg(feature = "unity_engine-rendering-lwrp-lightweightrenderpipeline")]
36impl<__T: ILightweightRenderPipeline> ILightweightRenderPipelineMethods for __T {}
37
38#[cfg(feature = "unity_engine-rendering-lwrp-lightweightrenderpipeline")]
39impl LightweightRenderPipeline {
40    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
41        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
42    }
43}
44
45#[cfg(feature = "unity_engine-rendering-lwrp-lightweightrenderpipeline")]
46impl LightweightRenderPipeline {
47    #[doc = "`.ctor(crate::unity_engine::rendering::lwrp::lightweightrenderpipelineasset::LightweightRenderPipelineAsset)` — overload selector"]
48    pub fn new(asset: crate::unity_engine::rendering::lwrp::lightweightrenderpipelineasset::LightweightRenderPipelineAsset) -> Self {
49        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
50            panic!(
51                "{}
52::{}
53 failed to instantiate",
54                ::core::stringify!(LightweightRenderPipeline),
55                ::core::stringify!(new),
56            )
57        });
58        <Self as ILightweightRenderPipelineMethods>::ctor(this, asset);
59        this
60    }
61}
62
63#[cfg(feature = "unity_engine-rendering-lwrp-lightweightrenderpipeline")]
64#[doc(hidden)]
65pub mod prelude {
66    pub use super::{ILightweightRenderPipeline, ILightweightRenderPipelineMethods, LightweightRenderPipeline};
67    pub use crate::system::object::IObject;
68    #[cfg(feature = "system-object")]
69    pub use crate::system::object::IObjectMethods;
70}