engage/generated/unity_engine/rendering/universal/custom/internal/
customdecalspass.rs1#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customdecalspass-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/customdecalspass/CustomDecalsPass.md"))]
14 #[::unity::class(namespace = "UnityEngine.Rendering.Universal.Custom.Internal", name = "CustomDecalsPass")]
15 #[parent(crate::unity_engine::rendering::universal::scriptablerenderpass::ScriptableRenderPass)]
16 pub struct CustomDecalsPass {
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_DecalShadowHandle")]
25 pub m_decal_shadow_handle: crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle,
26 #[offset(168)]
27 #[rename(name = "m_DepthHandle")]
28 pub m_depth_handle: crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle,
29 #[offset(216)]
30 #[rename(name = "m_FilteringSettings")]
31 pub m_filtering_settings: crate::unity_engine::rendering::filteringsettings::FilteringSettings,
32 #[offset(240)]
33 #[rename(name = "m_DecalShaderTagId")]
34 pub m_decal_shader_tag_id: crate::unity_engine::rendering::shadertagid::ShaderTagId,
35 #[offset(244)]
36 #[rename(name = "m_ScaleBiasId")]
37 pub m_scale_bias_id: i32,
38 #[offset(248)]
39 #[rename(name = "m_CopyDepthMaterial")]
40 pub m_copy_depth_material: crate::unity_engine::material::Material,
41 #[offset(392)]
42 #[rename(name = "m_IsOcclusionCasterEnabled")]
43 pub m_is_occlusion_caster_enabled: bool,
44 #[offset(396)]
45 #[rename(name = "m_OcclusionStrength")]
46 pub m_occlusion_strength: f32,
47 #[offset(400)]
48 #[rename(name = "m_OcclusionBlackToAlbedo")]
49 pub m_occlusion_black_to_albedo: f32,
50 }
51}
52
53#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customdecalspass-types")]
54pub use __types::*;
55
56#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customdecalspass")]
57pub trait ICustomDecalsPassMethods: ICustomDecalsPass {
58 #[doc = "`get_preColorAttachment()` overload"]
59 fn get_pre_color_attachment(self) -> crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle {
60 unsafe {
61 let __receiver = <CustomDecalsPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62 ::unity::il2cpp_call!((::unity::module_base()+0x2a45530usize)as*mut u8,crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle;
63(CustomDecalsPass)__receiver)
64 }
65 }
66 #[doc = "`set_preColorAttachment(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)` overload"]
67 fn set_pre_color_attachment(
68 self,
69 value: impl ::core::convert::Into<crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle>,
70 ) -> () {
71 unsafe {
72 let __receiver = <CustomDecalsPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
73 ::unity::il2cpp_call!((::unity::module_base()+0x2a45550usize)as*mut u8,();
74(CustomDecalsPass)__receiver,(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)::core::convert::Into::into(value))
75 }
76 }
77 #[doc = "`get_preDepthAttachment()` overload"]
78 fn get_pre_depth_attachment(self) -> crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle {
79 unsafe {
80 let __receiver = <CustomDecalsPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81 ::unity::il2cpp_call!((::unity::module_base()+0x2a45570usize)as*mut u8,crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle;
82(CustomDecalsPass)__receiver)
83 }
84 }
85 #[doc = "`set_preDepthAttachment(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)` overload"]
86 fn set_pre_depth_attachment(
87 self,
88 value: impl ::core::convert::Into<crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle>,
89 ) -> () {
90 unsafe {
91 let __receiver = <CustomDecalsPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
92 ::unity::il2cpp_call!((::unity::module_base()+0x2a45590usize)as*mut u8,();
93(CustomDecalsPass)__receiver,(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)::core::convert::Into::into(value))
94 }
95 }
96 #[doc = "`get_srcDepth()` overload"]
97 fn get_src_depth(self) -> crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier {
98 unsafe {
99 let __receiver = <CustomDecalsPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100 ::unity::il2cpp_call!((::unity::module_base()+0x2a455b0usize)as*mut u8,crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier;
101(CustomDecalsPass)__receiver)
102 }
103 }
104 #[doc = "`set_srcDepth(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)` overload"]
105 fn set_src_depth(self, value: impl ::core::convert::Into<crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier>) -> () {
106 unsafe {
107 let __receiver = <CustomDecalsPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
108 ::unity::il2cpp_call!((::unity::module_base()+0x2a455d0usize)as*mut u8,();
109(CustomDecalsPass)__receiver,(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)::core::convert::Into::into(value))
110 }
111 }
112 #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, crate::unity_engine::layermask::LayerMask, crate::unity_engine::material::Material)` overload"]
113 fn ctor(
114 self,
115 evt: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent>,
116 layer_mask: impl ::core::convert::Into<crate::unity_engine::layermask::LayerMask>,
117 copy_depth_material: impl ::core::convert::Into<crate::unity_engine::material::Material>,
118 ) -> () {
119 unsafe {
120 let __receiver = <CustomDecalsPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
121 ::unity::il2cpp_call!((::unity::module_base()+0x2a455f0usize)as*mut u8,();
122(CustomDecalsPass)__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(copy_depth_material))
123 }
124 }
125 #[doc = "`Execute(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData)` overload"]
126 fn execute(
127 self,
128 context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
129 ) -> crate::unity_engine::rendering::universal::renderingdata::RenderingData {
130 unsafe {
131 let __receiver = <CustomDecalsPass 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::universal::renderingdata::RenderingData>::uninit();
133 {
134 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
135 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
136 panic!(
137 "unity: virtual slot {}
138 out of range (vtable len {}
139) on the runtime class behind {}
140 (method `{}
141`)",
142 9usize,
143 __vt.len(),
144 <CustomDecalsPass as ::unity::ClassIdentity>::NAME,
145 "Execute",
146 )
147 });
148 let __inner: extern "C" fn(
149 CustomDecalsPass,
150 crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
151 *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
152 ::unity::OptionalMethod,
153 ) -> () = ::core::mem::transmute(__vi.method_ptr);
154 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
155 __inner(__receiver, ::core::convert::Into::into(context), __out_0.as_mut_ptr(), __mi)
156 };
157 __out_0.assume_init()
158 }
159 }
160 #[doc = "`OnCameraCleanup(crate::unity_engine::rendering::commandbuffer::CommandBuffer)` overload"]
161 fn on_camera_cleanup(self, cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>) -> () {
162 unsafe {
163 let __receiver = <CustomDecalsPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
164 {
165 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
166 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
167 panic!(
168 "unity: virtual slot {}
169 out of range (vtable len {}
170) on the runtime class behind {}
171 (method `{}
172`)",
173 7usize,
174 __vt.len(),
175 <CustomDecalsPass as ::unity::ClassIdentity>::NAME,
176 "OnCameraCleanup",
177 )
178 });
179 let __inner: extern "C" fn(
180 CustomDecalsPass,
181 crate::unity_engine::rendering::commandbuffer::CommandBuffer,
182 ::unity::OptionalMethod,
183 ) -> () = ::core::mem::transmute(__vi.method_ptr);
184 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
185 __inner(__receiver, ::core::convert::Into::into(cmd), __mi)
186 }
187 }
188 }
189 #[doc = "`SetOcclusionParams(crate::unity_engine::rendering::universal::custom::decalocclusionparams::DecalOcclusionParams)` overload"]
190 fn set_occlusion_params(
191 self,
192 p: impl ::core::convert::Into<crate::unity_engine::rendering::universal::custom::decalocclusionparams::DecalOcclusionParams>,
193 ) -> () {
194 unsafe {
195 let __receiver = <CustomDecalsPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
196 ::unity::il2cpp_call!((::unity::module_base()+0x2a46480usize)as*mut u8,();
197(CustomDecalsPass)__receiver,(crate::unity_engine::rendering::universal::custom::decalocclusionparams::DecalOcclusionParams)::core::convert::Into::into(p))
198 }
199 }
200}
201
202#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customdecalspass")]
203impl<__T: ICustomDecalsPass> ICustomDecalsPassMethods for __T {}
204
205#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customdecalspass")]
206impl CustomDecalsPass {
207 pub fn get_pre_color_attachment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
209 }
210
211 pub fn set_pre_color_attachment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
213 }
214
215 pub fn get_pre_depth_attachment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
217 }
218
219 pub fn set_pre_depth_attachment_method_info() -> &'static ::unity::il2cpp::MethodInfo {
220 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
221 }
222
223 pub fn get_src_depth_method_info() -> &'static ::unity::il2cpp::MethodInfo {
224 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
225 }
226
227 pub fn set_src_depth_method_info() -> &'static ::unity::il2cpp::MethodInfo {
228 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
229 }
230
231 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
232 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
233 }
234
235 pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
236 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
237 }
238
239 pub fn on_camera_cleanup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
240 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
241 }
242
243 pub fn set_occlusion_params_method_info() -> &'static ::unity::il2cpp::MethodInfo {
244 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
245 }
246}
247
248#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customdecalspass")]
249impl CustomDecalsPass {
250 #[doc = "Direct (non-virtual) call to `CustomDecalsPass`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
251 pub unsafe fn execute(
252 this: impl ::core::convert::Into<::unity::IlInstance>,
253 context: crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
254 rendering_data: *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
255 ) -> () {
256 let __mi = Self::execute_method_info();
257 let __inner: extern "C" fn(
258 ::unity::IlInstance,
259 crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
260 *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
261 ::unity::OptionalMethod,
262 ) -> () = ::core::mem::transmute(__mi.method_ptr);
263 __inner(this.into(), context, rendering_data, ::core::option::Option::None)
264 }
265
266 #[doc = "Direct (non-virtual) call to `CustomDecalsPass`'s own `OnCameraCleanup`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
267 pub unsafe fn on_camera_cleanup(
268 this: impl ::core::convert::Into<::unity::IlInstance>,
269 cmd: crate::unity_engine::rendering::commandbuffer::CommandBuffer,
270 ) -> () {
271 let __mi = Self::on_camera_cleanup_method_info();
272 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rendering::commandbuffer::CommandBuffer, ::unity::OptionalMethod) -> () =
273 ::core::mem::transmute(__mi.method_ptr);
274 __inner(this.into(), cmd, ::core::option::Option::None)
275 }
276}
277
278#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customdecalspass")]
279impl CustomDecalsPass {
280 #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, crate::unity_engine::layermask::LayerMask, crate::unity_engine::material::Material)` — overload selector"]
281 pub fn new(
282 evt: crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent,
283 layer_mask: crate::unity_engine::layermask::LayerMask,
284 copy_depth_material: crate::unity_engine::material::Material,
285 ) -> Self {
286 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
287 panic!(
288 "{}
289::{}
290 failed to instantiate",
291 ::core::stringify!(CustomDecalsPass),
292 ::core::stringify!(new),
293 )
294 });
295 <Self as ICustomDecalsPassMethods>::ctor(this, evt, layer_mask, copy_depth_material);
296 this
297 }
298}
299
300#[cfg(feature = "unity_engine-rendering-universal-custom-internal-customdecalspass")]
301#[doc(hidden)]
302pub mod prelude {
303 pub use super::{CustomDecalsPass, ICustomDecalsPass, ICustomDecalsPassMethods};
304 #[cfg(feature = "system-object")]
305 pub use crate::system::object::IObjectMethods;
306 #[cfg(feature = "unity_engine-rendering-universal-scriptablerenderpass")]
307 pub use crate::unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPassMethods;
308 pub use crate::{system::object::IObject, unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPass};
309}