engage/generated/unity_engine/experimental/rendering/universal/
light2dblendstyle.rs1#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dblendstyle-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 r#enum::{Enum, IEnum},
11 valuetype::{IValueType, ValueType},
12 };
13
14 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/universal/light2dblendstyle/Light2DBlendStyle_MaskChannelFilter.md"))]
15 #[repr(C)]
16 #[derive(::core::clone::Clone, ::core::marker::Copy)]
17 pub struct Light2DBlendStyle_MaskChannelFilter {}
18 impl ::unity::ClassIdentity for Light2DBlendStyle_MaskChannelFilter {
19 const NAME: &'static str = "Light2DBlendStyle.MaskChannelFilter";
20 const NAMESPACE: &'static str = "UnityEngine.Experimental.Rendering.Universal";
21
22 fn class() -> ::unity::Class {
23 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
24 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
25 }
26 }
27 impl ::unity::IlType for Light2DBlendStyle_MaskChannelFilter {
28 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
29 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
30 }
31 }
32
33 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/universal/light2dblendstyle/Light2DBlendStyle_BlendFactors.md"))]
34 #[repr(C)]
35 #[derive(::core::clone::Clone, ::core::marker::Copy)]
36 pub struct Light2DBlendStyle_BlendFactors {
37 pub multiplicative: f32,
38 pub additive: f32,
39 }
40 impl ::unity::ClassIdentity for Light2DBlendStyle_BlendFactors {
41 const NAME: &'static str = "Light2DBlendStyle.BlendFactors";
42 const NAMESPACE: &'static str = "UnityEngine.Experimental.Rendering.Universal";
43
44 fn class() -> ::unity::Class {
45 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
46 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
47 }
48 }
49 impl ::unity::IlType for Light2DBlendStyle_BlendFactors {
50 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
51 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
52 }
53 }
54
55 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/universal/light2dblendstyle/Light2DBlendStyle_TextureChannel.md"))]
56 #[repr(C)]
57 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
58 pub struct Light2DBlendStyle_TextureChannel {
59 pub value: i32,
60 }
61 impl ::unity::ClassIdentity for Light2DBlendStyle_TextureChannel {
62 const NAME: &'static str = "Light2DBlendStyle.TextureChannel";
63 const NAMESPACE: &'static str = "UnityEngine.Experimental.Rendering.Universal";
64
65 fn class() -> ::unity::Class {
66 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
67 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
68 }
69 }
70 impl ::unity::IlType for Light2DBlendStyle_TextureChannel {
71 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
72 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
73 }
74 }
75 impl Light2DBlendStyle_TextureChannel {
76 pub fn none() -> Self {
77 Self { value: 0 }
78 }
79
80 pub fn r() -> Self {
81 Self { value: 1 }
82 }
83
84 pub fn g() -> Self {
85 Self { value: 2 }
86 }
87
88 pub fn b() -> Self {
89 Self { value: 3 }
90 }
91
92 pub fn a() -> Self {
93 Self { value: 4 }
94 }
95
96 pub fn one_minus_r() -> Self {
97 Self { value: 5 }
98 }
99
100 pub fn one_minus_g() -> Self {
101 Self { value: 6 }
102 }
103
104 pub fn one_minus_b() -> Self {
105 Self { value: 7 }
106 }
107
108 pub fn one_minus_a() -> Self {
109 Self { value: 8 }
110 }
111 }
112
113 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/universal/light2dblendstyle/Light2DBlendStyle.md"))]
114 #[repr(C)]
115 #[derive(::core::clone::Clone, ::core::marker::Copy)]
116 pub struct Light2DBlendStyle {
117 pub name: ::unity::Il2CppString,
118 pub mask_texture_channel: crate::unity_engine::experimental::rendering::universal::light2dblendstyle::Light2DBlendStyle_TextureChannel,
119 pub render_texture_scale: f32,
120 pub blend_mode: crate::unity_engine::experimental::rendering::universal::light2dblendstyle::Light2DBlendStyle_BlendMode,
121 pub custom_blend_factors: crate::unity_engine::experimental::rendering::universal::light2dblendstyle::Light2DBlendStyle_BlendFactors,
122 pub render_target_handle: crate::unity_engine::rendering::universal::rendertargethandle::RenderTargetHandle,
123 }
124 impl ::unity::ClassIdentity for Light2DBlendStyle {
125 const NAME: &'static str = "Light2DBlendStyle";
126 const NAMESPACE: &'static str = "UnityEngine.Experimental.Rendering.Universal";
127
128 fn class() -> ::unity::Class {
129 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
130 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
131 }
132 }
133 impl ::unity::IlType for Light2DBlendStyle {
134 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
135 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
136 }
137 }
138
139 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/experimental/rendering/universal/light2dblendstyle/Light2DBlendStyle_BlendMode.md"))]
140 #[repr(C)]
141 #[derive(::core::clone::Clone, ::core::marker::Copy, ::core::fmt::Debug, ::core::cmp::PartialEq, ::core::cmp::Eq)]
142 pub struct Light2DBlendStyle_BlendMode {
143 pub value: i32,
144 }
145 impl ::unity::ClassIdentity for Light2DBlendStyle_BlendMode {
146 const NAME: &'static str = "Light2DBlendStyle.BlendMode";
147 const NAMESPACE: &'static str = "UnityEngine.Experimental.Rendering.Universal";
148
149 fn class() -> ::unity::Class {
150 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
151 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
152 }
153 }
154 impl ::unity::IlType for Light2DBlendStyle_BlendMode {
155 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
156 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
157 }
158 }
159 impl Light2DBlendStyle_BlendMode {
160 pub fn additive() -> Self {
161 Self { value: 0 }
162 }
163
164 pub fn multiply() -> Self {
165 Self { value: 1 }
166 }
167
168 pub fn subtractive() -> Self {
169 Self { value: 2 }
170 }
171
172 pub fn custom() -> Self {
173 Self { value: 99 }
174 }
175 }
176}
177
178#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dblendstyle-types")]
179pub use __types::*;
180
181#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dblendstyle")]
182impl Light2DBlendStyle_MaskChannelFilter {
183 #[doc = "`get_mask()` overload"]
184 pub fn get_mask(&mut self) -> crate::unity_engine::vector4::Vector4 {
185 unsafe {
186 ::unity::il2cpp_call!((::unity::module_base()+0x2cb6e90usize)as*mut u8,crate::unity_engine::vector4::Vector4;
187(*mut Light2DBlendStyle_MaskChannelFilter)self as*mut Light2DBlendStyle_MaskChannelFilter)
188 }
189 }
190
191 #[doc = "`set_mask(crate::unity_engine::vector4::Vector4)` overload"]
192 pub fn set_mask(&mut self, value: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>) -> () {
193 unsafe {
194 ::unity::il2cpp_call!((::unity::module_base()+0x2cb6ea0usize)as*mut u8,();
195(*mut Light2DBlendStyle_MaskChannelFilter)self as*mut Light2DBlendStyle_MaskChannelFilter,(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(value))
196 }
197 }
198
199 #[doc = "`get_inverted()` overload"]
200 pub fn get_inverted(&mut self) -> crate::unity_engine::vector4::Vector4 {
201 unsafe {
202 ::unity::il2cpp_call!((::unity::module_base()+0x2cb6ec0usize)as*mut u8,crate::unity_engine::vector4::Vector4;
203(*mut Light2DBlendStyle_MaskChannelFilter)self as*mut Light2DBlendStyle_MaskChannelFilter)
204 }
205 }
206
207 #[doc = "`set_inverted(crate::unity_engine::vector4::Vector4)` overload"]
208 pub fn set_inverted(&mut self, value: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>) -> () {
209 unsafe {
210 ::unity::il2cpp_call!((::unity::module_base()+0x2cb6ed0usize)as*mut u8,();
211(*mut Light2DBlendStyle_MaskChannelFilter)self as*mut Light2DBlendStyle_MaskChannelFilter,(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(value))
212 }
213 }
214
215 #[doc = "`.ctor(crate::unity_engine::vector4::Vector4, crate::unity_engine::vector4::Vector4)` overload"]
216 pub fn ctor(
217 &mut self,
218 m: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>,
219 i: impl ::core::convert::Into<crate::unity_engine::vector4::Vector4>,
220 ) -> () {
221 unsafe {
222 ::unity::il2cpp_call!((::unity::module_base()+0x2cb6ef0usize)as*mut u8,();
223(*mut Light2DBlendStyle_MaskChannelFilter)self as*mut Light2DBlendStyle_MaskChannelFilter,(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(m),(crate::unity_engine::vector4::Vector4)::core::convert::Into::into(i))
224 }
225 }
226}
227
228#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dblendstyle")]
229impl Light2DBlendStyle_MaskChannelFilter {
230 pub fn get_mask_method_info() -> &'static ::unity::il2cpp::MethodInfo {
231 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
232 }
233
234 pub fn set_mask_method_info() -> &'static ::unity::il2cpp::MethodInfo {
235 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
236 }
237
238 pub fn get_inverted_method_info() -> &'static ::unity::il2cpp::MethodInfo {
239 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
240 }
241
242 pub fn set_inverted_method_info() -> &'static ::unity::il2cpp::MethodInfo {
243 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
244 }
245
246 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
247 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
248 }
249}
250
251#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dblendstyle")]
252impl Light2DBlendStyle {
253 #[doc = "`get_blendFactors()` overload"]
254 pub fn get_blend_factors(&mut self) -> crate::unity_engine::vector2::Vector2 {
255 unsafe {
256 ::unity::il2cpp_call!((::unity::module_base()+0x2ef4410usize)as*mut u8,crate::unity_engine::vector2::Vector2;
257(*mut Light2DBlendStyle)self as*mut Light2DBlendStyle)
258 }
259 }
260
261 #[doc = "`get_maskTextureChannelFilter()` overload"]
262 pub fn get_mask_texture_channel_filter(
263 &mut self,
264 ) -> crate::unity_engine::experimental::rendering::universal::light2dblendstyle::Light2DBlendStyle_MaskChannelFilter {
265 unsafe {
266 ::unity::il2cpp_call!((::unity::module_base()+0x2ef4490usize)as*mut u8,crate::unity_engine::experimental::rendering::universal::light2dblendstyle::Light2DBlendStyle_MaskChannelFilter;
267(*mut Light2DBlendStyle)self as*mut Light2DBlendStyle)
268 }
269 }
270
271 #[doc = "`get_isDirty()` overload"]
272 pub fn get_is_dirty(&mut self) -> bool {
273 unsafe {
274 ::unity::il2cpp_call!((::unity::module_base()+0x2ef4710usize)as*mut u8,bool;
275(*mut Light2DBlendStyle)self as*mut Light2DBlendStyle)
276 }
277 }
278
279 #[doc = "`set_isDirty(bool)` overload"]
280 pub fn set_is_dirty(&mut self, value: impl ::core::convert::Into<bool>) -> () {
281 unsafe {
282 ::unity::il2cpp_call!((::unity::module_base()+0x2ef4720usize)as*mut u8,();
283(*mut Light2DBlendStyle)self as*mut Light2DBlendStyle,(bool)::core::convert::Into::into(value))
284 }
285 }
286
287 #[doc = "`get_hasRenderTarget()` overload"]
288 pub fn get_has_render_target(&mut self) -> bool {
289 unsafe {
290 ::unity::il2cpp_call!((::unity::module_base()+0x2ef4730usize)as*mut u8,bool;
291(*mut Light2DBlendStyle)self as*mut Light2DBlendStyle)
292 }
293 }
294
295 #[doc = "`set_hasRenderTarget(bool)` overload"]
296 pub fn set_has_render_target(&mut self, value: impl ::core::convert::Into<bool>) -> () {
297 unsafe {
298 ::unity::il2cpp_call!((::unity::module_base()+0x2ef4740usize)as*mut u8,();
299(*mut Light2DBlendStyle)self as*mut Light2DBlendStyle,(bool)::core::convert::Into::into(value))
300 }
301 }
302}
303
304#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dblendstyle")]
305impl Light2DBlendStyle {
306 pub fn get_blend_factors_method_info() -> &'static ::unity::il2cpp::MethodInfo {
307 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
308 }
309
310 pub fn get_mask_texture_channel_filter_method_info() -> &'static ::unity::il2cpp::MethodInfo {
311 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
312 }
313
314 pub fn get_is_dirty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
315 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
316 }
317
318 pub fn set_is_dirty_method_info() -> &'static ::unity::il2cpp::MethodInfo {
319 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
320 }
321
322 pub fn get_has_render_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
323 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
324 }
325
326 pub fn set_has_render_target_method_info() -> &'static ::unity::il2cpp::MethodInfo {
327 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
328 }
329}
330
331#[cfg(feature = "unity_engine-experimental-rendering-universal-light2dblendstyle")]
332#[doc(hidden)]
333pub mod prelude {
334 pub use super::{
335 Light2DBlendStyle, Light2DBlendStyle_BlendFactors, Light2DBlendStyle_BlendMode, Light2DBlendStyle_MaskChannelFilter,
336 Light2DBlendStyle_TextureChannel,
337 };
338 #[cfg(feature = "system-object")]
339 pub use crate::system::object::IObjectMethods;
340 #[cfg(feature = "system-enum")]
341 pub use crate::system::r#enum::IEnumMethods;
342 #[cfg(feature = "system-valuetype")]
343 pub use crate::system::valuetype::IValueTypeMethods;
344 pub use crate::system::{object::IObject, r#enum::IEnum, valuetype::IValueType};
345}