pub struct BlendDesc(/* private fields */);Expand description
Wrapper around D3D12_BLEND_DESC structure
Implementations§
Source§impl BlendDesc
impl BlendDesc
pub fn set_alpha_to_coverage_enable( &mut self, alpha_to_coverage_enable: bool, ) -> &mut Self
pub fn with_alpha_to_coverage_enable( self, alpha_to_coverage_enable: bool, ) -> Self
pub fn alpha_to_coverage_enable(&self) -> bool
pub fn set_independent_blend_enable( &mut self, independent_blend_enable: bool, ) -> &mut Self
pub fn with_independent_blend_enable( self, independent_blend_enable: bool, ) -> Self
pub fn independent_blend_enable(&self) -> bool
pub fn set_render_targets( &mut self, rt_blend_descs: &[RenderTargetBlendDesc], ) -> &mut Self
pub fn with_render_targets( self, rt_blend_descs: &[RenderTargetBlendDesc], ) -> Self
pub fn render_targets(&self) -> [RenderTargetBlendDesc; 8]
Trait Implementations§
Source§impl Ord for BlendDesc
impl Ord for BlendDesc
Source§impl PartialOrd for BlendDesc
impl PartialOrd for BlendDesc
impl Copy for BlendDesc
impl Eq for BlendDesc
impl StructuralPartialEq for BlendDesc
Auto Trait Implementations§
impl Freeze for BlendDesc
impl RefUnwindSafe for BlendDesc
impl Send for BlendDesc
impl Sync for BlendDesc
impl Unpin for BlendDesc
impl UnwindSafe for BlendDesc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more