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 AlphaToCoverageEnable
Field 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 IndependentBlendEnable
Field 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 RenderTarget0
Field Value
RenderTarget1
public BlendStateRenderTargetDescription RenderTarget1
Field Value
RenderTarget2
public BlendStateRenderTargetDescription RenderTarget2
Field Value
RenderTarget3
public BlendStateRenderTargetDescription RenderTarget3
Field Value
RenderTarget4
public BlendStateRenderTargetDescription RenderTarget4
Field Value
RenderTarget5
public BlendStateRenderTargetDescription RenderTarget5
Field Value
RenderTarget6
public BlendStateRenderTargetDescription RenderTarget6
Field Value
RenderTarget7
public BlendStateRenderTargetDescription RenderTarget7
Field 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
other
BlendStateDescriptionAn 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
obj
objectThe object to compare with the current instance.
Returns
- bool
true if
obj
and 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
left
BlendStateDescriptionright
BlendStateDescription
Returns
operator !=(BlendStateDescription, BlendStateDescription)
public static bool operator !=(BlendStateDescription left, BlendStateDescription right)
Parameters
left
BlendStateDescriptionright
BlendStateDescription