engage/generated/unity_engine/rendering/universal/custom/internal/
custombaseopaquepass.rs1#[cfg(feature = "unity_engine-rendering-universal-custom-internal-custombaseopaquepass-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/custombaseopaquepass/CustomBaseOpaquePass.md"))]
14 #[::unity::class(namespace = "UnityEngine.Rendering.Universal.Custom.Internal", name = "CustomBaseOpaquePass")]
15 #[parent(crate::unity_engine::rendering::universal::scriptablerenderpass::ScriptableRenderPass)]
16 pub struct CustomBaseOpaquePass {
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_RenderStateBlock")]
22 pub m_render_state_block: crate::unity_engine::rendering::renderstateblock::RenderStateBlock,
23 #[offset(244)]
24 #[rename(name = "m_DefaultShaderTagId")]
25 pub m_default_shader_tag_id: crate::unity_engine::rendering::shadertagid::ShaderTagId,
26 #[offset(248)]
27 #[rename(name = "m_ShaderTagIdList")]
28 pub m_shader_tag_id_list: crate::system::collections::generic::list_1::List_1<crate::unity_engine::rendering::shadertagid::ShaderTagId>,
29 #[offset(256)]
30 #[rename(name = "m_ProfilerTag")]
31 pub m_profiler_tag: ::unity::Il2CppString,
32 #[offset(264)]
33 #[rename(name = "m_ProfilingSampler")]
34 pub m_profiling_sampler: crate::unity_engine::rendering::profilingsampler::ProfilingSampler,
35 #[static_field]
36 #[rename(name = "s_DrawObjectPassDataPropID")]
37 pub s_draw_object_pass_data_prop_id: i32,
38 #[offset(272)]
39 #[rename(name = "m_NoOverrideStateShaderTagId")]
40 pub m_no_override_state_shader_tag_id: crate::unity_engine::rendering::shadertagid::ShaderTagId,
41 #[offset(280)]
42 #[rename(name = "m_NoOverrideStateShaderTagIdList")]
43 pub m_no_override_state_shader_tag_id_list:
44 crate::system::collections::generic::list_1::List_1<crate::unity_engine::rendering::shadertagid::ShaderTagId>,
45 #[offset(288)]
46 #[rename(name = "m_DepthState")]
47 pub m_depth_state: crate::unity_engine::rendering::depthstate::DepthState,
48 #[offset(290)]
49 #[rename(name = "m_ZPrepassEnabled")]
50 pub m_z_prepass_enabled: bool,
51 #[offset(291)]
52 #[rename(name = "m_ZPrepassOptimizedSort")]
53 pub m_z_prepass_optimized_sort: bool,
54 #[offset(296)]
55 #[rename(name = "m_BlitMaterial")]
56 pub m_blit_material: crate::unity_engine::material::Material,
57 #[offset(304)]
58 #[rename(name = "m_SilhouetteColorPropID")]
59 pub m_silhouette_color_prop_id: ::unity::Array<i32>,
60 #[offset(322)]
61 #[rename(name = "m_CustomViewport")]
62 pub m_custom_viewport: bool,
63 #[offset(324)]
64 #[rename(name = "m_CustomViewportRect")]
65 pub m_custom_viewport_rect: crate::unity_engine::rect::Rect,
66 #[offset(340)]
67 #[rename(name = "m_OriginalViewportRect")]
68 pub m_original_viewport_rect: crate::unity_engine::rect::Rect,
69 }
70}
71
72#[cfg(feature = "unity_engine-rendering-universal-custom-internal-custombaseopaquepass-types")]
73pub use __types::*;
74
75#[cfg(feature = "unity_engine-rendering-universal-custom-internal-custombaseopaquepass")]
76impl CustomBaseOpaquePass {
77 #[doc = "`.cctor()` overload"]
78 pub fn cctor() -> () {
79 unsafe {
80 ::unity::il2cpp_call!((::unity::module_base()+0x2a439b0usize)as*mut u8,();
81 )
82 }
83 }
84}
85
86#[cfg(feature = "unity_engine-rendering-universal-custom-internal-custombaseopaquepass")]
87pub trait ICustomBaseOpaquePassMethods: ICustomBaseOpaquePass {
88 #[doc = "`get_silhouetteColors()` overload"]
89 fn get_silhouette_colors(self) -> ::unity::Array<crate::unity_engine::vector4::Vector4> {
90 unsafe {
91 let __receiver = <CustomBaseOpaquePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92 ::unity::il2cpp_call!((::unity::module_base()+0x2a42aa0usize)as*mut u8, ::unity::Array<crate::unity_engine::vector4::Vector4> ;
93(CustomBaseOpaquePass)__receiver)
94 }
95 }
96 #[doc = "`set_silhouetteColors(::unity::Array<crate::unity_engine::vector4::Vector4>)` overload"]
97 fn set_silhouette_colors(self, value: impl ::core::convert::Into<::unity::Array<crate::unity_engine::vector4::Vector4>>) -> () {
98 unsafe {
99 let __receiver = <CustomBaseOpaquePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100 ::unity::il2cpp_call!((::unity::module_base()+0x2a42ab0usize)as*mut u8,();
101(CustomBaseOpaquePass)__receiver,(::unity::Array<crate::unity_engine::vector4::Vector4>)::core::convert::Into::into(value))
102 }
103 }
104 #[doc = "`get_statusRenderingFlag()` overload"]
105 fn get_status_rendering_flag(self) -> bool {
106 unsafe {
107 let __receiver = <CustomBaseOpaquePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108 ::unity::il2cpp_call!((::unity::module_base()+0x2a42ac0usize)as*mut u8,bool;
109(CustomBaseOpaquePass)__receiver)
110 }
111 }
112 #[doc = "`set_statusRenderingFlag(bool)` overload"]
113 fn set_status_rendering_flag(self, value: impl ::core::convert::Into<bool>) -> () {
114 unsafe {
115 let __receiver = <CustomBaseOpaquePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
116 ::unity::il2cpp_call!((::unity::module_base()+0x2a42ad0usize)as*mut u8,();
117(CustomBaseOpaquePass)__receiver,(bool)::core::convert::Into::into(value))
118 }
119 }
120 #[doc = "`get_silhouetteEnabled()` overload"]
121 fn get_silhouette_enabled(self) -> bool {
122 unsafe {
123 let __receiver = <CustomBaseOpaquePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
124 ::unity::il2cpp_call!((::unity::module_base()+0x2a42ae0usize)as*mut u8,bool;
125(CustomBaseOpaquePass)__receiver)
126 }
127 }
128 #[doc = "`set_silhouetteEnabled(bool)` overload"]
129 fn set_silhouette_enabled(self, value: impl ::core::convert::Into<bool>) -> () {
130 unsafe {
131 let __receiver = <CustomBaseOpaquePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
132 ::unity::il2cpp_call!((::unity::module_base()+0x2a42af0usize)as*mut u8,();
133(CustomBaseOpaquePass)__receiver,(bool)::core::convert::Into::into(value))
134 }
135 }
136 #[doc = "`.ctor(::unity::Il2CppString, crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, crate::unity_engine::rendering::renderqueuerange::RenderQueueRange, crate::unity_engine::layermask::LayerMask, crate::unity_engine::material::Material)` overload"]
137 fn ctor(
138 self,
139 profiler_tag: impl ::core::convert::Into<::unity::Il2CppString>,
140 evt: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent>,
141 render_queue_range: impl ::core::convert::Into<crate::unity_engine::rendering::renderqueuerange::RenderQueueRange>,
142 layer_mask: impl ::core::convert::Into<crate::unity_engine::layermask::LayerMask>,
143 blit_material: impl ::core::convert::Into<crate::unity_engine::material::Material>,
144 ) -> () {
145 unsafe {
146 let __receiver = <CustomBaseOpaquePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
147 ::unity::il2cpp_call!((::unity::module_base()+0x2a42b00usize)as*mut u8,();
148(CustomBaseOpaquePass)__receiver,(::unity::Il2CppString)::core::convert::Into::into(profiler_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),(crate::unity_engine::material::Material)::core::convert::Into::into(blit_material))
149 }
150 }
151 #[doc = "`SetZPrepassFlag(bool)` overload"]
152 fn set_z_prepass_flag(self, zprepass_enabled: impl ::core::convert::Into<bool>) -> () {
153 unsafe {
154 let __receiver = <CustomBaseOpaquePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
155 ::unity::il2cpp_call!((::unity::module_base()+0x2a431d0usize)as*mut u8,();
156(CustomBaseOpaquePass)__receiver,(bool)::core::convert::Into::into(zprepass_enabled))
157 }
158 }
159 #[doc = "`SetZPrepassFlag(bool, bool)` overload"]
160 fn set_z_prepass_flag_2(
161 self,
162 zprepass_enabled: impl ::core::convert::Into<bool>,
163 zprepass_optimized_sort: impl ::core::convert::Into<bool>,
164 ) -> () {
165 unsafe {
166 let __receiver = <CustomBaseOpaquePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
167 ::unity::il2cpp_call!((::unity::module_base()+0x2a431e0usize)as*mut u8,();
168(CustomBaseOpaquePass)__receiver,(bool)::core::convert::Into::into(zprepass_enabled),(bool)::core::convert::Into::into(zprepass_optimized_sort))
169 }
170 }
171 #[doc = "`InternalSetZPrepassFlag(bool)` overload"]
172 fn internal_set_z_prepass_flag(self, zprepass_enabled: impl ::core::convert::Into<bool>) -> () {
173 unsafe {
174 let __receiver = <CustomBaseOpaquePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
175 ::unity::il2cpp_call!((::unity::module_base()+0x2a43150usize)as*mut u8,();
176(CustomBaseOpaquePass)__receiver,(bool)::core::convert::Into::into(zprepass_enabled))
177 }
178 }
179 #[doc = "`EnableCustomViewport(f32, f32, f32, f32)` overload"]
180 fn enable_custom_viewport(
181 self,
182 original_w: impl ::core::convert::Into<f32>,
183 original_h: impl ::core::convert::Into<f32>,
184 custom_w: impl ::core::convert::Into<f32>,
185 custom_h: impl ::core::convert::Into<f32>,
186 ) -> () {
187 unsafe {
188 let __receiver = <CustomBaseOpaquePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
189 ::unity::il2cpp_call!((::unity::module_base()+0x2a43290usize)as*mut u8,();
190(CustomBaseOpaquePass)__receiver,(f32)::core::convert::Into::into(original_w),(f32)::core::convert::Into::into(original_h),(f32)::core::convert::Into::into(custom_w),(f32)::core::convert::Into::into(custom_h))
191 }
192 }
193 #[doc = "`DisableCustomViewport()` overload"]
194 fn disable_custom_viewport(self) -> () {
195 unsafe {
196 let __receiver = <CustomBaseOpaquePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
197 ::unity::il2cpp_call!((::unity::module_base()+0x2a43310usize)as*mut u8,();
198(CustomBaseOpaquePass)__receiver)
199 }
200 }
201 #[doc = "`Execute(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData)` overload"]
202 fn execute(
203 self,
204 context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
205 ) -> crate::unity_engine::rendering::universal::renderingdata::RenderingData {
206 unsafe {
207 let __receiver = <CustomBaseOpaquePass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
208 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::renderingdata::RenderingData>::uninit();
209 {
210 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
211 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
212 panic!(
213 "unity: virtual slot {}
214 out of range (vtable len {}
215) on the runtime class behind {}
216 (method `{}
217`)",
218 9usize,
219 __vt.len(),
220 <CustomBaseOpaquePass as ::unity::ClassIdentity>::NAME,
221 "Execute",
222 )
223 });
224 let __inner: extern "C" fn(
225 CustomBaseOpaquePass,
226 crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
227 *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
228 ::unity::OptionalMethod,
229 ) -> () = ::core::mem::transmute(__vi.method_ptr);
230 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
231 __inner(__receiver, ::core::convert::Into::into(context), __out_0.as_mut_ptr(), __mi)
232 };
233 __out_0.assume_init()
234 }
235 }
236}
237
238#[cfg(feature = "unity_engine-rendering-universal-custom-internal-custombaseopaquepass")]
239impl<__T: ICustomBaseOpaquePass> ICustomBaseOpaquePassMethods for __T {}
240
241#[cfg(feature = "unity_engine-rendering-universal-custom-internal-custombaseopaquepass")]
242impl CustomBaseOpaquePass {
243 pub fn get_silhouette_colors_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
245 }
246
247 pub fn set_silhouette_colors_method_info() -> &'static ::unity::il2cpp::MethodInfo {
248 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
249 }
250
251 pub fn get_status_rendering_flag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
252 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
253 }
254
255 pub fn set_status_rendering_flag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
256 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
257 }
258
259 pub fn get_silhouette_enabled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
260 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
261 }
262
263 pub fn set_silhouette_enabled_method_info() -> &'static ::unity::il2cpp::MethodInfo {
264 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
265 }
266
267 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
268 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
269 }
270
271 pub fn set_z_prepass_flag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
272 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
273 }
274
275 pub fn set_z_prepass_flag_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
276 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
277 }
278
279 pub fn internal_set_z_prepass_flag_method_info() -> &'static ::unity::il2cpp::MethodInfo {
280 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
281 }
282
283 pub fn enable_custom_viewport_method_info() -> &'static ::unity::il2cpp::MethodInfo {
284 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
285 }
286
287 pub fn disable_custom_viewport_method_info() -> &'static ::unity::il2cpp::MethodInfo {
288 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
289 }
290
291 pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
292 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
293 }
294
295 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
296 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
297 }
298}
299
300#[cfg(feature = "unity_engine-rendering-universal-custom-internal-custombaseopaquepass")]
301impl CustomBaseOpaquePass {
302 #[doc = "Direct (non-virtual) call to `CustomBaseOpaquePass`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
303 pub unsafe fn execute(
304 this: impl ::core::convert::Into<::unity::IlInstance>,
305 context: crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
306 rendering_data: *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
307 ) -> () {
308 let __mi = Self::execute_method_info();
309 let __inner: extern "C" fn(
310 ::unity::IlInstance,
311 crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
312 *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
313 ::unity::OptionalMethod,
314 ) -> () = ::core::mem::transmute(__mi.method_ptr);
315 __inner(this.into(), context, rendering_data, ::core::option::Option::None)
316 }
317}
318
319#[cfg(feature = "unity_engine-rendering-universal-custom-internal-custombaseopaquepass")]
320impl CustomBaseOpaquePass {
321 #[doc = "`.ctor(::unity::Il2CppString, crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, crate::unity_engine::rendering::renderqueuerange::RenderQueueRange, crate::unity_engine::layermask::LayerMask, crate::unity_engine::material::Material)` — overload selector"]
322 pub fn new(
323 profiler_tag: ::unity::Il2CppString,
324 evt: crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent,
325 render_queue_range: crate::unity_engine::rendering::renderqueuerange::RenderQueueRange,
326 layer_mask: crate::unity_engine::layermask::LayerMask,
327 blit_material: crate::unity_engine::material::Material,
328 ) -> Self {
329 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
330 panic!(
331 "{}
332::{}
333 failed to instantiate",
334 ::core::stringify!(CustomBaseOpaquePass),
335 ::core::stringify!(new),
336 )
337 });
338 <Self as ICustomBaseOpaquePassMethods>::ctor(this, profiler_tag, evt, render_queue_range, layer_mask, blit_material);
339 this
340 }
341}
342
343#[cfg(feature = "unity_engine-rendering-universal-custom-internal-custombaseopaquepass")]
344#[doc(hidden)]
345pub mod prelude {
346 pub use super::{CustomBaseOpaquePass, ICustomBaseOpaquePass, ICustomBaseOpaquePassMethods};
347 #[cfg(feature = "system-object")]
348 pub use crate::system::object::IObjectMethods;
349 #[cfg(feature = "unity_engine-rendering-universal-scriptablerenderpass")]
350 pub use crate::unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPassMethods;
351 pub use crate::{system::object::IObject, unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPass};
352}