Class BlendState
public class BlendState : GraphicsResource, IDisposable
- Inheritance
-
BlendState
- Implements
- Inherited Members
Constructors
BlendState()
public BlendState()
Fields
Additive
public static readonly BlendState Additive
Field Value
AlphaBlend
public static readonly BlendState AlphaBlend
Field Value
NonPremultiplied
public static readonly BlendState NonPremultiplied
Field Value
Opaque
public static readonly BlendState Opaque
Field Value
Properties
AlphaBlendFunction
public BlendFunction AlphaBlendFunction { get; set; }
Property Value
AlphaDestinationBlend
public Blend AlphaDestinationBlend { get; set; }
Property Value
AlphaSourceBlend
public Blend AlphaSourceBlend { get; set; }
Property Value
BlendFactor
The color used as blend factor when alpha blending.
public Color BlendFactor { get; set; }
Property Value
Remarks
BlendFactor is set to this value when this BlendState is bound to a GraphicsDevice.
ColorBlendFunction
public BlendFunction ColorBlendFunction { get; set; }
Property Value
ColorDestinationBlend
public Blend ColorDestinationBlend { get; set; }
Property Value
ColorSourceBlend
public Blend ColorSourceBlend { get; set; }
Property Value
ColorWriteChannels
public ColorWriteChannels ColorWriteChannels { get; set; }
Property Value
ColorWriteChannels1
public ColorWriteChannels ColorWriteChannels1 { get; set; }
Property Value
ColorWriteChannels2
public ColorWriteChannels ColorWriteChannels2 { get; set; }
Property Value
ColorWriteChannels3
public ColorWriteChannels ColorWriteChannels3 { get; set; }
Property Value
IndependentBlendEnable
Enables use of the per-target blend states.
public bool IndependentBlendEnable { get; set; }
Property Value
this[int]
Returns the target specific blend state.
public TargetBlendState this[int index] { get; }
Parameters
index
intThe 0 to 3 target blend state index.
Property Value
- TargetBlendState
A target blend state.
MultiSampleMask
public int MultiSampleMask { get; set; }
Property Value
Methods
Dispose(bool)
The method that derived classes should override to implement disposing of managed and native resources.
protected override void Dispose(bool disposing)
Parameters
disposing
boolTrue if managed objects should be disposed.
Remarks
Native resources should always be released regardless of the value of the disposing parameter.