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