Struct D3D11RenderTargetBlendDesc
Describes the blend state for a render target.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public struct D3D11RenderTargetBlendDesc : IEquatable<D3D11RenderTargetBlendDesc>
Properties
| Edit this page View SourceBlendOperation
Gets or sets a value indicating how to combine the SrcBlend
and DestBlend
operations.
Declaration
public D3D11BlendOperation BlendOperation { get; set; }
Property Value
Type | Description |
---|---|
D3D11BlendOperation |
BlendOperationAlpha
Gets or sets a value indicating how to combine the SrcBlendAlpha
and DestBlendAlpha
operations.
Declaration
public D3D11BlendOperation BlendOperationAlpha { get; set; }
Property Value
Type | Description |
---|---|
D3D11BlendOperation |
DestinationBlend
Gets or sets the operation to perform on the current RGB value in the render target.
Declaration
public D3D11BlendValue DestinationBlend { get; set; }
Property Value
Type | Description |
---|---|
D3D11BlendValue |
DestinationBlendAlpha
Gets or sets the operation to perform on the current alpha value in the render target. Blend options that end in _COLOR
are not allowed.
Declaration
public D3D11BlendValue DestinationBlendAlpha { get; set; }
Property Value
Type | Description |
---|---|
D3D11BlendValue |
IsBlendEnabled
Gets or sets a value indicating whether blending is enabled.
Declaration
public bool IsBlendEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
RenderTargetWriteMask
Gets or sets a write mask.
Declaration
public D3D11ColorWriteEnables RenderTargetWriteMask { get; set; }
Property Value
Type | Description |
---|---|
D3D11ColorWriteEnables |
SourceBlend
Gets or sets the operation to perform on the RGB value that the pixel shader outputs.
Declaration
public D3D11BlendValue SourceBlend { get; set; }
Property Value
Type | Description |
---|---|
D3D11BlendValue |
SourceBlendAlpha
Gets or sets the operation to perform on the alpha value that the pixel shader outputs. Blend options that end in _COLOR
are not allowed.
Declaration
public D3D11BlendValue SourceBlendAlpha { get; set; }
Property Value
Type | Description |
---|---|
D3D11BlendValue |
Methods
| Edit this page View SourceEquals(D3D11RenderTargetBlendDesc)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D3D11RenderTargetBlendDesc other)
Parameters
Type | Name | Description |
---|---|---|
D3D11RenderTargetBlendDesc | other | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The object to compare with the current object. |
Returns
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceGetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | A 32-bit signed integer that is the hash code for this instance. |
Overrides
Operators
| Edit this page View Sourceoperator ==(D3D11RenderTargetBlendDesc, D3D11RenderTargetBlendDesc)
Compares two D3D11RenderTargetBlendDesc objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D3D11RenderTargetBlendDesc left, D3D11RenderTargetBlendDesc right)
Parameters
Type | Name | Description |
---|---|---|
D3D11RenderTargetBlendDesc | left | The left D3D11RenderTargetBlendDesc to compare. |
D3D11RenderTargetBlendDesc | right | The right D3D11RenderTargetBlendDesc to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(D3D11RenderTargetBlendDesc, D3D11RenderTargetBlendDesc)
Compares two D3D11RenderTargetBlendDesc objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D3D11RenderTargetBlendDesc left, D3D11RenderTargetBlendDesc right)
Parameters
Type | Name | Description |
---|---|---|
D3D11RenderTargetBlendDesc | left | The left D3D11RenderTargetBlendDesc to compare. |
D3D11RenderTargetBlendDesc | right | The right D3D11RenderTargetBlendDesc to compare. |
Returns
Type | Description |
---|---|
bool |