engage/generated/unity_engine/rendering/universal/custom/internal/
customzprepass.rs1#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customzprepass-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/customzprepass/CustomZPrePass.md"))]
14 #[::unity::class(namespace = "UnityEngine.Rendering.Universal.Custom.Internal", name = "CustomZPrePass")]
15 #[parent(crate::unity_engine::rendering::universal::scriptablerenderpass::ScriptableRenderPass)]
16 pub struct CustomZPrePass {
17 #[static_field]
18 #[rename(name = "m_ProfilerTag")]
19 pub m_profiler_tag: ::unity::Il2CppString,
20 #[offset(112)]
21 #[rename(name = "m_ProfilingSampler")]
22 pub m_profiling_sampler: crate::unity_engine::rendering::profilingsampler::ProfilingSampler,
23 #[offset(120)]
24 #[rename(name = "m_OpaqueFilter")]
25 pub m_opaque_filter: crate::unity_engine::rendering::filteringsettings::FilteringSettings,
26 #[offset(144)]
27 #[rename(name = "m_AlphaTestFilter")]
28 pub m_alpha_test_filter: crate::unity_engine::rendering::filteringsettings::FilteringSettings,
29 #[offset(168)]
30 #[rename(name = "m_ShaderTagId")]
31 pub m_shader_tag_id: crate::unity_engine::rendering::shadertagid::ShaderTagId,
32 #[offset(176)]
33 #[rename(name = "m_ShaderTagIdList")]
34 pub m_shader_tag_id_list: crate::system::collections::generic::list_1::List_1<crate::unity_engine::rendering::shadertagid::ShaderTagId>,
35 #[offset(184)]
36 #[rename(name = "m_MapCustomDepthShaderTagId")]
37 pub m_map_custom_depth_shader_tag_id: crate::unity_engine::rendering::shadertagid::ShaderTagId,
38 #[offset(188)]
39 #[rename(name = "m_MapLeafDepthShaderTagId")]
40 pub m_map_leaf_depth_shader_tag_id: crate::unity_engine::rendering::shadertagid::ShaderTagId,
41 #[offset(192)]
42 #[rename(name = "m_OverrideMaterial")]
43 pub m_override_material: crate::unity_engine::material::Material,
44 #[offset(200)]
45 #[rename(name = "m_IsOverrideEnabled")]
46 pub m_is_override_enabled: bool,
47 #[offset(204)]
48 #[rename(name = "m_SortingCriteria")]
49 pub m_sorting_criteria: crate::unity_engine::rendering::sortingcriteria::SortingCriteria,
50 }
51}
52
53#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customzprepass-types")]
54pub use __types::*;
55
56#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customzprepass")]
57pub trait ICustomZPrePassMethods: ICustomZPrePass {
58 #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, crate::unity_engine::layermask::LayerMask, crate::unity_engine::material::Material)` overload"]
59 fn ctor(
60 self,
61 evt: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent>,
62 layer_mask: impl ::core::convert::Into<crate::unity_engine::layermask::LayerMask>,
63 override_material: impl ::core::convert::Into<crate::unity_engine::material::Material>,
64 ) -> () {
65 unsafe {
66 let __receiver = <CustomZPrePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
67 ::unity::il2cpp_call!((::unity::module_base()+0x2a48680usize)as*mut u8,();
68(CustomZPrePass)__receiver,(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent)::core::convert::Into::into(evt),(crate::unity_engine::layermask::LayerMask)::core::convert::Into::into(layer_mask),(crate::unity_engine::material::Material)::core::convert::Into::into(override_material))
69 }
70 }
71 #[doc = "`SetOverrideEnabled(bool)` overload"]
72 fn set_override_enabled(self, is_enabled: impl ::core::convert::Into<bool>) -> () {
73 unsafe {
74 let __receiver = <CustomZPrePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
75 ::unity::il2cpp_call!((::unity::module_base()+0x2a4fa40usize)as*mut u8,();
76(CustomZPrePass)__receiver,(bool)::core::convert::Into::into(is_enabled))
77 }
78 }
79 #[doc = "`SetSortingCriteria(crate::unity_engine::rendering::universal::zprepasssortingcriteria::ZPrepassSortingCriteria)` overload"]
80 fn set_sorting_criteria(
81 self,
82 criteria: impl ::core::convert::Into<crate::unity_engine::rendering::universal::zprepasssortingcriteria::ZPrepassSortingCriteria>,
83 ) -> () {
84 unsafe {
85 let __receiver = <CustomZPrePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86 ::unity::il2cpp_call!((::unity::module_base()+0x2a4a550usize)as*mut u8,();
87(CustomZPrePass)__receiver,(crate::unity_engine::rendering::universal::zprepasssortingcriteria::ZPrepassSortingCriteria)::core::convert::Into::into(criteria))
88 }
89 }
90 #[doc = "`Execute(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData)` overload"]
91 fn execute(
92 self,
93 context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
94 ) -> crate::unity_engine::rendering::universal::renderingdata::RenderingData {
95 unsafe {
96 let __receiver = <CustomZPrePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
97 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::renderingdata::RenderingData>::uninit();
98 {
99 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
100 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
101 panic!(
102 "unity: virtual slot {}
103 out of range (vtable len {}
104) on the runtime class behind {}
105 (method `{}
106`)",
107 9usize,
108 __vt.len(),
109 <CustomZPrePass as ::unity::ClassIdentity>::NAME,
110 "Execute",
111 )
112 });
113 let __inner: extern "C" fn(
114 CustomZPrePass,
115 crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
116 *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
117 ::unity::OptionalMethod,
118 ) -> () = ::core::mem::transmute(__vi.method_ptr);
119 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
120 __inner(__receiver, ::core::convert::Into::into(context), __out_0.as_mut_ptr(), __mi)
121 };
122 __out_0.assume_init()
123 }
124 }
125 #[doc = "`SetupCommonDrawSettings(*mutcrate::unity_engine::rendering::drawingsettings::DrawingSettings, i32)` overload"]
126 fn setup_common_draw_settings(
127 self,
128 shader_pass_index: impl ::core::convert::Into<i32>,
129 ) -> (i32, crate::unity_engine::rendering::drawingsettings::DrawingSettings) {
130 unsafe {
131 let __receiver = <CustomZPrePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::drawingsettings::DrawingSettings>::uninit();
133 let __ret = {
134 ::unity::il2cpp_call!((::unity::module_base()+0x2a4fe40usize)as*mut u8,i32;
135(CustomZPrePass)__receiver,(*mut crate::unity_engine::rendering::drawingsettings::DrawingSettings)__out_0.as_mut_ptr(),(i32)::core::convert::Into::into(shader_pass_index))
136 };
137 (__ret, __out_0.assume_init())
138 }
139 }
140 #[doc = "`SetupCustomDepthDrawSettings(*mutcrate::unity_engine::rendering::drawingsettings::DrawingSettings, i32)` overload"]
141 fn setup_custom_depth_draw_settings(
142 self,
143 shader_pass_index: impl ::core::convert::Into<i32>,
144 ) -> (i32, crate::unity_engine::rendering::drawingsettings::DrawingSettings) {
145 unsafe {
146 let __receiver = <CustomZPrePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::drawingsettings::DrawingSettings>::uninit();
148 let __ret = {
149 ::unity::il2cpp_call!((::unity::module_base()+0x2a4ff30usize)as*mut u8,i32;
150(CustomZPrePass)__receiver,(*mut crate::unity_engine::rendering::drawingsettings::DrawingSettings)__out_0.as_mut_ptr(),(i32)::core::convert::Into::into(shader_pass_index))
151 };
152 (__ret, __out_0.assume_init())
153 }
154 }
155}
156
157#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customzprepass")]
158impl<__T: ICustomZPrePass> ICustomZPrePassMethods for __T {}
159
160#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customzprepass")]
161impl CustomZPrePass {
162 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
163 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
164 }
165
166 pub fn set_override_enabled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
167 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
168 }
169
170 pub fn set_sorting_criteria_method_info() -> &'static ::unity::il2cpp::MethodInfo {
171 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
172 }
173
174 pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
175 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
176 }
177
178 pub fn setup_common_draw_settings_method_info() -> &'static ::unity::il2cpp::MethodInfo {
179 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
180 }
181
182 pub fn setup_custom_depth_draw_settings_method_info() -> &'static ::unity::il2cpp::MethodInfo {
183 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
184 }
185}
186
187#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customzprepass")]
188impl CustomZPrePass {
189 #[doc = "Direct (non-virtual) call to `CustomZPrePass`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
190 pub unsafe fn execute(
191 this: impl ::core::convert::Into<::unity::IlInstance>,
192 context: crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
193 rendering_data: *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
194 ) -> () {
195 let __mi = Self::execute_method_info();
196 let __inner: extern "C" fn(
197 ::unity::IlInstance,
198 crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
199 *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
200 ::unity::OptionalMethod,
201 ) -> () = ::core::mem::transmute(__mi.method_ptr);
202 __inner(this.into(), context, rendering_data, ::core::option::Option::None)
203 }
204}
205
206#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customzprepass")]
207impl CustomZPrePass {
208 #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, crate::unity_engine::layermask::LayerMask, crate::unity_engine::material::Material)` — overload selector"]
209 pub fn new(
210 evt: crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent,
211 layer_mask: crate::unity_engine::layermask::LayerMask,
212 override_material: crate::unity_engine::material::Material,
213 ) -> Self {
214 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
215 panic!(
216 "{}
217::{}
218 failed to instantiate",
219 ::core::stringify!(CustomZPrePass),
220 ::core::stringify!(new),
221 )
222 });
223 <Self as ICustomZPrePassMethods>::ctor(this, evt, layer_mask, override_material);
224 this
225 }
226}
227
228#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customzprepass")]
229#[doc(hidden)]
230pub mod prelude {
231 pub use super::{CustomZPrePass, ICustomZPrePass, ICustomZPrePassMethods};
232 #[cfg(feature = "system-object")]
233 pub use crate::system::object::IObjectMethods;
234 #[cfg(feature = "unity_engine-rendering-universal-scriptablerenderpass")]
235 pub use crate::unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPassMethods;
236 pub use crate::{system::object::IObject, unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPass};
237}