engage/generated/unity_engine/rendering/
rasterstate.rs1#[cfg(feature = "unity_engine-rendering-rasterstate-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/rasterstate/RasterState.md"))]
14 #[repr(C)]
15 #[derive(::core::clone::Clone, ::core::marker::Copy)]
16 pub struct RasterState {
17 pub m_culling_mode: crate::unity_engine::rendering::cullmode::CullMode,
18 pub m_offset_units: i32,
19 pub m_offset_factor: f32,
20 pub m_depth_clip: u8,
21 pub m_conservative: u8,
22 pub m_padding1: u8,
23 pub m_padding2: u8,
24 }
25 impl ::unity::ClassIdentity for RasterState {
26 const NAME: &'static str = "RasterState";
27 const NAMESPACE: &'static str = "UnityEngine.Rendering";
28
29 fn class() -> ::unity::Class {
30 static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
31 *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
32 }
33 }
34 impl ::unity::IlType for RasterState {
35 fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
36 &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
37 }
38 }
39 impl RasterState {
40 #[inline]
41 pub fn default_value() -> crate::unity_engine::rendering::rasterstate::RasterState {
42 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
43 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "defaultValue");
44 ::unity::static_field_get_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset)
45 }
46
47 #[inline]
48 pub fn set_default_value(value: crate::unity_engine::rendering::rasterstate::RasterState) {
49 static OFFSET: ::std::sync::OnceLock<usize> = ::std::sync::OnceLock::new();
50 let __offset = ::unity::cached_field_offset_static::<Self>(&OFFSET, "defaultValue");
51 ::unity::static_field_set_value_at_offset(<Self as ::unity::ClassIdentity>::class(), __offset, value);
52 }
53 }
54}
55
56#[cfg(feature = "unity_engine-rendering-rasterstate-types")]
57pub use __types::*;
58
59#[cfg(feature = "unity_engine-rendering-rasterstate")]
60impl RasterState {
61 #[doc = "`.cctor()` overload"]
62 pub fn cctor() -> () {
63 unsafe {
64 ::unity::il2cpp_call!((::unity::module_base()+0x2f7a110usize)as*mut u8,();
65 )
66 }
67 }
68}
69
70#[cfg(feature = "unity_engine-rendering-rasterstate")]
71impl RasterState {
72 #[doc = "`.ctor(crate::unity_engine::rendering::cullmode::CullMode, i32, f32, bool)` overload"]
73 pub fn ctor(
74 &mut self,
75 culling_mode: impl ::core::convert::Into<crate::unity_engine::rendering::cullmode::CullMode>,
76 offset_units: impl ::core::convert::Into<i32>,
77 offset_factor: impl ::core::convert::Into<f32>,
78 depth_clip: impl ::core::convert::Into<bool>,
79 ) -> () {
80 unsafe {
81 ::unity::il2cpp_call!((::unity::module_base()+0x2f79e90usize)as*mut u8,();
82(*mut RasterState)self as*mut RasterState,(crate::unity_engine::rendering::cullmode::CullMode)::core::convert::Into::into(culling_mode),(i32)::core::convert::Into::into(offset_units),(f32)::core::convert::Into::into(offset_factor),(bool)::core::convert::Into::into(depth_clip))
83 }
84 }
85
86 #[doc = "`Equals(crate::unity_engine::rendering::rasterstate::RasterState)` overload"]
87 pub fn equals(&mut self, other: impl ::core::convert::Into<crate::unity_engine::rendering::rasterstate::RasterState>) -> bool {
88 unsafe {
89 ::unity::il2cpp_call!((::unity::module_base()+0x2f79f40usize)as*mut u8,bool;
90(*mut RasterState)self as*mut RasterState,(crate::unity_engine::rendering::rasterstate::RasterState)::core::convert::Into::into(other))
91 }
92 }
93
94 #[doc = "`Equals(crate::system::object::Object)` overload"]
95 pub fn equals_2(&mut self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
96 unsafe {
97 ::unity::il2cpp_call!((::unity::module_base()+0x2f79fc0usize)as*mut u8,bool;
98(*mut RasterState)self as*mut RasterState,(crate::system::object::Object)::core::convert::Into::into(obj))
99 }
100 }
101
102 #[doc = "`GetHashCode()` overload"]
103 pub fn get_hash_code(&mut self) -> i32 {
104 unsafe {
105 ::unity::il2cpp_call!((::unity::module_base()+0x2f7a0a0usize)as*mut u8,i32;
106(*mut RasterState)self as*mut RasterState)
107 }
108 }
109}
110
111#[cfg(feature = "unity_engine-rendering-rasterstate")]
112impl RasterState {
113 pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
114 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
115 }
116
117 pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
118 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
119 }
120
121 pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
122 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
123 }
124
125 pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
126 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
127 }
128
129 pub fn cctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
130 <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
131 }
132}
133
134#[cfg(feature = "unity_engine-rendering-rasterstate")]
135#[doc(hidden)]
136pub mod prelude {
137 pub use super::RasterState;
138 #[cfg(feature = "system-object")]
139 pub use crate::system::object::IObjectMethods;
140 #[cfg(feature = "system-valuetype")]
141 pub use crate::system::valuetype::IValueTypeMethods;
142 pub use crate::system::{object::IObject, valuetype::IValueType};
143}