Struct BlendStateRenderTargetDescription
Describes the blend state.
Implements
Inherited Members
Namespace: Evergine.Common.Graphics
Assembly: Evergine.Common.dll
Syntax
public struct BlendStateRenderTargetDescription : IEquatable<BlendStateRenderTargetDescription>
Fields
BlendEnable
Enable (or disable) blending.
Declaration
[RenderProperty(Tag = 1)]
public bool BlendEnable
Field Value
Type | Description |
---|---|
bool |
BlendOperationAlpha
This blend operation defines how to combine the SrcBlendAlpha and DestBlendAlpha operations.
Declaration
[RenderProperty(AttachToTag = 1, AttachToValue = true)]
public BlendOperation BlendOperationAlpha
Field Value
Type | Description |
---|---|
BlendOperation |
BlendOperationColor
This blend operation defines how to combine the SrcBlend and DestBlend operations.
Declaration
[RenderProperty(AttachToTag = 1, AttachToValue = true)]
public BlendOperation BlendOperationColor
Field Value
Type | Description |
---|---|
BlendOperation |
ColorWriteChannels
A write mask.
Declaration
[RenderProperty(AttachToTag = 1, AttachToValue = true)]
public ColorWriteChannels ColorWriteChannels
Field Value
Type | Description |
---|---|
ColorWriteChannels |
DestinationBlendAlpha
This blend option specifies the operation to perform on the current alpha value in the render target. Blend options that end in _COLOR are not allowed. The BlendOpAlpha member defines how to combine the SrcBlendAlpha and DestBlendAlpha operations.
Declaration
[RenderProperty(AttachToTag = 1, AttachToValue = true)]
public Blend DestinationBlendAlpha
Field Value
Type | Description |
---|---|
Blend |
DestinationBlendColor
This blend option specifies the operation to perform on the current RGB value in the render target. The BlendOp member defines how to combine the SrcBlend and DestBlend operations.
Declaration
[RenderProperty(AttachToTag = 1, AttachToValue = true)]
public Blend DestinationBlendColor
Field Value
Type | Description |
---|---|
Blend |
SourceBlendAlpha
This blend option specifies the operation to perform on the alpha value that the pixel shader outputs. Blend options that end in _COLOR are not allowed. The BlendOpAlpha member defines how to combine the SrcBlendAlpha and DestBlendAlpha operations.
Declaration
[RenderProperty(AttachToTag = 1, AttachToValue = true)]
public Blend SourceBlendAlpha
Field Value
Type | Description |
---|---|
Blend |
SourceBlendColor
This blend option specifies the operation to perform on the RGB value that the pixel shader outputs. The BlendOp member defines how to combine the SrcBlend and DestBlend operations.
Declaration
[RenderProperty(AttachToTag = 1, AttachToValue = true)]
public Blend SourceBlendColor
Field Value
Type | Description |
---|---|
Blend |
Properties
Default
Gets default values for BlendStateDescription.
Declaration
public static BlendStateRenderTargetDescription Default { get; }
Property Value
Type | Description |
---|---|
BlendStateRenderTargetDescription |
Methods
Equals(BlendStateRenderTargetDescription)
Returns a hash code for this instance.
Declaration
public bool Equals(BlendStateRenderTargetDescription other)
Parameters
Type | Name | Description |
---|---|---|
BlendStateRenderTargetDescription | 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 ==(BlendStateRenderTargetDescription, BlendStateRenderTargetDescription)
Implements the operator ==.
Declaration
public static bool operator ==(BlendStateRenderTargetDescription value1, BlendStateRenderTargetDescription value2)
Parameters
Type | Name | Description |
---|---|---|
BlendStateRenderTargetDescription | value1 | The value1. |
BlendStateRenderTargetDescription | value2 | The value2. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |
operator !=(BlendStateRenderTargetDescription, BlendStateRenderTargetDescription)
Implements the operator ==.
Declaration
public static bool operator !=(BlendStateRenderTargetDescription value1, BlendStateRenderTargetDescription value2)
Parameters
Type | Name | Description |
---|---|---|
BlendStateRenderTargetDescription | value1 | The value1. |
BlendStateRenderTargetDescription | value2 | The value2. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |