Skip to main content

engage/generated/unity_engine/experimental/rendering/universal/
shadowrendering.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowrendering-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/shadowrendering/ShadowRendering.md"))]
11    #[::unity::class(namespace = "UnityEngine.Experimental.Rendering.Universal", name = "ShadowRendering")]
12    #[parent(crate::system::object::Object)]
13    pub struct ShadowRendering {
14        #[static_field]
15        #[rename(name = "k_LightPosID")]
16        pub k_light_pos_id: i32,
17        #[static_field]
18        #[rename(name = "k_ShadowStencilGroupID")]
19        pub k_shadow_stencil_group_id: i32,
20        #[static_field]
21        #[rename(name = "k_ShadowIntensityID")]
22        pub k_shadow_intensity_id: i32,
23        #[static_field]
24        #[rename(name = "k_ShadowVolumeIntensityID")]
25        pub k_shadow_volume_intensity_id: i32,
26        #[static_field]
27        #[rename(name = "k_ShadowRadiusID")]
28        pub k_shadow_radius_id: i32,
29    }
30}
31
32#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowrendering-types")]
33pub use __types::*;
34
35#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowrendering")]
36impl ShadowRendering {
37    #[doc = "`GetShadowMaterial(crate::unity_engine::experimental::rendering::universal::renderer2ddata::Renderer2DData, i32)` overload"]
38    pub fn get_shadow_material(
39        renderer_data: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::renderer2ddata::Renderer2DData>,
40        index: impl ::core::convert::Into<i32>,
41    ) -> crate::unity_engine::material::Material {
42        unsafe {
43            ::unity::il2cpp_call!((::unity::module_base()+0x2eda430usize)as*mut u8,crate::unity_engine::material::Material;
44(crate::unity_engine::experimental::rendering::universal::renderer2ddata::Renderer2DData)::core::convert::Into::into(renderer_data),(i32)::core::convert::Into::into(index))
45        }
46    }
47
48    #[doc = "`GetRemoveSelfShadowMaterial(crate::unity_engine::experimental::rendering::universal::renderer2ddata::Renderer2DData, i32)` overload"]
49    pub fn get_remove_self_shadow_material(
50        renderer_data: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::renderer2ddata::Renderer2DData>,
51        index: impl ::core::convert::Into<i32>,
52    ) -> crate::unity_engine::material::Material {
53        unsafe {
54            ::unity::il2cpp_call!((::unity::module_base()+0x2eda600usize)as*mut u8,crate::unity_engine::material::Material;
55(crate::unity_engine::experimental::rendering::universal::renderer2ddata::Renderer2DData)::core::convert::Into::into(renderer_data),(i32)::core::convert::Into::into(index))
56        }
57    }
58
59    #[doc = "`CreateShadowRenderTexture(crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D, crate::unity_engine::rendering::universal::renderingdata::RenderingData, crate::unity_engine::rendering::commandbuffer::CommandBuffer, i32)` overload"]
60    pub fn create_shadow_render_texture(
61        pass: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D>,
62        rendering_data: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderingdata::RenderingData>,
63        cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
64        blend_style_index: impl ::core::convert::Into<i32>,
65    ) -> () {
66        unsafe {
67            ::unity::il2cpp_call!((::unity::module_base()+0x2eda7d0usize)as*mut u8,();
68(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))
69        }
70    }
71
72    #[doc = "`RenderShadows(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::experimental::rendering::universal::light2d_2::Light2D_2, f32, crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier, crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)` overload"]
73    pub fn render_shadows(
74        pass: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::irenderpass2d::IRenderPass2D>,
75        rendering_data: impl ::core::convert::Into<crate::unity_engine::rendering::universal::renderingdata::RenderingData>,
76        cmd_buffer: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
77        layer_to_render: impl ::core::convert::Into<i32>,
78        light: impl ::core::convert::Into<crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2>,
79        shadow_intensity: impl ::core::convert::Into<f32>,
80        render_texture: impl ::core::convert::Into<crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier>,
81        depth_texture: impl ::core::convert::Into<crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier>,
82    ) -> () {
83        unsafe {
84            ::unity::il2cpp_call!((::unity::module_base()+0x2edaa10usize)as*mut u8,();
85(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_buffer),(i32)::core::convert::Into::into(layer_to_render),(crate::unity_engine::experimental::rendering::universal::light2d_2::Light2D_2)::core::convert::Into::into(light),(f32)::core::convert::Into::into(shadow_intensity),(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)::core::convert::Into::into(render_texture),(crate::unity_engine::rendering::rendertargetidentifier::RenderTargetIdentifier)::core::convert::Into::into(depth_texture))
86        }
87    }
88
89    #[doc = "`.cctor()` overload"]
90    pub fn cctor() -> () {
91        unsafe {
92            ::unity::il2cpp_call!((::unity::module_base()+0x2edb3d0usize)as*mut u8,();
93            )
94        }
95    }
96}
97
98#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowrendering")]
99impl ShadowRendering {
100    pub fn get_shadow_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
102    }
103
104    pub fn get_remove_self_shadow_material_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
106    }
107
108    pub fn create_shadow_render_texture_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
110    }
111
112    pub fn render_shadows_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
114    }
115
116    pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
117        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
118    }
119}
120
121#[cfg(feature = "unity_engine-experimental-rendering-universal-shadowrendering")]
122#[doc(hidden)]
123pub mod prelude {
124    pub use super::{IShadowRendering, ShadowRendering};
125    pub use crate::system::object::IObject;
126    #[cfg(feature = "system-object")]
127    pub use crate::system::object::IObjectMethods;
128}