1#[cfg(feature = "unity_engine-experimental-rendering-universal-renderobjectspass-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/experimental/rendering/universal/renderobjectspass/RenderObjectsPass.md"))]
14 #[::unity::class(namespace = "UnityEngine.Experimental.Rendering.Universal", name = "RenderObjectsPass")]
15 #[parent(crate::unity_engine::rendering::universal::scriptablerenderpass::ScriptableRenderPass)]
16 pub struct RenderObjectsPass {
17 #[offset(112)]
18 #[rename(name = "renderQueueType")]
19 pub render_queue_type: crate::unity_engine::experimental::rendering::universal::renderqueuetype::RenderQueueType,
20 #[offset(116)]
21 #[rename(name = "m_FilteringSettings")]
22 pub m_filtering_settings: crate::unity_engine::rendering::filteringsettings::FilteringSettings,
23 #[offset(144)]
24 #[rename(name = "m_CameraSettings")]
25 pub m_camera_settings: crate::unity_engine::experimental::rendering::universal::renderobjects::RenderObjects_CustomCameraSettings,
26 #[offset(152)]
27 #[rename(name = "m_ProfilerTag")]
28 pub m_profiler_tag: ::unity::Il2CppString,
29 #[offset(160)]
30 #[rename(name = "m_ProfilingSampler")]
31 pub m_profiling_sampler: crate::unity_engine::rendering::profilingsampler::ProfilingSampler,
32 #[offset(184)]
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(192)]
36 #[rename(name = "m_RenderStateBlock")]
37 pub m_render_state_block: crate::unity_engine::rendering::renderstateblock::RenderStateBlock,
38 }
39}
40
41#[cfg(feature = "unity_engine-experimental-rendering-universal-renderobjectspass-types")]
42pub use __types::*;
43
44#[cfg(feature = "unity_engine-experimental-rendering-universal-renderobjectspass")]
45pub trait IRenderObjectsPassMethods: IRenderObjectsPass {
46 #[doc = "`get_overrideMaterial()` overload"]
47 fn get_override_material(self) -> crate::unity_engine::material::Material {
48 unsafe {
49 let __receiver = <RenderObjectsPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
50 ::unity::il2cpp_call!((::unity::module_base()+0x31a9b20usize)as*mut u8,crate::unity_engine::material::Material;
51(RenderObjectsPass)__receiver)
52 }
53 }
54 #[doc = "`set_overrideMaterial(crate::unity_engine::material::Material)` overload"]
55 fn set_override_material(self, value: impl ::core::convert::Into<crate::unity_engine::material::Material>) -> () {
56 unsafe {
57 let __receiver = <RenderObjectsPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
58 ::unity::il2cpp_call!((::unity::module_base()+0x31a9b30usize)as*mut u8,();
59(RenderObjectsPass)__receiver,(crate::unity_engine::material::Material)::core::convert::Into::into(value))
60 }
61 }
62 #[doc = "`get_overrideMaterialPassIndex()` overload"]
63 fn get_override_material_pass_index(self) -> i32 {
64 unsafe {
65 let __receiver = <RenderObjectsPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
66 ::unity::il2cpp_call!((::unity::module_base()+0x31a9b40usize)as*mut u8,i32;
67(RenderObjectsPass)__receiver)
68 }
69 }
70 #[doc = "`set_overrideMaterialPassIndex(i32)` overload"]
71 fn set_override_material_pass_index(self, value: impl ::core::convert::Into<i32>) -> () {
72 unsafe {
73 let __receiver = <RenderObjectsPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
74 ::unity::il2cpp_call!((::unity::module_base()+0x31a9b50usize)as*mut u8,();
75(RenderObjectsPass)__receiver,(i32)::core::convert::Into::into(value))
76 }
77 }
78 #[doc = "`SetDetphState(bool, crate::unity_engine::rendering::comparefunction::CompareFunction)` overload"]
79 fn set_detph_state(
80 self,
81 write_enabled: impl ::core::convert::Into<bool>,
82 function: impl ::core::convert::Into<crate::unity_engine::rendering::comparefunction::CompareFunction>,
83 ) -> () {
84 unsafe {
85 let __receiver = <RenderObjectsPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
86 ::unity::il2cpp_call!((::unity::module_base()+0x31a9920usize)as*mut u8,();
87(RenderObjectsPass)__receiver,(bool)::core::convert::Into::into(write_enabled),(crate::unity_engine::rendering::comparefunction::CompareFunction)::core::convert::Into::into(function))
88 }
89 }
90 #[doc = "`SetStencilState(i32, crate::unity_engine::rendering::comparefunction::CompareFunction, crate::unity_engine::rendering::stencilop::StencilOp, crate::unity_engine::rendering::stencilop::StencilOp, crate::unity_engine::rendering::stencilop::StencilOp)` overload"]
91 fn set_stencil_state(
92 self,
93 reference: impl ::core::convert::Into<i32>,
94 compare_function: impl ::core::convert::Into<crate::unity_engine::rendering::comparefunction::CompareFunction>,
95 pass_op: impl ::core::convert::Into<crate::unity_engine::rendering::stencilop::StencilOp>,
96 fail_op: impl ::core::convert::Into<crate::unity_engine::rendering::stencilop::StencilOp>,
97 z_fail_op: impl ::core::convert::Into<crate::unity_engine::rendering::stencilop::StencilOp>,
98 ) -> () {
99 unsafe {
100 let __receiver = <RenderObjectsPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
101 ::unity::il2cpp_call!((::unity::module_base()+0x31a9990usize)as*mut u8,();
102(RenderObjectsPass)__receiver,(i32)::core::convert::Into::into(reference),(crate::unity_engine::rendering::comparefunction::CompareFunction)::core::convert::Into::into(compare_function),(crate::unity_engine::rendering::stencilop::StencilOp)::core::convert::Into::into(pass_op),(crate::unity_engine::rendering::stencilop::StencilOp)::core::convert::Into::into(fail_op),(crate::unity_engine::rendering::stencilop::StencilOp)::core::convert::Into::into(z_fail_op))
103 }
104 }
105 #[doc = "`.ctor(::unity::Il2CppString, crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, ::unity::Array<::unity::Il2CppString>, crate::unity_engine::experimental::rendering::universal::renderqueuetype::RenderQueueType, i32, crate::unity_engine::experimental::rendering::universal::renderobjects::RenderObjects_CustomCameraSettings)` overload"]
106 fn ctor(
107 self,
108 profiler_tag: impl ::core::convert::Into<::unity::Il2CppString>,
109 render_pass_event: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent>,
110 shader_tags: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>,
111 render_queue_type: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::renderqueuetype::RenderQueueType>,
112 layer_mask: impl ::core::convert::Into<i32>,
113 camera_settings: impl ::core::convert::Into<
114 crate::unity_engine::experimental::rendering::universal::renderobjects::RenderObjects_CustomCameraSettings,
115 >,
116 ) -> () {
117 unsafe {
118 let __receiver = <RenderObjectsPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
119 ::unity::il2cpp_call!((::unity::module_base()+0x31a94f0usize)as*mut u8,();
120(RenderObjectsPass)__receiver,(::unity::Il2CppString)::core::convert::Into::into(profiler_tag),(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent)::core::convert::Into::into(render_pass_event),(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(shader_tags),(crate::unity_engine::experimental::rendering::universal::renderqueuetype::RenderQueueType)::core::convert::Into::into(render_queue_type),(i32)::core::convert::Into::into(layer_mask),(crate::unity_engine::experimental::rendering::universal::renderobjects::RenderObjects_CustomCameraSettings)::core::convert::Into::into(camera_settings))
121 }
122 }
123 #[doc = "`.ctor(crate::unity_engine::rendering::universal::urpprofileid::URPProfileId, crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, ::unity::Array<::unity::Il2CppString>, crate::unity_engine::experimental::rendering::universal::renderqueuetype::RenderQueueType, i32, crate::unity_engine::experimental::rendering::universal::renderobjects::RenderObjects_CustomCameraSettings)` overload"]
124 fn ctor_2(
125 self,
126 profile_id: impl ::core::convert::Into<crate::unity_engine::rendering::universal::urpprofileid::URPProfileId>,
127 render_pass_event: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent>,
128 shader_tags: impl ::core::convert::Into<::unity::Array<::unity::Il2CppString>>,
129 render_queue_type: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::renderqueuetype::RenderQueueType>,
130 layer_mask: impl ::core::convert::Into<i32>,
131 camera_settings: impl ::core::convert::Into<
132 crate::unity_engine::experimental::rendering::universal::renderobjects::RenderObjects_CustomCameraSettings,
133 >,
134 ) -> () {
135 unsafe {
136 let __receiver = <RenderObjectsPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
137 ::unity::il2cpp_call!((::unity::module_base()+0x31a9b60usize)as*mut u8,();
138(RenderObjectsPass)__receiver,(crate::unity_engine::rendering::universal::urpprofileid::URPProfileId)::core::convert::Into::into(profile_id),(crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent)::core::convert::Into::into(render_pass_event),(::unity::Array< ::unity::Il2CppString>)::core::convert::Into::into(shader_tags),(crate::unity_engine::experimental::rendering::universal::renderqueuetype::RenderQueueType)::core::convert::Into::into(render_queue_type),(i32)::core::convert::Into::into(layer_mask),(crate::unity_engine::experimental::rendering::universal::renderobjects::RenderObjects_CustomCameraSettings)::core::convert::Into::into(camera_settings))
139 }
140 }
141 #[doc = "`Execute(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, *mutcrate::unity_engine::rendering::universal::renderingdata::RenderingData)` overload"]
142 fn execute(
143 self,
144 context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
145 ) -> crate::unity_engine::rendering::universal::renderingdata::RenderingData {
146 unsafe {
147 let __receiver = <RenderObjectsPass as ::unity::FromIlInstance>::from_il_instance(<Self as ::unity::SystemObject>::as_instance(self));
148 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::rendering::universal::renderingdata::RenderingData>::uninit();
149 {
150 let __vt = ::unity::Cast::get_class(__receiver).raw().get_vtable();
151 let __vi = *__vt.get(9usize).unwrap_or_else(|| {
152 panic!(
153 "unity: virtual slot {}
154 out of range (vtable len {}
155) on the runtime class behind {}
156 (method `{}
157`)",
158 9usize,
159 __vt.len(),
160 <RenderObjectsPass as ::unity::ClassIdentity>::NAME,
161 "Execute",
162 )
163 });
164 let __inner: extern "C" fn(
165 RenderObjectsPass,
166 crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
167 *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
168 ::unity::OptionalMethod,
169 ) -> () = ::core::mem::transmute(__vi.method_ptr);
170 let __mi: ::unity::OptionalMethod = ::core::option::Option::Some(&*(__vi.method_info as *const ::unity::MethodInfo as *const ()));
171 __inner(__receiver, ::core::convert::Into::into(context), __out_0.as_mut_ptr(), __mi)
172 };
173 __out_0.assume_init()
174 }
175 }
176}
177
178#[cfg(feature = "unity_engine-experimental-rendering-universal-renderobjectspass")]
179impl<__T: IRenderObjectsPass> IRenderObjectsPassMethods for __T {}
180
181#[cfg(feature = "unity_engine-experimental-rendering-universal-renderobjectspass")]
182impl RenderObjectsPass {
183 pub fn get_override_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
184 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
185 }
186
187 pub fn set_override_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
188 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
189 }
190
191 pub fn get_override_material_pass_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
192 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
193 }
194
195 pub fn set_override_material_pass_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
196 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
197 }
198
199 pub fn set_detph_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
200 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
201 }
202
203 pub fn set_stencil_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
204 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
205 }
206
207 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
208 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
209 }
210
211 pub fn ctor_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
212 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
213 }
214
215 pub fn execute_method_info() -> &'static ::unity::il2cpp::MethodInfo {
216 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
217 }
218}
219
220#[cfg(feature = "unity_engine-experimental-rendering-universal-renderobjectspass")]
221impl RenderObjectsPass {
222 #[doc = "Direct (non-virtual) call to `RenderObjectsPass`'s own `Execute`. Bypasses the vtable, so it won't hit an override/patch — use it for base calls."]
223 pub unsafe fn execute(
224 this: impl ::core::convert::Into<::unity::IlInstance>,
225 context: crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
226 rendering_data: *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
227 ) -> () {
228 let __mi = Self::execute_method_info();
229 let __inner: extern "C" fn(
230 ::unity::IlInstance,
231 crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext,
232 *mut crate::unity_engine::rendering::universal::renderingdata::RenderingData,
233 ::unity::OptionalMethod,
234 ) -> () = ::core::mem::transmute(__mi.method_ptr);
235 __inner(this.into(), context, rendering_data, ::core::option::Option::None)
236 }
237}
238
239#[cfg(feature = "unity_engine-experimental-rendering-universal-renderobjectspass")]
240impl RenderObjectsPass {
241 #[doc = "`.ctor(::unity::Il2CppString, crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, ::unity::Array<::unity::Il2CppString>, crate::unity_engine::experimental::rendering::universal::renderqueuetype::RenderQueueType, i32, crate::unity_engine::experimental::rendering::universal::renderobjects::RenderObjects_CustomCameraSettings)` — overload selector"]
242 pub fn new(
243 profiler_tag: ::unity::Il2CppString,
244 render_pass_event: crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent,
245 shader_tags: ::unity::Array<::unity::Il2CppString>,
246 render_queue_type: crate::unity_engine::experimental::rendering::universal::renderqueuetype::RenderQueueType,
247 layer_mask: i32,
248 camera_settings: crate::unity_engine::experimental::rendering::universal::renderobjects::RenderObjects_CustomCameraSettings,
249 ) -> Self {
250 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
251 panic!(
252 "{}
253::{}
254 failed to instantiate",
255 ::core::stringify!(RenderObjectsPass),
256 ::core::stringify!(new),
257 )
258 });
259 <Self as IRenderObjectsPassMethods>::ctor(
260 this,
261 profiler_tag,
262 render_pass_event,
263 shader_tags,
264 render_queue_type,
265 layer_mask,
266 camera_settings,
267 );
268 this
269 }
270
271 #[doc = "`.ctor(crate::unity_engine::rendering::universal::urpprofileid::URPProfileId, crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent, ::unity::Array<::unity::Il2CppString>, crate::unity_engine::experimental::rendering::universal::renderqueuetype::RenderQueueType, i32, crate::unity_engine::experimental::rendering::universal::renderobjects::RenderObjects_CustomCameraSettings)` — overload selector"]
272 pub fn new_2(
273 profile_id: crate::unity_engine::rendering::universal::urpprofileid::URPProfileId,
274 render_pass_event: crate::unity_engine::rendering::universal::renderpassevent::RenderPassEvent,
275 shader_tags: ::unity::Array<::unity::Il2CppString>,
276 render_queue_type: crate::unity_engine::experimental::rendering::universal::renderqueuetype::RenderQueueType,
277 layer_mask: i32,
278 camera_settings: crate::unity_engine::experimental::rendering::universal::renderobjects::RenderObjects_CustomCameraSettings,
279 ) -> Self {
280 let this = <Self as ::unity::FromIlInstance>::instantiate().unwrap_or_else(|| {
281 panic!(
282 "{}
283::{}
284 failed to instantiate",
285 ::core::stringify!(RenderObjectsPass),
286 ::core::stringify!(new_2),
287 )
288 });
289 <Self as IRenderObjectsPassMethods>::ctor_2(
290 this,
291 profile_id,
292 render_pass_event,
293 shader_tags,
294 render_queue_type,
295 layer_mask,
296 camera_settings,
297 );
298 this
299 }
300}
301
302#[cfg(feature = "unity_engine-experimental-rendering-universal-renderobjectspass")]
303#[doc(hidden)]
304pub mod prelude {
305 pub use super::{IRenderObjectsPass, IRenderObjectsPassMethods, RenderObjectsPass};
306 #[cfg(feature = "system-object")]
307 pub use crate::system::object::IObjectMethods;
308 #[cfg(feature = "unity_engine-rendering-universal-scriptablerenderpass")]
309 pub use crate::unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPassMethods;
310 pub use crate::{system::object::IObject, unity_engine::rendering::universal::scriptablerenderpass::IScriptableRenderPass};
311}