Struct BlendStateDescription
Describes the blend state.
Implements
Inherited Members
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public struct BlendStateDescription : IEquatable<BlendStateDescription>
  Fields
AlphaToCoverageEnable
Specifies whether to use alpha-to-coverage as a multisampling technique when setting a pixel to a render target.
Declaration
public bool AlphaToCoverageEnable
  Field Value
| Type | Description | 
|---|---|
| bool | 
IndependentBlendEnable
Specifies whether to enable independent blending in simultaneous render targets. Set to TRUE to enable independent blending. If set to FALSE, only the RenderTarget[0] members are used; RenderTarget[1..7] are ignored.
Declaration
public bool IndependentBlendEnable
  Field Value
| Type | Description | 
|---|---|
| bool | 
RenderTarget0
RenderTarget blend description 0 / 7.
Declaration
public BlendStateRenderTargetDescription RenderTarget0
  Field Value
| Type | Description | 
|---|---|
| BlendStateRenderTargetDescription | 
RenderTarget1
RenderTarget blend description 1 / 7.
Declaration
public BlendStateRenderTargetDescription RenderTarget1
  Field Value
| Type | Description | 
|---|---|
| BlendStateRenderTargetDescription | 
RenderTarget2
RenderTarget blend description 2 / 7.
Declaration
public BlendStateRenderTargetDescription RenderTarget2
  Field Value
| Type | Description | 
|---|---|
| BlendStateRenderTargetDescription | 
RenderTarget3
RenderTarget blend description 3 / 7.
Declaration
public BlendStateRenderTargetDescription RenderTarget3
  Field Value
| Type | Description | 
|---|---|
| BlendStateRenderTargetDescription | 
RenderTarget4
RenderTarget blend description 4 / 7.
Declaration
public BlendStateRenderTargetDescription RenderTarget4
  Field Value
| Type | Description | 
|---|---|
| BlendStateRenderTargetDescription | 
RenderTarget5
RenderTarget blend description 5 / 7.
Declaration
public BlendStateRenderTargetDescription RenderTarget5
  Field Value
| Type | Description | 
|---|---|
| BlendStateRenderTargetDescription | 
RenderTarget6
RenderTarget blend description 6 / 7.
Declaration
public BlendStateRenderTargetDescription RenderTarget6
  Field Value
| Type | Description | 
|---|---|
| BlendStateRenderTargetDescription | 
RenderTarget7
RenderTarget blend description 7 / 7.
Declaration
public BlendStateRenderTargetDescription RenderTarget7
  Field Value
| Type | Description | 
|---|---|
| BlendStateRenderTargetDescription | 
Properties
Default
Gets default values for BlendStateDescription.
Declaration
public static BlendStateDescription Default { get; }
  Property Value
| Type | Description | 
|---|---|
| BlendStateDescription | 
Methods
Equals(BlendStateDescription)
Returns a hash code for this instance.
Declaration
public bool Equals(BlendStateDescription other)
  Parameters
| Type | Name | Description | 
|---|---|---|
| BlendStateDescription | other | Other used to compare.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.  | 
      
Equals(object)
Determines whether the specified object is equal to this instance.
Declaration
public override bool Equals(object obj)
  Parameters
| Type | Name | Description | 
|---|---|---|
| object | obj | The object to compare with this instance.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | 
  | 
      
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
  Returns
| Type | Description | 
|---|---|
| int | A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.  | 
      
Overrides
SetDefault()
Default BlendStateDescription values.
Declaration
public void SetDefault()
  Operators
operator ==(BlendStateDescription, BlendStateDescription)
Implements the operator ==.
Declaration
public static bool operator ==(BlendStateDescription value1, BlendStateDescription value2)
  Parameters
| Type | Name | Description | 
|---|---|---|
| BlendStateDescription | value1 | The value1.  | 
      
| BlendStateDescription | value2 | The value2.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | The result of the operator.  | 
      
operator !=(BlendStateDescription, BlendStateDescription)
Implements the operator ==.
Declaration
public static bool operator !=(BlendStateDescription value1, BlendStateDescription value2)
  Parameters
| Type | Name | Description | 
|---|---|---|
| BlendStateDescription | value1 | The value1.  | 
      
| BlendStateDescription | value2 | The value2.  | 
      
Returns
| Type | Description | 
|---|---|
| bool | The result of the operator.  |