engage/generated/unity_engine/rendering/universal/
shadowslicedata.rs1#[cfg(feature = "unity_engine-rendering-universal-shadowslicedata-types")]
4mod __types {
5 #[allow(unused_imports)] use ::unity::prelude::*;
6
7 use super::*;
8 use crate::system::{
9 object::{IObject, Object},
10 valuetype::{IValueType, ValueType},
11 };
12
13 #[doc=include_str!(concat!(env!("CARGO_MANIFEST_DIR"),"/","docs/unity_engine/rendering/universal/shadowslicedata/ShadowSliceData.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct ShadowSliceData {
17 pub view_matrix: crate::unity_engine::matrix4x4::Matrix4x4,
18 pub projection_matrix: crate::unity_engine::matrix4x4::Matrix4x4,
19 pub shadow_transform: crate::unity_engine::matrix4x4::Matrix4x4,
20 pub offset_x: i32,
21 pub offset_y: i32,
22 pub resolution: i32,
23 }
24 impl ::unity::ClassIdentity for ShadowSliceData {
25 const NAME: &'static str = "ShadowSliceData";
26 const NAMESPACE: &'static str = "UnityEngine.Rendering.Universal";
27
28 fn class() -> ::unity::Class {
29 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
30 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
31 }
32 }
33 impl ::unity::IlType for ShadowSliceData {
34 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
35 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
36 }
37 }
38}
39
40#[cfg(feature = "unity_engine-rendering-universal-shadowslicedata-types")]
41pub use __types::*;
42
43#[cfg(feature = "unity_engine-rendering-universal-shadowslicedata")]
44impl ShadowSliceData {
45 #[doc = "`Clear()` overload"]
46 pub fn clear(&mut self) -> () {
47 unsafe {
48 ::unity::il2cpp_call!((::unity::module_base()+0x2edb510usize)as*mut u8,();
49(*mut ShadowSliceData)self as*mut ShadowSliceData)
50 }
51 }
52}
53
54#[cfg(feature = "unity_engine-rendering-universal-shadowslicedata")]
55impl ShadowSliceData {
56 pub fn clear_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-shadowslicedata")]
62#[doc(hidden)]
63pub mod prelude {
64 pub use super::ShadowSliceData;
65 #[cfg(feature = "system-object")]
66 pub use crate::system::object::IObjectMethods;
67 #[cfg(feature = "system-valuetype")]
68 pub use crate::system::valuetype::IValueTypeMethods;
69 pub use crate::system::{object::IObject, valuetype::IValueType};
70}