pub struct ShaderTargetBlend {
pub src: ShaderValue,
pub dst: ShaderValue,
pub src_alpha: ShaderValue,
pub dst_alpha: ShaderValue,
pub op: ShaderValue,
pub op_alpha: ShaderValue,
pub mask: ShaderValue,
}Expand description
One render target’s blend and write mask as the pass states them (rtBlend0 to rtBlend7): Unity’s BlendMode
factors and BlendOp operations, and the colour mask (bit 0 red to bit 3 alpha).
Fields§
§src: ShaderValuesrcBlend: the source colour factor.
dst: ShaderValuedestBlend: the destination colour factor.
src_alpha: ShaderValuesrcBlendAlpha: the source alpha factor.
dst_alpha: ShaderValuedestBlendAlpha: the destination alpha factor.
op: ShaderValueblendOp: the colour operation.
op_alpha: ShaderValueblendOpAlpha: the alpha operation.
mask: ShaderValuecolMask: the colour write mask.
Trait Implementations§
Source§impl Clone for ShaderTargetBlend
impl Clone for ShaderTargetBlend
Source§impl Debug for ShaderTargetBlend
impl Debug for ShaderTargetBlend
Source§impl PartialEq for ShaderTargetBlend
impl PartialEq for ShaderTargetBlend
Source§impl Serialize for ShaderTargetBlend
impl Serialize for ShaderTargetBlend
impl StructuralPartialEq for ShaderTargetBlend
Auto Trait Implementations§
impl Freeze for ShaderTargetBlend
impl RefUnwindSafe for ShaderTargetBlend
impl Send for ShaderTargetBlend
impl Sync for ShaderTargetBlend
impl Unpin for ShaderTargetBlend
impl UnsafeUnpin for ShaderTargetBlend
impl UnwindSafe for ShaderTargetBlend
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