Struct BlendStateDescription
Describes a blend state.
[DataContract]
public struct BlendStateDescription : IEquatable<BlendStateDescription>- Implements
- Inherited Members
Constructors
BlendStateDescription(Blend, Blend)
Initializes a new instance of the BlendStateDescription class.
public BlendStateDescription(Blend sourceBlend, Blend destinationBlend)Parameters
Fields
AlphaToCoverageEnable
Determines whether or not to use alpha-to-coverage as a multisampling technique when setting a pixel to a rendertarget.
public bool AlphaToCoverageEnableField Value
IndependentBlendEnable
Set to true to enable independent blending in simultaneous render targets. If set to false, only the RenderTarget[0] members are used. RenderTarget[1..7] are ignored.
public bool IndependentBlendEnableField Value
RenderTarget0
An array of render-target-blend descriptions (see BlendStateRenderTargetDescription); these correspond to the eight rendertargets that can be set to the output-merger stage at one time.
public BlendStateRenderTargetDescription RenderTarget0Field Value
RenderTarget1
public BlendStateRenderTargetDescription RenderTarget1Field Value
RenderTarget2
public BlendStateRenderTargetDescription RenderTarget2Field Value
RenderTarget3
public BlendStateRenderTargetDescription RenderTarget3Field Value
RenderTarget4
public BlendStateRenderTargetDescription RenderTarget4Field Value
RenderTarget5
public BlendStateRenderTargetDescription RenderTarget5Field Value
RenderTarget6
public BlendStateRenderTargetDescription RenderTarget6Field Value
RenderTarget7
public BlendStateRenderTargetDescription RenderTarget7Field Value
Properties
Default
Gets default values for this instance.
public static BlendStateDescription Default { get; }Property Value
Methods
Equals(BlendStateDescription)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(BlendStateDescription other)Parameters
- otherBlendStateDescription
- An object to compare with this object. 
Returns
Equals(object)
Indicates whether this instance and a specified object are equal.
public override bool Equals(object obj)Parameters
- objobject
- The object to compare with the current instance. 
Returns
- bool
- true if - objand this instance are the same type and represent the same value; otherwise, false.
GetHashCode()
Returns the hash code for this instance.
public override int GetHashCode()Returns
- int
- A 32-bit signed integer that is the hash code for this instance. 
SetDefaults()
Setup this blend description with defaults value.
public void SetDefaults()Operators
operator ==(BlendStateDescription, BlendStateDescription)
public static bool operator ==(BlendStateDescription left, BlendStateDescription right)Parameters
- leftBlendStateDescription
- rightBlendStateDescription
Returns
operator !=(BlendStateDescription, BlendStateDescription)
public static bool operator !=(BlendStateDescription left, BlendStateDescription right)Parameters
- leftBlendStateDescription
- rightBlendStateDescription