engage/generated/unity_engine/rendering/universal/
postprocessutils.rs1#[cfg(feature = "unity_engine-rendering-universal-postprocessutils-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/rendering/universal/postprocessutils/PostProcessUtils_ShaderConstants.md"))]
11 #[::unity::class(namespace = "UnityEngine.Rendering.Universal", name = "PostProcessUtils.ShaderConstants")]
12 #[parent(crate::system::object::Object)]
13 pub struct PostProcessUtils_ShaderConstants {
14 #[static_field]
15 #[rename(name = "_Grain_Texture")]
16 pub grain_texture: i32,
17 #[static_field]
18 #[rename(name = "_Grain_Params")]
19 pub grain_params: i32,
20 #[static_field]
21 #[rename(name = "_Grain_TilingParams")]
22 pub grain_tiling_params: i32,
23 #[static_field]
24 #[rename(name = "_BlueNoise_Texture")]
25 pub blue_noise_texture: i32,
26 #[static_field]
27 #[rename(name = "_Dithering_Params")]
28 pub dithering_params: i32,
29 #[static_field]
30 #[rename(name = "_SourceSize")]
31 pub source_size: i32,
32 }
33
34 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/postprocessutils/PostProcessUtils.md"))]
35 #[::unity::class(namespace = "UnityEngine.Rendering.Universal", name = "PostProcessUtils")]
36 #[parent(crate::system::object::Object)]
37 pub struct PostProcessUtils {}
38}
39
40#[cfg(feature = "unity_engine-rendering-universal-postprocessutils-types")]
41pub use __types::*;
42
43#[cfg(feature = "unity_engine-rendering-universal-postprocessutils")]
44impl PostProcessUtils_ShaderConstants {
45 #[doc = "`.cctor()` overload"]
46 pub fn cctor() -> () {
47 unsafe {
48 ::unity::il2cpp_call!((::unity::module_base()+0x2cb8500usize)as*mut u8,();
49 )
50 }
51 }
52}
53
54#[cfg(feature = "unity_engine-rendering-universal-postprocessutils")]
55impl PostProcessUtils_ShaderConstants {
56 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
57 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
58 }
59}
60
61#[cfg(feature = "unity_engine-rendering-universal-postprocessutils")]
62impl PostProcessUtils {
63 #[doc = "`ConfigureDithering(crate::unity_engine::rendering::universal::postprocessdata::PostProcessData, i32, crate::unity_engine::camera::Camera, crate::unity_engine::material::Material)` overload"]
64 pub fn configure_dithering(
65 data: impl ::core::convert::Into<crate::unity_engine::rendering::universal::postprocessdata::PostProcessData>,
66 index: impl ::core::convert::Into<i32>,
67 camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
68 material: impl ::core::convert::Into<crate::unity_engine::material::Material>,
69 ) -> i32 {
70 unsafe {
71 ::unity::il2cpp_call!((::unity::module_base()+0x31a4c70usize)as*mut u8,i32;
72(crate::unity_engine::rendering::universal::postprocessdata::PostProcessData)::core::convert::Into::into(data),(i32)::core::convert::Into::into(index),(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera),(crate::unity_engine::material::Material)::core::convert::Into::into(material))
73 }
74 }
75
76 #[doc = "`ConfigureDithering(crate::unity_engine::rendering::universal::postprocessdata::PostProcessData, i32, i32, i32, crate::unity_engine::material::Material)` overload"]
77 pub fn configure_dithering_2(
78 data: impl ::core::convert::Into<crate::unity_engine::rendering::universal::postprocessdata::PostProcessData>,
79 index: impl ::core::convert::Into<i32>,
80 camera_pixel_width: impl ::core::convert::Into<i32>,
81 camera_pixel_height: impl ::core::convert::Into<i32>,
82 material: impl ::core::convert::Into<crate::unity_engine::material::Material>,
83 ) -> i32 {
84 unsafe {
85 ::unity::il2cpp_call!((::unity::module_base()+0x31a49c0usize)as*mut u8,i32;
86(crate::unity_engine::rendering::universal::postprocessdata::PostProcessData)::core::convert::Into::into(data),(i32)::core::convert::Into::into(index),(i32)::core::convert::Into::into(camera_pixel_width),(i32)::core::convert::Into::into(camera_pixel_height),(crate::unity_engine::material::Material)::core::convert::Into::into(material))
87 }
88 }
89
90 #[doc = "`ConfigureFilmGrain(crate::unity_engine::rendering::universal::postprocessdata::PostProcessData, crate::unity_engine::rendering::universal::filmgrain::FilmGrain, crate::unity_engine::camera::Camera, crate::unity_engine::material::Material)` overload"]
91 pub fn configure_film_grain(
92 data: impl ::core::convert::Into<crate::unity_engine::rendering::universal::postprocessdata::PostProcessData>,
93 settings: impl ::core::convert::Into<crate::unity_engine::rendering::universal::filmgrain::FilmGrain>,
94 camera: impl ::core::convert::Into<crate::unity_engine::camera::Camera>,
95 material: impl ::core::convert::Into<crate::unity_engine::material::Material>,
96 ) -> () {
97 unsafe {
98 ::unity::il2cpp_call!((::unity::module_base()+0x31a4ce0usize)as*mut u8,();
99(crate::unity_engine::rendering::universal::postprocessdata::PostProcessData)::core::convert::Into::into(data),(crate::unity_engine::rendering::universal::filmgrain::FilmGrain)::core::convert::Into::into(settings),(crate::unity_engine::camera::Camera)::core::convert::Into::into(camera),(crate::unity_engine::material::Material)::core::convert::Into::into(material))
100 }
101 }
102
103 #[doc = "`ConfigureFilmGrain(crate::unity_engine::rendering::universal::postprocessdata::PostProcessData, crate::unity_engine::rendering::universal::filmgrain::FilmGrain, i32, i32, crate::unity_engine::material::Material)` overload"]
104 pub fn configure_film_grain_2(
105 data: impl ::core::convert::Into<crate::unity_engine::rendering::universal::postprocessdata::PostProcessData>,
106 settings: impl ::core::convert::Into<crate::unity_engine::rendering::universal::filmgrain::FilmGrain>,
107 camera_pixel_width: impl ::core::convert::Into<i32>,
108 camera_pixel_height: impl ::core::convert::Into<i32>,
109 material: impl ::core::convert::Into<crate::unity_engine::material::Material>,
110 ) -> () {
111 unsafe {
112 ::unity::il2cpp_call!((::unity::module_base()+0x31a4740usize)as*mut u8,();
113(crate::unity_engine::rendering::universal::postprocessdata::PostProcessData)::core::convert::Into::into(data),(crate::unity_engine::rendering::universal::filmgrain::FilmGrain)::core::convert::Into::into(settings),(i32)::core::convert::Into::into(camera_pixel_width),(i32)::core::convert::Into::into(camera_pixel_height),(crate::unity_engine::material::Material)::core::convert::Into::into(material))
114 }
115 }
116
117 #[doc = "`SetSourceSize(crate::unity_engine::rendering::commandbuffer::CommandBuffer, crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor)` overload"]
118 pub fn set_source_size(
119 cmd: impl ::core::convert::Into<crate::unity_engine::rendering::commandbuffer::CommandBuffer>,
120 desc: impl ::core::convert::Into<crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor>,
121 ) -> () {
122 unsafe {
123 ::unity::il2cpp_call!((::unity::module_base()+0x31a4130usize)as*mut u8,();
124(crate::unity_engine::rendering::commandbuffer::CommandBuffer)::core::convert::Into::into(cmd),(crate::unity_engine::rendertexturedescriptor::RenderTextureDescriptor)::core::convert::Into::into(desc))
125 }
126 }
127}
128
129#[cfg(feature = "unity_engine-rendering-universal-postprocessutils")]
130impl PostProcessUtils {
131 pub fn configure_dithering_method_info() -> &'static ::unity::il2cpp::MethodInfo {
132 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
133 }
134
135 pub fn configure_dithering_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
136 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
137 }
138
139 pub fn configure_film_grain_method_info() -> &'static ::unity::il2cpp::MethodInfo {
140 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
141 }
142
143 pub fn configure_film_grain_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
144 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
145 }
146
147 pub fn set_source_size_method_info() -> &'static ::unity::il2cpp::MethodInfo {
148 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
149 }
150}
151
152#[cfg(feature = "unity_engine-rendering-universal-postprocessutils")]
153#[doc(hidden)]
154pub mod prelude {
155 pub use super::{IPostProcessUtils, IPostProcessUtils_ShaderConstants, PostProcessUtils, PostProcessUtils_ShaderConstants};
156 pub use crate::system::object::IObject;
157 #[cfg(feature = "system-object")]
158 pub use crate::system::object::IObjectMethods;
159}