Skip to main content

engage/generated/unity_engine/rendering/
blendstate.rs

1// @generated by il2cpp-bindgen — do not edit by hand.
2
3#[cfg(feature = "unity_engine-rendering-blendstate-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/blendstate/BlendState.md"))]
14    #[repr(C)]
15    #[derive(::core::clone::Clone, ::core::marker::Copy)]
16    pub struct BlendState {
17        pub m_blend_state0: crate::unity_engine::rendering::rendertargetblendstate::RenderTargetBlendState,
18        pub m_blend_state1: crate::unity_engine::rendering::rendertargetblendstate::RenderTargetBlendState,
19        pub m_blend_state2: crate::unity_engine::rendering::rendertargetblendstate::RenderTargetBlendState,
20        pub m_blend_state3: crate::unity_engine::rendering::rendertargetblendstate::RenderTargetBlendState,
21        pub m_blend_state4: crate::unity_engine::rendering::rendertargetblendstate::RenderTargetBlendState,
22        pub m_blend_state5: crate::unity_engine::rendering::rendertargetblendstate::RenderTargetBlendState,
23        pub m_blend_state6: crate::unity_engine::rendering::rendertargetblendstate::RenderTargetBlendState,
24        pub m_blend_state7: crate::unity_engine::rendering::rendertargetblendstate::RenderTargetBlendState,
25        pub m_separate_mrt_blend_states: u8,
26        pub m_alpha_to_mask: u8,
27        pub m_padding: i16,
28    }
29    impl ::unity::ClassIdentity for BlendState {
30        const NAME: &'static str = "BlendState";
31        const NAMESPACE: &'static str = "UnityEngine.Rendering";
32
33        fn class() -> ::unity::Class {
34            static CACHE: ::std::sync::OnceLock<::unity::Class> = ::std::sync::OnceLock::new();
35            *CACHE.get_or_init(|| ::unity::Class::lookup(Self::NAMESPACE, Self::NAME))
36        }
37    }
38    impl ::unity::IlType for BlendState {
39        fn il_type() -> &'static ::unity::il2cpp::Il2CppType {
40            &<Self as ::unity::ClassIdentity>::class().raw()._1.byval_arg
41        }
42    }
43}
44
45#[cfg(feature = "unity_engine-rendering-blendstate-types")]
46pub use __types::*;
47
48#[cfg(feature = "unity_engine-rendering-blendstate")]
49impl BlendState {
50    #[doc = "`get_defaultValue()` overload"]
51    pub fn get_default_value() -> crate::unity_engine::rendering::blendstate::BlendState {
52        unsafe {
53            ::unity::il2cpp_call!((::unity::module_base()+0x2c377d0usize)as*mut u8,crate::unity_engine::rendering::blendstate::BlendState;
54            )
55        }
56    }
57}
58
59#[cfg(feature = "unity_engine-rendering-blendstate")]
60impl BlendState {
61    #[doc = "`.ctor(bool, bool)` overload"]
62    pub fn ctor(&mut self, separate_mrt_blend: impl ::core::convert::Into<bool>, alpha_to_mask: impl ::core::convert::Into<bool>) -> () {
63        unsafe {
64            ::unity::il2cpp_call!((::unity::module_base()+0x2c37880usize)as*mut u8,();
65(*mut BlendState)self as*mut BlendState,(bool)::core::convert::Into::into(separate_mrt_blend),(bool)::core::convert::Into::into(alpha_to_mask))
66        }
67    }
68
69    #[doc = "`Equals(crate::unity_engine::rendering::blendstate::BlendState)` overload"]
70    pub fn equals(&mut self, other: impl ::core::convert::Into<crate::unity_engine::rendering::blendstate::BlendState>) -> bool {
71        unsafe {
72            ::unity::il2cpp_call!((::unity::module_base()+0x2c37980usize)as*mut u8,bool;
73(*mut BlendState)self as*mut BlendState,(crate::unity_engine::rendering::blendstate::BlendState)::core::convert::Into::into(other))
74        }
75    }
76
77    #[doc = "`Equals(crate::system::object::Object)` overload"]
78    pub fn equals_2(&mut self, obj: impl ::core::convert::Into<crate::system::object::Object>) -> bool {
79        unsafe {
80            ::unity::il2cpp_call!((::unity::module_base()+0x2c37a70usize)as*mut u8,bool;
81(*mut BlendState)self as*mut BlendState,(crate::system::object::Object)::core::convert::Into::into(obj))
82        }
83    }
84
85    #[doc = "`GetHashCode()` overload"]
86    pub fn get_hash_code(&mut self) -> i32 {
87        unsafe {
88            ::unity::il2cpp_call!((::unity::module_base()+0x2c37b30usize)as*mut u8,i32;
89(*mut BlendState)self as*mut BlendState)
90        }
91    }
92}
93
94#[cfg(feature = "unity_engine-rendering-blendstate")]
95impl BlendState {
96    pub fn get_default_value_method_info() -> &'static ::unity::il2cpp::MethodInfo {
97        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[0]
98    }
99
100    pub fn ctor_method_info() -> &'static ::unity::il2cpp::MethodInfo {
101        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[1]
102    }
103
104    pub fn equals_method_info() -> &'static ::unity::il2cpp::MethodInfo {
105        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[2]
106    }
107
108    pub fn equals_2_method_info() -> &'static ::unity::il2cpp::MethodInfo {
109        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[3]
110    }
111
112    pub fn get_hash_code_method_info() -> &'static ::unity::il2cpp::MethodInfo {
113        <Self as ::unity::ClassIdentity>::class().raw().get_methods()[4]
114    }
115}
116
117#[cfg(feature = "unity_engine-rendering-blendstate")]
118#[doc(hidden)]
119pub mod prelude {
120    pub use super::BlendState;
121    #[cfg(feature = "system-object")]
122    pub use crate::system::object::IObjectMethods;
123    #[cfg(feature = "system-valuetype")]
124    pub use crate::system::valuetype::IValueTypeMethods;
125    pub use crate::system::{object::IObject, valuetype::IValueType};
126}