#[repr(C)]pub struct BlendState {
pub m_blend_state0: RenderTargetBlendState,
pub m_blend_state1: RenderTargetBlendState,
pub m_blend_state2: RenderTargetBlendState,
pub m_blend_state3: RenderTargetBlendState,
pub m_blend_state4: RenderTargetBlendState,
pub m_blend_state5: RenderTargetBlendState,
pub m_blend_state6: RenderTargetBlendState,
pub m_blend_state7: RenderTargetBlendState,
pub m_separate_mrt_blend_states: u8,
pub m_alpha_to_mask: u8,
pub m_padding: i16,
}Expand description
Fields§
§m_blend_state0: RenderTargetBlendState§m_blend_state1: RenderTargetBlendState§m_blend_state2: RenderTargetBlendState§m_blend_state3: RenderTargetBlendState§m_blend_state4: RenderTargetBlendState§m_blend_state5: RenderTargetBlendState§m_blend_state6: RenderTargetBlendState§m_blend_state7: RenderTargetBlendState§m_separate_mrt_blend_states: u8§m_alpha_to_mask: u8§m_padding: i16Implementations§
Source§impl BlendState
impl BlendState
Sourcepub fn get_default_value() -> BlendState
pub fn get_default_value() -> BlendState
get_defaultValue() overload
Source§impl BlendState
impl BlendState
Sourcepub fn ctor(
&mut self,
separate_mrt_blend: impl Into<bool>,
alpha_to_mask: impl Into<bool>,
)
pub fn ctor( &mut self, separate_mrt_blend: impl Into<bool>, alpha_to_mask: impl Into<bool>, )
.ctor(bool, bool) overload
Sourcepub fn equals(&mut self, other: impl Into<BlendState>) -> bool
pub fn equals(&mut self, other: impl Into<BlendState>) -> bool
Equals(crate::unity_engine::rendering::blendstate::BlendState) overload
Sourcepub fn equals_2(&mut self, obj: impl Into<Object>) -> bool
pub fn equals_2(&mut self, obj: impl Into<Object>) -> bool
Equals(crate::system::object::Object) overload
Sourcepub fn get_hash_code(&mut self) -> i32
pub fn get_hash_code(&mut self) -> i32
GetHashCode() overload
Source§impl BlendState
impl BlendState
pub fn get_default_value_method_info() -> &'static MethodInfo
pub fn ctor_method_info() -> &'static MethodInfo
pub fn equals_method_info() -> &'static MethodInfo
pub fn equals_2_method_info() -> &'static MethodInfo
pub fn get_hash_code_method_info() -> &'static MethodInfo
Trait Implementations§
Source§impl ClassIdentity for BlendState
impl ClassIdentity for BlendState
Source§impl Clone for BlendState
impl Clone for BlendState
Source§fn clone(&self) -> BlendState
fn clone(&self) -> BlendState
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BlendState
Auto Trait Implementations§
impl Freeze for BlendState
impl RefUnwindSafe for BlendState
impl Send for BlendState
impl Sync for BlendState
impl Unpin for BlendState
impl UnwindSafe for BlendState
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)