1#[cfg(feature = "unity_engine-experimental-rendering-universal-rendererlighting-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::object::{IObject, Object};
9
10 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/universal/rendererlighting/RendererLighting.md"))]
11 #[::unity::class(namespace = "UnityEngine.Experimental.Rendering.Universal", name = "RendererLighting")]
12 #[parent(crate::system::object::Object)]
13 pub struct RendererLighting {
14 #[static_field]
15 #[rename(name = "m_ProfilingSampler")]
16 pub m_profiling_sampler: crate::unity_engine::rendering::profilingsampler::ProfilingSampler,
17 #[static_field]
18 #[rename(name = "k_NormalsRenderingPassName")]
19 pub k_normals_rendering_pass_name: crate::unity_engine::rendering::shadertagid::ShaderTagId,
20 #[static_field]
21 #[rename(name = "k_NormalClearColor")]
22 pub k_normal_clear_color: crate::unity_engine::color::Color,
23 #[static_field]
24 #[rename(name = "k_SpriteLightKeyword")]
25 pub k_sprite_light_keyword: ::unity::Il2CppString,
26 #[static_field]
27 #[rename(name = "k_UsePointLightCookiesKeyword")]
28 pub k_use_point_light_cookies_keyword: ::unity::Il2CppString,
29 #[static_field]
30 #[rename(name = "k_LightQualityFastKeyword")]
31 pub k_light_quality_fast_keyword: ::unity::Il2CppString,
32 #[static_field]
33 #[rename(name = "k_UseNormalMap")]
34 pub k_use_normal_map: ::unity::Il2CppString,
35 #[static_field]
36 #[rename(name = "k_UseAdditiveBlendingKeyword")]
37 pub k_use_additive_blending_keyword: ::unity::Il2CppString,
38 #[static_field]
39 #[rename(name = "k_UseBlendStyleKeywords")]
40 pub k_use_blend_style_keywords: ::unity::Array<::unity::Il2CppString>,
41 #[static_field]
42 #[rename(name = "k_BlendFactorsPropIDs")]
43 pub k_blend_factors_prop_i_ds: ::unity::Array<i32>,
44 #[static_field]
45 #[rename(name = "k_MaskFilterPropIDs")]
46 pub k_mask_filter_prop_i_ds: ::unity::Array<i32>,
47 #[static_field]
48 #[rename(name = "k_InvertedFilterPropIDs")]
49 pub k_inverted_filter_prop_i_ds: ::unity::Array<i32>,
50 #[static_field]
51 #[rename(name = "s_RenderTextureFormatToUse")]
52 pub s_render_texture_format_to_use: crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat,
53 #[static_field]
54 #[rename(name = "s_HasSetupRenderTextureFormatToUse")]
55 pub s_has_setup_render_texture_format_to_use: bool,
56 #[static_field]
57 #[rename(name = "k_SrcBlendID")]
58 pub k_src_blend_id: i32,
59 #[static_field]
60 #[rename(name = "k_DstBlendID")]
61 pub k_dst_blend_id: i32,
62 #[static_field]
63 #[rename(name = "k_FalloffIntensityID")]
64 pub k_falloff_intensity_id: i32,
65 #[static_field]
66 #[rename(name = "k_FalloffDistanceID")]
67 pub k_falloff_distance_id: i32,
68 #[static_field]
69 #[rename(name = "k_FalloffOffsetID")]
70 pub k_falloff_offset_id: i32,
71 #[static_field]
72 #[rename(name = "k_LightColorID")]
73 pub k_light_color_id: i32,
74 #[static_field]
75 #[rename(name = "k_VolumeOpacityID")]
76 pub k_volume_opacity_id: i32,
77 #[static_field]
78 #[rename(name = "k_CookieTexID")]
79 pub k_cookie_tex_id: i32,
80 #[static_field]
81 #[rename(name = "k_FalloffLookupID")]
82 pub k_falloff_lookup_id: i32,
83 #[static_field]
84 #[rename(name = "k_LightPositionID")]
85 pub k_light_position_id: i32,
86 #[static_field]
87 #[rename(name = "k_LightInvMatrixID")]
88 pub k_light_inv_matrix_id: i32,
89 #[static_field]
90 #[rename(name = "k_LightNoRotInvMatrixID")]
91 pub k_light_no_rot_inv_matrix_id: i32,
92 #[static_field]
93 #[rename(name = "k_InnerRadiusMultID")]
94 pub k_inner_radius_mult_id: i32,
95 #[static_field]
96 #[rename(name = "k_OuterAngleID")]
97 pub k_outer_angle_id: i32,
98 #[static_field]
99 #[rename(name = "k_InnerAngleMultID")]
100 pub k_inner_angle_mult_id: i32,
101 #[static_field]
102 #[rename(name = "k_LightLookupID")]
103 pub k_light_lookup_id: i32,
104 #[static_field]
105 #[rename(name = "k_IsFullSpotlightID")]
106 pub k_is_full_spotlight_id: i32,
107 #[static_field]
108 #[rename(name = "k_LightZDistanceID")]
109 pub k_light_z_distance_id: i32,
110 #[static_field]
111 #[rename(name = "k_PointLightCookieTexID")]
112 pub k_point_light_cookie_tex_id: i32,
113 }
114}
115
116#[cfg(feature = "unity_engine-experimental-rendering-universal-rendererlighting-types")]
117pub use __types::*;
118
119#[cfg(feature = "unity_engine-experimental-rendering-universal-rendererlighting")]
120impl RendererLighting {
121 #[doc = "`GetRenderTextureFormat()` overload"]
122 pub fn get_render_texture_format() -> crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat {
123 unsafe {
124 ::unity::il2cpp_call!((::unity::module_base()+0x31abd90usize)as*mut u8,crate::unity_engine::experimental::rendering::graphicsformat::GraphicsFormat;
125 )
126 }
127 }
128
129 #[doc = "`CreateNormalMapRenderTexture(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D, crate::unity_engine::rendering::universal::renderingdata::RenderingData, crate::unity_engine::rendering::commandbuffer::CommandBuffer)` overload"]
130 pub fn create_normal_map_render_texture(
131 pass: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D>,
132 rendering_data: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderingdata::RenderingData>,
133 cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
134 ) -> () {
135 unsafe {
136 ::unity::il2cpp_call!((::unity::module_base()+0x31a75b0usize)as*mut u8,();
137(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D)::core::convert::Into::into(pass),(crate::unity_engine::rendering::universal::renderingdata::RenderingData)::core::convert::Into::into(rendering_data),(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd))
138 }
139 }
140
141 #[doc = "`CreateBlendStyleRenderTexture(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D, crate::unity_engine::rendering::universal::renderingdata::RenderingData, crate::unity_engine::rendering::commandbuffer::CommandBuffer, i32)` overload"]
142 pub fn create_blend_style_render_texture(
143 pass: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D>,
144 rendering_data: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderingdata::RenderingData>,
145 cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
146 blend_style_index: impl ::core::convert::Into<i32>,
147 ) -> () {
148 unsafe {
149 ::unity::il2cpp_call!((::unity::module_base()+0x31a7a70usize)as*mut u8,();
150(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D)::core::convert::Into::into(pass),(crate::unity_engine::rendering::universal::renderingdata::RenderingData)::core::convert::Into::into(rendering_data),(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(i32)::core::convert::Into::into(blend_style_index))
151 }
152 }
153
154 #[doc = "`EnableBlendStyle(crate::unity_engine::rendering::commandbuffer::CommandBuffer, i32, bool)` overload"]
155 pub fn enable_blend_style(
156 cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
157 blend_style_index: impl ::core::convert::Into<i32>,
158 enabled: impl ::core::convert::Into<bool>,
159 ) -> () {
160 unsafe {
161 ::unity::il2cpp_call!((::unity::module_base()+0x31a7d10usize)as*mut u8,();
162(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(i32)::core::convert::Into::into(blend_style_index),(bool)::core::convert::Into::into(enabled))
163 }
164 }
165
166 #[doc = "`ReleaseRenderTextures(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D, crate::unity_engine::rendering::commandbuffer::CommandBuffer)` overload"]
167 pub fn release_render_textures(
168 pass: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D>,
169 cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
170 ) -> () {
171 unsafe {
172 ::unity::il2cpp_call!((::unity::module_base()+0x31a8ca0usize)as*mut u8,();
173(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D)::core::convert::Into::into(pass),(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd))
174 }
175 }
176
177 #[doc = "`RenderLightSet(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D, crate::unity_engine::rendering::universal::renderingdata::RenderingData, i32, crate::unity_engine::rendering::commandbuffer::CommandBuffer, i32, crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier, bool, crate::unity_engine::color::Color, crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2>)` overload"]
178 pub fn render_light_set(
179 pass: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D>,
180 rendering_data: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderingdata::RenderingData>,
181 blend_style_index: impl ::core::convert::Into<i32>,
182 cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
183 layer_to_render: impl ::core::convert::Into<i32>,
184 render_texture: impl ::core::convert::Into<crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier>,
185 rt_needs_clear: impl ::core::convert::Into<bool>,
186 clear_color: impl ::core::convert::Into<crate::unity_engine::color::Color>,
187 lights: impl ::core::convert::Into<
188 crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2>,
189 >,
190 ) -> bool {
191 unsafe {
192 ::unity::il2cpp_call!((::unity::module_base()+0x31abed0usize)as*mut u8,bool;
193(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D)::core::convert::Into::into(pass),(crate::unity_engine::rendering::universal::renderingdata::RenderingData)::core::convert::Into::into(rendering_data),(i32)::core::convert::Into::into(blend_style_index),(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(i32)::core::convert::Into::into(layer_to_render),(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)::core::convert::Into::into(render_texture),(bool)::core::convert::Into::into(rt_needs_clear),(crate::unity_engine::color::Color)::core::convert::Into::into(clear_color),(crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2>)::core::convert::Into::into(lights))
194 }
195 }
196
197 #[doc = "`RenderLightVolumeSet(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D, crate::unity_engine::rendering::universal::renderingdata::RenderingData, i32, crate::unity_engine::rendering::commandbuffer::CommandBuffer, i32, crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier, crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier, crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2>)` overload"]
198 pub fn render_light_volume_set(
199 pass: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D>,
200 rendering_data: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderingdata::RenderingData>,
201 blend_style_index: impl ::core::convert::Into<i32>,
202 cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
203 layer_to_render: impl ::core::convert::Into<i32>,
204 render_texture: impl ::core::convert::Into<crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier>,
205 depth_texture: impl ::core::convert::Into<crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier>,
206 lights: impl ::core::convert::Into<
207 crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2>,
208 >,
209 ) -> () {
210 unsafe {
211 ::unity::il2cpp_call!((::unity::module_base()+0x31acd90usize)as*mut u8,();
212(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D)::core::convert::Into::into(pass),(crate::unity_engine::rendering::universal::renderingdata::RenderingData)::core::convert::Into::into(rendering_data),(i32)::core::convert::Into::into(blend_style_index),(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(i32)::core::convert::Into::into(layer_to_render),(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)::core::convert::Into::into(render_texture),(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)::core::convert::Into::into(depth_texture),(crate::system::collections::generic::list_1::List_1<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2>)::core::convert::Into::into(lights))
213 }
214 }
215
216 #[doc = "`SetShapeLightShaderGlobals(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D, crate::unity_engine::rendering::commandbuffer::CommandBuffer)` overload"]
217 pub fn set_shape_light_shader_globals(
218 pass: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D>,
219 cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
220 ) -> () {
221 unsafe {
222 ::unity::il2cpp_call!((::unity::module_base()+0x31a7750usize)as*mut u8,();
223(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D)::core::convert::Into::into(pass),(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd))
224 }
225 }
226
227 #[doc = "`GetNormalizedInnerRadius(crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2)` overload"]
228 pub fn get_normalized_inner_radius(
229 light: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2>,
230 ) -> f32 {
231 unsafe {
232 ::unity::il2cpp_call!((::unity::module_base()+0x31ad4b0usize)as*mut u8,f32;
233(crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2)::core::convert::Into::into(light))
234 }
235 }
236
237 #[doc = "`GetNormalizedAngle(f32)` overload"]
238 pub fn get_normalized_angle(angle: impl ::core::convert::Into<f32>) -> f32 {
239 unsafe {
240 ::unity::il2cpp_call!((::unity::module_base()+0x31ad4c0usize)as*mut u8,f32;
241(f32)::core::convert::Into::into(angle))
242 }
243 }
244
245 #[doc = "`GetScaledLightInvMatrix(crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2, *mutcrate::unity_engine::matrix4x4::Matrix4x4, bool)` overload"]
246 pub fn get_scaled_light_inv_matrix(
247 light: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2>,
248 include_rotation: impl ::core::convert::Into<bool>,
249 ) -> crate::unity_engine::matrix4x4::Matrix4x4 {
250 unsafe {
251 let mut __out_0 = ::core::mem::MaybeUninit::<crate::unity_engine::matrix4x4::Matrix4x4>::uninit();
252 ::unity::il2cpp_call!((::unity::module_base()+0x31ad4d0usize)as*mut u8,();
253(crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2)::core::convert::Into::into(light),(*mut crate::unity_engine::matrix4x4::Matrix4x4)__out_0.as_mut_ptr(),(bool)::core::convert::Into::into(include_rotation));
254 __out_0.assume_init()
255 }
256 }
257
258 #[doc = "`SetPointLightShaderGlobals(crate::unity_engine::rendering::commandbuffer::CommandBuffer, crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2)` overload"]
259 pub fn set_point_light_shader_globals(
260 cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
261 light: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2>,
262 ) -> () {
263 unsafe {
264 ::unity::il2cpp_call!((::unity::module_base()+0x31ac8c0usize)as*mut u8,();
265(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2)::core::convert::Into::into(light))
266 }
267 }
268
269 #[doc = "`ClearDirtyLighting(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D, crate::unity_engine::rendering::commandbuffer::CommandBuffer, u32)` overload"]
270 pub fn clear_dirty_lighting(
271 pass: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D>,
272 cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
273 blend_styles_used: impl ::core::convert::Into<u32>,
274 ) -> () {
275 unsafe {
276 ::unity::il2cpp_call!((::unity::module_base()+0x31a8680usize)as*mut u8,();
277(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D)::core::convert::Into::into(pass),(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(u32)::core::convert::Into::into(blend_styles_used))
278 }
279 }
280
281 #[doc = "`RenderNormals(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D, crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext, crate::unity_engine::rendering::cullingresults::CullingResults, crate::unity_engine::rendering::drawingsettings::DrawingSettings, crate::unity_engine::rendering::filteringsettings::FilteringSettings, crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)` overload"]
282 pub fn render_normals(
283 pass: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D>,
284 context: impl ::core::convert::Into<crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext>,
285 cull_results: impl ::core::convert::Into<crate::unity_engine::rendering::cullingresults::CullingResults>,
286 draw_settings: impl ::core::convert::Into<crate::unity_engine::rendering::drawingsettings::DrawingSettings>,
287 filter_settings: impl ::core::convert::Into<crate::unity_engine::rendering::filteringsettings::FilteringSettings>,
288 depth_target: impl ::core::convert::Into<crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier>,
289 ) -> () {
290 unsafe {
291 ::unity::il2cpp_call!((::unity::module_base()+0x31a7dd0usize)as*mut u8,();
292(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D)::core::convert::Into::into(pass),(crate::unity_engine::rendering::scriptablerendercontext::ScriptableRenderContext)::core::convert::Into::into(context),(crate::unity_engine::rendering::cullingresults::CullingResults)::core::convert::Into::into(cull_results),(crate::unity_engine::rendering::drawingsettings::DrawingSettings)::core::convert::Into::into(draw_settings),(crate::unity_engine::rendering::filteringsettings::FilteringSettings)::core::convert::Into::into(filter_settings),(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)::core::convert::Into::into(depth_target))
293 }
294 }
295
296 #[doc = "`RenderLights(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D, crate::unity_engine::rendering::universal::renderingdata::RenderingData, crate::unity_engine::rendering::commandbuffer::CommandBuffer, i32, u32)` overload"]
297 pub fn render_lights(
298 pass: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D>,
299 rendering_data: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderingdata::RenderingData>,
300 cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
301 layer_to_render: impl ::core::convert::Into<i32>,
302 blend_styles_used: impl ::core::convert::Into<u32>,
303 ) -> () {
304 unsafe {
305 ::unity::il2cpp_call!((::unity::module_base()+0x31a8100usize)as*mut u8,();
306(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D)::core::convert::Into::into(pass),(crate::unity_engine::rendering::universal::renderingdata::RenderingData)::core::convert::Into::into(rendering_data),(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(i32)::core::convert::Into::into(layer_to_render),(u32)::core::convert::Into::into(blend_styles_used))
307 }
308 }
309
310 #[doc = "`RenderLightVolumes(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D, crate::unity_engine::rendering::universal::renderingdata::RenderingData, crate::unity_engine::rendering::commandbuffer::CommandBuffer, i32, crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier, crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier, u32)` overload"]
311 pub fn render_light_volumes(
312 pass: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D>,
313 rendering_data: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderingdata::RenderingData>,
314 cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
315 layer_to_render: impl ::core::convert::Into<i32>,
316 render_target: impl ::core::convert::Into<crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier>,
317 depth_target: impl ::core::convert::Into<crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier>,
318 blend_styles_used: impl ::core::convert::Into<u32>,
319 ) -> () {
320 unsafe {
321 ::unity::il2cpp_call!((::unity::module_base()+0x31a8980usize)as*mut u8,();
322(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D)::core::convert::Into::into(pass),(crate::unity_engine::rendering::universal::renderingdata::RenderingData)::core::convert::Into::into(rendering_data),(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(i32)::core::convert::Into::into(layer_to_render),(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)::core::convert::Into::into(render_target),(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)::core::convert::Into::into(depth_target),(u32)::core::convert::Into::into(blend_styles_used))
323 }
324 }
325
326 #[doc = "`SetBlendModes(crate::unity_engine::material::Material, crate::unity_engine::rendering::blendmode::BlendMode, crate::unity_engine::rendering::blendmode::BlendMode)` overload"]
327 pub fn set_blend_modes(
328 material: impl ::core::convert::Into<crate::unity_engine::material::Material>,
329 src: impl ::core::convert::Into<crate::unity_engine::rendering::blendmode::BlendMode>,
330 dst: impl ::core::convert::Into<crate::unity_engine::rendering::blendmode::BlendMode>,
331 ) -> () {
332 unsafe {
333 ::unity::il2cpp_call!((::unity::module_base()+0x31ad640usize)as*mut u8,();
334(crate::unity_engine::material::Material)::core::convert::Into::into(material),(crate::unity_engine::rendering::blendmode::BlendMode)::core::convert::Into::into(src),(crate::unity_engine::rendering::blendmode::BlendMode)::core::convert::Into::into(dst))
335 }
336 }
337
338 #[doc = "`GetLightMaterialIndex(crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2, bool)` overload"]
339 pub fn get_light_material_index(
340 light: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2>,
341 is_volume: impl ::core::convert::Into<bool>,
342 ) -> u32 {
343 unsafe {
344 ::unity::il2cpp_call!((::unity::module_base()+0x31ad6f0usize)as*mut u8,u32;
345(crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2)::core::convert::Into::into(light),(bool)::core::convert::Into::into(is_volume))
346 }
347 }
348
349 #[doc = "`CreateLightMaterial(crate::unity_engine::experimental::rendering::universal::renderer2ddata::Renderer2DData, crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2, bool)` overload"]
350 pub fn create_light_material(
351 renderer_data: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::renderer2ddata::Renderer2DData>,
352 light: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2>,
353 is_volume: impl ::core::convert::Into<bool>,
354 ) -> crate::unity_engine::material::Material {
355 unsafe {
356 ::unity::il2cpp_call!((::unity::module_base()+0x31ad840usize)as*mut u8,crate::unity_engine::material::Material;
357(crate::unity_engine::experimental::rendering::universal::renderer2ddata::Renderer2DData)::core::convert::Into::into(renderer_data),(crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2)::core::convert::Into::into(light),(bool)::core::convert::Into::into(is_volume))
358 }
359 }
360
361 #[doc = "`GetLightMaterial(crate::unity_engine::experimental::rendering::universal::renderer2ddata::Renderer2DData, crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2, bool)` overload"]
362 pub fn get_light_material(
363 renderer_data: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::renderer2ddata::Renderer2DData>,
364 light: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2>,
365 is_volume: impl ::core::convert::Into<bool>,
366 ) -> crate::unity_engine::material::Material {
367 unsafe {
368 ::unity::il2cpp_call!((::unity::module_base()+0x31ac7a0usize)as*mut u8,crate::unity_engine::material::Material;
369(crate::unity_engine::experimental::rendering::universal::renderer2ddata::Renderer2DData)::core::convert::Into::into(renderer_data),(crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2)::core::convert::Into::into(light),(bool)::core::convert::Into::into(is_volume))
370 }
371 }
372
373 #[doc = "`.cctor()` overload"]
374 pub fn cctor() -> () {
375 unsafe {
376 ::unity::il2cpp_call!((::unity::module_base()+0x31adc00usize)as*mut u8,();
377 )
378 }
379 }
380}
381
382#[cfg(feature = "unity_engine-experimental-rendering-universal-rendererlighting")]
383impl RendererLighting {
384 pub fn get_render_texture_format_method_info() -> &'static ::unity::il2cpp::MethodInfo {
385 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
386 }
387
388 pub fn create_normal_map_render_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
389 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
390 }
391
392 pub fn create_blend_style_render_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
393 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
394 }
395
396 pub fn enable_blend_style_method_info() -> &'static ::unity::il2cpp::MethodInfo {
397 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
398 }
399
400 pub fn release_render_textures_method_info() -> &'static ::unity::il2cpp::MethodInfo {
401 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
402 }
403
404 pub fn render_light_set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
405 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
406 }
407
408 pub fn render_light_volume_set_method_info() -> &'static ::unity::il2cpp::MethodInfo {
409 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
410 }
411
412 pub fn set_shape_light_shader_globals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
413 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
414 }
415
416 pub fn get_normalized_inner_radius_method_info() -> &'static ::unity::il2cpp::MethodInfo {
417 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
418 }
419
420 pub fn get_normalized_angle_method_info() -> &'static ::unity::il2cpp::MethodInfo {
421 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
422 }
423
424 pub fn get_scaled_light_inv_matrix_method_info() -> &'static ::unity::il2cpp::MethodInfo {
425 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
426 }
427
428 pub fn set_point_light_shader_globals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
429 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[11]
430 }
431
432 pub fn clear_dirty_lighting_method_info() -> &'static ::unity::il2cpp::MethodInfo {
433 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[12]
434 }
435
436 pub fn render_normals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
437 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[13]
438 }
439
440 pub fn render_lights_method_info() -> &'static ::unity::il2cpp::MethodInfo {
441 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[14]
442 }
443
444 pub fn render_light_volumes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
445 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[15]
446 }
447
448 pub fn set_blend_modes_method_info() -> &'static ::unity::il2cpp::MethodInfo {
449 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[16]
450 }
451
452 pub fn get_light_material_index_method_info() -> &'static ::unity::il2cpp::MethodInfo {
453 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[17]
454 }
455
456 pub fn create_light_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
457 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[18]
458 }
459
460 pub fn get_light_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
461 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[19]
462 }
463
464 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
465 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[20]
466 }
467}
468
469#[cfg(feature = "unity_engine-experimental-rendering-universal-rendererlighting")]
470#[doc(hidden)]
471pub mod prelude {
472 pub use super::{IRendererLighting, RendererLighting};
473 pub use crate::system::object::IObject;
474 #[cfg(feature = "system-object")]
475 pub use crate::system::object::IObjectMethods;
476}