Skip to main content

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

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphcontext-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/rendergraphcontext/RenderGraphContext.md"))]
11    #[::unity::class(namespace = "UnityEngine.Experimental.Rendering.RenderGraphModule", name = "RenderGraphContext")]
12    #[parent(crate::system::object::Object)]
13    pub struct RenderGraphContext {
14        #[offset(16)]
15        #[rename(name = "renderContext")]
16        pub render_context: crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
17        #[offset(24)]
18        #[rename(name = "cmd")]
19        pub cmd: crate::unity_engine::rendering::commandbuffer::CommandBuffer,
20        #[offset(32)]
21        #[rename(name = "renderGraphPool")]
22        pub render_graph_pool: crate::unity_engine::experimental::rendering::render_graph_module::rendergraphobjectpool::RenderGraphObjectPool,
23        #[offset(40)]
24        #[rename(name = "defaultResources")]
25        pub default_resources:
26            crate::unity_engine::experimental::rendering::render_graph_module::rendergraphdefaultresources::RenderGraphDefaultResources,
27    }
28}
29
30#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphcontext-types")]
31pub use __types::*;
32
33#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphcontext")]
34pub trait IRenderGraphContextMethods: IRenderGraphContext {
35    #[doc = "`.ctor()` overload"]
36    fn ctor(self) -> () {
37        unsafe {
38            let __receiver = <RenderGraphContext as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
39            ::unity::il2cpp_call!((::unity::module_base()+0x30b1950usize)as*mut u8,();
40(RenderGraphContext)__receiver)
41        }
42    }
43}
44
45#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphcontext")]
46impl<__T: IRenderGraphContext> IRenderGraphContextMethods for __T {}
47
48#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphcontext")]
49impl RenderGraphContext {
50    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
51        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
52    }
53}
54
55#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphcontext")]
56impl RenderGraphContext {
57    #[doc = "`.ctor()` — no args"]
58    pub fn new() -> Self {
59        let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
60            panic!(
61                "{}
62::{}
63 failed to instantiate",
64                ::core::stringify!(RenderGraphContext),
65                ::core::stringify!(new),
66            )
67        });
68        <Self as IRenderGraphContextMethods>::ctor(this);
69        this
70    }
71}
72
73#[cfg(feature = "unity_engine-experimental-rendering-render_graph_module-rendergraphcontext")]
74#[doc(hidden)]
75pub mod prelude {
76    pub use super::{IRenderGraphContext, IRenderGraphContextMethods, RenderGraphContext};
77    pub use crate::system::object::IObject;
78    #[cfg(feature = "system-object")]
79    pub use crate::system::object::IObjectMethods;
80}