Struct BlendStateDescription
Describes the blend state.
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public struct 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 of 7.
Declaration
public BlendStateRenderTargetDescription RenderTarget0
Field Value
Type | Description |
---|---|
BlendStateRenderTargetDescription |
RenderTarget1
Render Target blend description 1 of 7.
Declaration
public BlendStateRenderTargetDescription RenderTarget1
Field Value
Type | Description |
---|---|
BlendStateRenderTargetDescription |
RenderTarget2
RenderTarget blend description 2 of 7.
Declaration
public BlendStateRenderTargetDescription RenderTarget2
Field Value
Type | Description |
---|---|
BlendStateRenderTargetDescription |
RenderTarget3
Render Target blend description 3/7.
Declaration
public BlendStateRenderTargetDescription RenderTarget3
Field Value
Type | Description |
---|---|
BlendStateRenderTargetDescription |
RenderTarget4
Render target blend description 4/7.
Declaration
public BlendStateRenderTargetDescription RenderTarget4
Field Value
Type | Description |
---|---|
BlendStateRenderTargetDescription |
RenderTarget5
Render target blend description 5/7.
Declaration
public BlendStateRenderTargetDescription RenderTarget5
Field Value
Type | Description |
---|---|
BlendStateRenderTargetDescription |
RenderTarget6
RenderTarget blend description 6 of 7.
Declaration
public BlendStateRenderTargetDescription RenderTarget6
Field Value
Type | Description |
---|---|
BlendStateRenderTargetDescription |
RenderTarget7
RenderTarget blend description 7 out of 7.
Declaration
public BlendStateRenderTargetDescription RenderTarget7
Field Value
Type | Description |
---|---|
BlendStateRenderTargetDescription |
Properties
Default
Gets the 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 | The object 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 hash tables. |
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 first value. |
BlendStateDescription | value2 | The second value. |
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 first value. |
BlendStateDescription | value2 | The second value. |
Returns
Type | Description |
---|---|
bool | The result of the operation. |