Struct GLBlendStateDescription
This struct represent all parameters supported in OpenGL for BlendStateDescription.
Implements
Inherited Members
Namespace: Evergine.OpenGL
Assembly: Evergine.OpenGL.dll
Syntax
public struct GLBlendStateDescription : IEquatable<GLBlendStateDescription>
Constructors
GLBlendStateDescription(ref BlendStateDescription)
Initializes a new instance of the GLBlendStateDescription struct.
Declaration
public GLBlendStateDescription(ref BlendStateDescription description)
Parameters
Type | Name | Description |
---|---|---|
BlendStateDescription | description | Evergine RasterizerStateDescription instance. |
Fields
BlendEnable
Enable (or disable) blending.
Declaration
public bool BlendEnable
Field Value
Type | Description |
---|---|
bool |
BlendOperationAlpha
This blend operation defines how to combine the SrcBlendAlpha and DestBlendAlpha operations.
Declaration
public BlendEquationModeEXT BlendOperationAlpha
Field Value
Type | Description |
---|---|
BlendEquationModeEXT |
BlendOperationColor
This blend operation defines how to combine the SrcBlend and DestBlend operations.
Declaration
public BlendEquationModeEXT BlendOperationColor
Field Value
Type | Description |
---|---|
BlendEquationModeEXT |
ColorWriteChannels
A write mask.
Declaration
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
public BlendingFactor DestinationBlendAlpha
Field Value
Type | Description |
---|---|
BlendingFactor |
DestintantionBlendColor
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
public BlendingFactor DestintantionBlendColor
Field Value
Type | Description |
---|---|
BlendingFactor |
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
public BlendingFactor SourceBlendAlpha
Field Value
Type | Description |
---|---|
BlendingFactor |
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
public BlendingFactor SourceBlendColor
Field Value
Type | Description |
---|---|
BlendingFactor |
Methods
Equals(GLBlendStateDescription)
Returns a hash code for this instance.
Declaration
public bool Equals(GLBlendStateDescription other)
Parameters
Type | Name | Description |
---|---|---|
GLBlendStateDescription | 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
Operators
operator ==(GLBlendStateDescription, GLBlendStateDescription)
Implements the operator ==.
Declaration
public static bool operator ==(GLBlendStateDescription value1, GLBlendStateDescription value2)
Parameters
Type | Name | Description |
---|---|---|
GLBlendStateDescription | value1 | The value1. |
GLBlendStateDescription | value2 | The value2. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |
operator !=(GLBlendStateDescription, GLBlendStateDescription)
Implements the operator ==.
Declaration
public static bool operator !=(GLBlendStateDescription value1, GLBlendStateDescription value2)
Parameters
Type | Name | Description |
---|---|---|
GLBlendStateDescription | value1 | The value1. |
GLBlendStateDescription | value2 | The value2. |
Returns
Type | Description |
---|---|
bool | The result of the operator. |