Skip to main content

engage/generated/unity_engine/rendering/
renderstateblock.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-renderstateblock-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/renderstateblock/RenderStateBlock.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct RenderStateBlock {
17        pub m_blend_state: crate::unity_engine::rendering::blendstate::BlendState,
18        pub m_raster_state: crate::unity_engine::rendering::rasterstate::RasterState,
19        pub m_depth_state: crate::unity_engine::rendering::depthstate::DepthState,
20        pub m_stencil_state: crate::unity_engine::rendering::stencilstate::StencilState,
21        pub m_stencil_reference: i32,
22        pub m_mask: crate::unity_engine::rendering::renderstatemask::RenderStateMask,
23    }
24    impl ::unity::ClassIdentity for RenderStateBlock {
25        const NAME: &'static str = "RenderStateBlock";
26        const NAMESPACE: &'static str = "UnityEngine.Rendering";
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 RenderStateBlock {
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-renderstateblock-types")]
41pub use __types::*;
42
43#[cfg(feature = "unity_engine-rendering-renderstateblock")]
44impl RenderStateBlock {
45    #[doc = "`.ctor(crate::unity_engine::rendering::renderstatemask::RenderStateMask)` overload"]
46    pub fn ctor(&mut self, mask: impl ::core::convert::Into<crate::unity_engine::rendering::renderstatemask::RenderStateMask>) -> () {
47        unsafe {
48            ::unity::il2cpp_call!((::unity::module_base()+0x2f834b0usize)as*mut u8,();
49(*mut RenderStateBlock)self as*mut RenderStateBlock,(crate::unity_engine::rendering::renderstatemask::RenderStateMask)::core::convert::Into::into(mask))
50        }
51    }
52
53    #[doc = "`set_depthState(crate::unity_engine::rendering::depthstate::DepthState)` overload"]
54    pub fn set_depth_state(&mut self, value: impl ::core::convert::Into<crate::unity_engine::rendering::depthstate::DepthState>) -> () {
55        unsafe {
56            ::unity::il2cpp_call!((::unity::module_base()+0x2f83690usize)as*mut u8,();
57(*mut RenderStateBlock)self as*mut RenderStateBlock,(crate::unity_engine::rendering::depthstate::DepthState)::core::convert::Into::into(value))
58        }
59    }
60
61    #[doc = "`get_stencilState()` overload"]
62    pub fn get_stencil_state(&mut self) -> crate::unity_engine::rendering::stencilstate::StencilState {
63        unsafe {
64            ::unity::il2cpp_call!((::unity::module_base()+0x2f836a0usize)as*mut u8,crate::unity_engine::rendering::stencilstate::StencilState;
65(*mut RenderStateBlock)self as*mut RenderStateBlock)
66        }
67    }
68
69    #[doc = "`set_stencilState(crate::unity_engine::rendering::stencilstate::StencilState)` overload"]
70    pub fn set_stencil_state(&mut self, value: impl ::core::convert::Into<crate::unity_engine::rendering::stencilstate::StencilState>) -> () {
71        unsafe {
72            ::unity::il2cpp_call!((::unity::module_base()+0x2f836b0usize)as*mut u8,();
73(*mut RenderStateBlock)self as*mut RenderStateBlock,(crate::unity_engine::rendering::stencilstate::StencilState)::core::convert::Into::into(value))
74        }
75    }
76
77    #[doc = "`get_stencilReference()` overload"]
78    pub fn get_stencil_reference(&mut self) -> i32 {
79        unsafe {
80            ::unity::il2cpp_call!((::unity::module_base()+0x2f836c0usize)as*mut u8,i32;
81(*mut RenderStateBlock)self as*mut RenderStateBlock)
82        }
83    }
84
85    #[doc = "`set_stencilReference(i32)` overload"]
86    pub fn set_stencil_reference(&mut self, value: impl ::core::convert::Into<i32>) -> () {
87        unsafe {
88            ::unity::il2cpp_call!((::unity::module_base()+0x2f836d0usize)as*mut u8,();
89(*mut RenderStateBlock)self as*mut RenderStateBlock,(i32)::core::convert::Into::into(value))
90        }
91    }
92
93    #[doc = "`get_mask()` overload"]
94    pub fn get_mask(&mut self) -> crate::unity_engine::rendering::renderstatemask::RenderStateMask {
95        unsafe {
96            ::unity::il2cpp_call!((::unity::module_base()+0x2f836e0usize)as*mut u8,crate::unity_engine::rendering::renderstatemask::RenderStateMask;
97(*mut RenderStateBlock)self as*mut RenderStateBlock)
98        }
99    }
100
101    #[doc = "`set_mask(crate::unity_engine::rendering::renderstatemask::RenderStateMask)` overload"]
102    pub fn set_mask(&mut self, value: impl ::core::convert::Into<crate::unity_engine::rendering::renderstatemask::RenderStateMask>) -> () {
103        unsafe {
104            ::unity::il2cpp_call!((::unity::module_base()+0x2f836f0usize)as*mut u8,();
105(*mut RenderStateBlock)self as*mut RenderStateBlock,(crate::unity_engine::rendering::renderstatemask::RenderStateMask)::core::convert::Into::into(value))
106        }
107    }
108
109    #[doc = "`Equals(crate::unity_engine::rendering::renderstateblock::RenderStateBlock)` overload"]
110    pub fn equals(&mut self, other: impl ::core::convert::Into<crate::unity_engine::rendering::renderstateblock::RenderStateBlock>) -> bool {
111        unsafe {
112            ::unity::il2cpp_call!((::unity::module_base()+0x2f83700usize)as*mut u8,bool;
113(*mut RenderStateBlock)self as*mut RenderStateBlock,(crate::unity_engine::rendering::renderstateblock::RenderStateBlock)::core::convert::Into::into(other))
114        }
115    }
116
117    #[doc = "`Equals(crate::system::object::Object)` overload"]
118    pub fn equals_2(&mut self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
119        unsafe {
120            ::unity::il2cpp_call!((::unity::module_base()+0x2f83960usize)as*mut u8,bool;
121(*mut RenderStateBlock)self as*mut RenderStateBlock,(crate::system::object::Object)::core::convert::Into::into(obj))
122        }
123    }
124
125    #[doc = "`GetHashCode()` overload"]
126    pub fn get_hash_code(&mut self) -> i32 {
127        unsafe {
128            ::unity::il2cpp_call!((::unity::module_base()+0x2f83a30usize)as*mut u8,i32;
129(*mut RenderStateBlock)self as*mut RenderStateBlock)
130        }
131    }
132}
133
134#[cfg(feature = "unity_engine-rendering-renderstateblock")]
135impl RenderStateBlock {
136    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
137        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
138    }
139
140    pub fn set_depth_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
141        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
142    }
143
144    pub fn get_stencil_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
145        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
146    }
147
148    pub fn set_stencil_state_method_info() -> &'static ::unity::il2cpp::MethodInfo {
149        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
150    }
151
152    pub fn get_stencil_reference_method_info() -> &'static ::unity::il2cpp::MethodInfo {
153        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
154    }
155
156    pub fn set_stencil_reference_method_info() -> &'static ::unity::il2cpp::MethodInfo {
157        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[5]
158    }
159
160    pub fn get_mask_method_info() -> &'static ::unity::il2cpp::MethodInfo {
161        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[6]
162    }
163
164    pub fn set_mask_method_info() -> &'static ::unity::il2cpp::MethodInfo {
165        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[7]
166    }
167
168    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
169        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[8]
170    }
171
172    pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
173        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[9]
174    }
175
176    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
177        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[10]
178    }
179}
180
181#[cfg(feature = "unity_engine-rendering-renderstateblock")]
182#[doc(hidden)]
183pub mod prelude {
184    pub use super::RenderStateBlock;
185    #[cfg(feature = "system-object")]
186    pub use crate::system::object::IObjectMethods;
187    #[cfg(feature = "system-valuetype")]
188    pub use crate::system::valuetype::IValueTypeMethods;
189    pub use crate::system::{object::IObject, valuetype::IValueType};
190}