engage/generated/unity_engine/rendering/universal/internal/
depthnormalonlypass.rs1#[cfg(feature = "unity_engine-rendering-universal-internal-depthnormalonlypass-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/internal/depthnormalonlypass/DepthNormalOnlyPass.md"))]
14 #[::unity::class(namespace = "UnityEngine.Rendering.Universal.Internal", name = "DepthNormalOnlyPass")]
15 #[parent(crate::unity_engine::rendering::universal::scriptablerenderpass::ScriptableRenderPass)]
16 pub struct DepthNormalOnlyPass {
17 #[offset(312)]
18 #[rename(name = "m_ShaderTagId")]
19 pub m_shader_tag_id: crate::unity_engine::rendering::shadertagid::ShaderTagId,
20 #[offset(316)]
21 #[rename(name = "m_FilteringSettings")]
22 pub m_filtering_settings: crate::unity_engine::rendering::filteringsettings::FilteringSettings,
23 #[static_field]
24 #[rename(name = "k_DepthBufferBits")]
25 pub k_depth_buffer_bits: i32,
26 }
27}
28
29#[cfg(feature = "unity_engine-rendering-universal-internal-depthnormalonlypass-types")]
30pub use __types::*;
31
32#[cfg(feature = "unity_engine-rendering-universal-internal-depthnormalonlypass")]
33pub trait IDepthNormalOnlyPassMethods: IDepthNormalOnlyPass {
34 #[doc = "`get_normalDescriptor()` overload"]
35 fn get_normal_descriptor(self) -> crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor {
36 unsafe {
37 let __receiver = <DepthNormalOnlyPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
38 ::unity::il2cpp_call!((::unity::module_base()+0x2ee7010usize)as*mut u8,crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor;
39(DepthNormalOnlyPass)__receiver)
40 }
41 }
42 #[doc = "`set_normalDescriptor(crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor)` overload"]
43 fn set_normal_descriptor(self, value: impl ::core::convert::Into<crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor>) -> () {
44 unsafe {
45 let __receiver = <DepthNormalOnlyPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
46 ::unity::il2cpp_call!((::unity::module_base()+0x2ee7040usize)as*mut u8,();
47(DepthNormalOnlyPass)__receiver,(crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor)::core::convert::Into::into(value))
48 }
49 }
50 #[doc = "`get_depthDescriptor()` overload"]
51 fn get_depth_descriptor(self) -> crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor {
52 unsafe {
53 let __receiver = <DepthNormalOnlyPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
54 ::unity::il2cpp_call!((::unity::module_base()+0x2ee7060usize)as*mut u8,crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor;
55(DepthNormalOnlyPass)__receiver)
56 }
57 }
58 #[doc = "`set_depthDescriptor(crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor)` overload"]
59 fn set_depth_descriptor(self, value: impl ::core::convert::Into<crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor>) -> () {
60 unsafe {
61 let __receiver = <DepthNormalOnlyPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
62 ::unity::il2cpp_call!((::unity::module_base()+0x2ee70a0usize)as*mut u8,();
63(DepthNormalOnlyPass)__receiver,(crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor)::core::convert::Into::into(value))
64 }
65 }
66 #[doc = "`get_depthHandle()` overload"]
67 fn get_depth_handle(self) -> crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle {
68 unsafe {
69 let __receiver = <DepthNormalOnlyPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
70 ::unity::il2cpp_call!((::unity::module_base()+0x2ee70c0usize)as*mut u8,crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle;
71(DepthNormalOnlyPass)__receiver)
72 }
73 }
74 #[doc = "`set_depthHandle(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)` overload"]
75 fn set_depth_handle(
76 self,
77 value: impl ::core::convert::Into<crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle>,
78 ) -> () {
79 unsafe {
80 let __receiver = <DepthNormalOnlyPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
81 ::unity::il2cpp_call!((::unity::module_base()+0x2ee70e0usize)as*mut u8,();
82(DepthNormalOnlyPass)__receiver,(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)::core::convert::Into::into(value))
83 }
84 }
85 #[doc = "`get_normalHandle()` overload"]
86 fn get_normal_handle(self) -> crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle {
87 unsafe {
88 let __receiver = <DepthNormalOnlyPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
89 ::unity::il2cpp_call!((::unity::module_base()+0x2ee7100usize)as*mut u8,crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle;
90(DepthNormalOnlyPass)__receiver)
91 }
92 }
93 #[doc = "`set_normalHandle(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)` overload"]
94 fn set_normal_handle(
95 self,
96 value: impl ::core::convert::Into<crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle>,
97 ) -> () {
98 unsafe {
99 let __receiver = <DepthNormalOnlyPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
100 ::unity::il2cpp_call!((::unity::module_base()+0x2ee7120usize)as*mut u8,();
101(DepthNormalOnlyPass)__receiver,(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)::core::convert::Into::into(value))
102 }
103 }
104 #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, crate::unity_engine::rendering::renderqueuerange::RenderQueueRange, crate::unity_engine::layermask::LayerMask)` overload"]
105 fn ctor(
106 self,
107 evt: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent>,
108 render_queue_range: impl ::core::convert::Into<crate::unity_engine::rendering::renderqueuerange::RenderQueueRange>,
109 layer_mask: impl ::core::convert::Into<crate::unity_engine::layermask::LayerMask>,
110 ) -> () {
111 unsafe {
112 let __receiver = <DepthNormalOnlyPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
113 ::unity::il2cpp_call!((::unity::module_base()+0x2ee7140usize)as*mut u8,();
114(DepthNormalOnlyPass)__receiver,(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))
115 }
116 }
117 #[doc = "`Setup(crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor, crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle, crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)` overload"]
118 fn setup(
119 self,
120 base_descriptor: impl ::core::convert::Into<crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor>,
121 depth_handle: impl ::core::convert::Into<crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle>,
122 normal_handle: impl ::core::convert::Into<crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle>,
123 ) -> () {
124 unsafe {
125 let __receiver = <DepthNormalOnlyPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
126 ::unity::il2cpp_call!((::unity::module_base()+0x2ee72b0usize)as*mut u8,();
127(DepthNormalOnlyPass)__receiver,(crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor)::core::convert::Into::into(base_descriptor),(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)::core::convert::Into::into(depth_handle),(crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle)::core::convert::Into::into(normal_handle))
128 }
129 }
130 #[doc = "`OnCameraSetup(crate::unity_engine::rendering::commandbuffer::CommandBuffer, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData)` overload"]
131 fn on_camera_setup(
132 self,
133 cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
134 ) -> crate::unity_engine::rendering::universal::renderingdata::RenderingData {
135 unsafe {
136 let __receiver = <DepthNormalOnlyPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::renderingdata::RenderingData>::uninit();
138 {
139 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
140 let __vi = *__vt.get(5usize).unwrap_or_else(|| {
141 panic!(
142 "unity: virtual slot {}
143 out of range (vtable len {}
144) on the runtime class behind {}
145 (method `{}
146`)",
147 5usize,
148 __vt.len(),
149 <DepthNormalOnlyPass as ::unity::ClassIdentity>::NAME,
150 "OnCameraSetup",
151 )
152 });
153 let __inner: extern "C" fn(
154 DepthNormalOnlyPass,
155 crate::unity_engine::rendering::commandbuffer::CommandBuffer,
156 *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
157 ::unity::OptionalMethod,
158 ) -> () = ::core::mem::transmute(__vi.method_ptr);
159 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
160 __inner(__receiver, ::core::convert::Into::into(cmd), __out_0.as_mut_ptr(), __mi)
161 };
162 __out_0.assume_init()
163 }
164 }
165 #[doc = "`Execute(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData)` overload"]
166 fn execute(
167 self,
168 context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
169 ) -> crate::unity_engine::rendering::universal::renderingdata::RenderingData {
170 unsafe {
171 let __receiver = <DepthNormalOnlyPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
172 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::renderingdata::RenderingData>::uninit();
173 {
174 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
175 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
176 panic!(
177 "unity: virtual slot {}
178 out of range (vtable len {}
179) on the runtime class behind {}
180 (method `{}
181`)",
182 9usize,
183 __vt.len(),
184 <DepthNormalOnlyPass as ::unity::ClassIdentity>::NAME,
185 "Execute",
186 )
187 });
188 let __inner: extern "C" fn(
189 DepthNormalOnlyPass,
190 crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
191 *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
192 ::unity::OptionalMethod,
193 ) -> () = ::core::mem::transmute(__vi.method_ptr);
194 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
195 __inner(__receiver, ::core::convert::Into::into(context), __out_0.as_mut_ptr(), __mi)
196 };
197 __out_0.assume_init()
198 }
199 }
200 #[doc = "`OnCameraCleanup(crate::unity_engine::rendering::commandbuffer::CommandBuffer)` overload"]
201 fn on_camera_cleanup(self, cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>) -> () {
202 unsafe {
203 let __receiver = <DepthNormalOnlyPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
204 {
205 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
206 let __vi = *__vt.get(7usize).unwrap_or_else(|| {
207 panic!(
208 "unity: virtual slot {}
209 out of range (vtable len {}
210) on the runtime class behind {}
211 (method `{}
212`)",
213 7usize,
214 __vt.len(),
215 <DepthNormalOnlyPass as ::unity::ClassIdentity>::NAME,
216 "OnCameraCleanup",
217 )
218 });
219 let __inner: extern "C" fn(
220 DepthNormalOnlyPass,
221 crate::unity_engine::rendering::commandbuffer::CommandBuffer,
222 ::unity::OptionalMethod,
223 ) -> () = ::core::mem::transmute(__vi.method_ptr);
224 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
225 __inner(__receiver, ::core::convert::Into::into(cmd), __mi)
226 }
227 }
228 }
229}
230
231#[cfg(feature = "unity_engine-rendering-universal-internal-depthnormalonlypass")]
232impl<__T: IDepthNormalOnlyPass> IDepthNormalOnlyPassMethods for __T {}
233
234#[cfg(feature = "unity_engine-rendering-universal-internal-depthnormalonlypass")]
235impl DepthNormalOnlyPass {
236 pub fn get_normal_descriptor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
237 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
238 }
239
240 pub fn set_normal_descriptor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
241 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
242 }
243
244 pub fn get_depth_descriptor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
245 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
246 }
247
248 pub fn set_depth_descriptor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
249 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
250 }
251
252 pub fn get_depth_handle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
253 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
254 }
255
256 pub fn set_depth_handle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
257 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
258 }
259
260 pub fn get_normal_handle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
261 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
262 }
263
264 pub fn set_normal_handle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
265 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
266 }
267
268 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
269 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
270 }
271
272 pub fn setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
273 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
274 }
275
276 pub fn on_camera_setup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
277 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
278 }
279
280 pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
281 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
282 }
283
284 pub fn on_camera_cleanup_method_info() -> &'static ::unity::il2cpp::MethodInfo {
285 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
286 }
287}
288
289#[cfg(feature = "unity_engine-rendering-universal-internal-depthnormalonlypass")]
290impl DepthNormalOnlyPass {
291 #[doc = "Direct (non-virtual) call to `DepthNormalOnlyPass`'s own `OnCameraSetup`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
292 pub unsafe fn on_camera_setup(
293 this: impl ::core::convert::Into<::unity::IlInstance>,
294 cmd: crate::unity_engine::rendering::commandbuffer::CommandBuffer,
295 rendering_data: *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
296 ) -> () {
297 let __mi = Self::on_camera_setup_method_info();
298 let __inner: extern "C" fn(
299 ::unity::IlInstance,
300 crate::unity_engine::rendering::commandbuffer::CommandBuffer,
301 *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
302 ::unity::OptionalMethod,
303 ) -> () = ::core::mem::transmute(__mi.method_ptr);
304 __inner(this.into(), cmd, rendering_data, ::core::option::Option::None)
305 }
306
307 #[doc = "Direct (non-virtual) call to `DepthNormalOnlyPass`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
308 pub unsafe fn execute(
309 this: impl ::core::convert::Into<::unity::IlInstance>,
310 context: crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
311 rendering_data: *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
312 ) -> () {
313 let __mi = Self::execute_method_info();
314 let __inner: extern "C" fn(
315 ::unity::IlInstance,
316 crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
317 *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
318 ::unity::OptionalMethod,
319 ) -> () = ::core::mem::transmute(__mi.method_ptr);
320 __inner(this.into(), context, rendering_data, ::core::option::Option::None)
321 }
322
323 #[doc = "Direct (non-virtual) call to `DepthNormalOnlyPass`'s own `OnCameraCleanup`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
324 pub unsafe fn on_camera_cleanup(
325 this: impl ::core::convert::Into<::unity::IlInstance>,
326 cmd: crate::unity_engine::rendering::commandbuffer::CommandBuffer,
327 ) -> () {
328 let __mi = Self::on_camera_cleanup_method_info();
329 let __inner: extern "C" fn(::unity::IlInstance, crate::unity_engine::rendering::commandbuffer::CommandBuffer, ::unity::OptionalMethod) -> () =
330 ::core::mem::transmute(__mi.method_ptr);
331 __inner(this.into(), cmd, ::core::option::Option::None)
332 }
333}
334
335#[cfg(feature = "unity_engine-rendering-universal-internal-depthnormalonlypass")]
336impl DepthNormalOnlyPass {
337 #[doc = "`.ctor(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, crate::unity_engine::rendering::renderqueuerange::RenderQueueRange, crate::unity_engine::layermask::LayerMask)` — overload selector"]
338 pub fn new(
339 evt: crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent,
340 render_queue_range: crate::unity_engine::rendering::renderqueuerange::RenderQueueRange,
341 layer_mask: crate::unity_engine::layermask::LayerMask,
342 ) -> Self {
343 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
344 panic!(
345 "{}
346::{}
347 failed to instantiate",
348 ::core::stringify!(DepthNormalOnlyPass),
349 ::core::stringify!(new),
350 )
351 });
352 <Self as IDepthNormalOnlyPassMethods>::ctor(this, evt, render_queue_range, layer_mask);
353 this
354 }
355}
356
357#[cfg(feature = "unity_engine-rendering-universal-internal-depthnormalonlypass")]
358#[doc(hidden)]
359pub mod prelude {
360 pub use super::{DepthNormalOnlyPass, IDepthNormalOnlyPass, IDepthNormalOnlyPassMethods};
361 #[cfg(feature = "system-object")]
362 pub use crate::system::object::IObjectMethods;
363 #[cfg(feature = "unity_engine-rendering-universal-scriptablerenderpass")]
364 pub use crate::unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPassMethods;
365 pub use crate::{system::object::IObject, unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPass};
366}