Struct D3D11BlendDesc
Describes the blend state that you use in a call to CreateBlendState(D3D11BlendDesc) to create a blend-state object.
Implements
Inherited Members
Namespace: JeremyAnsel.DirectX.D3D11
Assembly: JeremyAnsel.DirectX.D3D11.dll
Syntax
public struct D3D11BlendDesc : IEquatable<D3D11BlendDesc>
Properties
| Edit this page View SourceDefault
Gets default blend-state values.
Declaration
public static D3D11BlendDesc Default { get; }
Property Value
Type | Description |
---|---|
D3D11BlendDesc |
IsAlphaToCoverageEnabled
Gets or sets a value indicating whether to use alpha-to-coverage as a multisampling technique when setting a pixel to a render target.
Declaration
public bool IsAlphaToCoverageEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
IsIndependentBlendEnabled
Gets or sets a value indicating whether to enable independent blending in simultaneous render targets.
Declaration
public bool IsIndependentBlendEnabled { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
| Edit this page View SourceEquals(D3D11BlendDesc)
Determines whether the specified object is equal to the current object.
Declaration
public bool Equals(D3D11BlendDesc other)
Parameters
Type | Name | Description |
---|---|---|
D3D11BlendDesc | 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
| Edit this page View SourceGetRenderTargets()
Gets an array of D3D11RenderTargetBlendDesc structures that describe the blend states for render targets.
Declaration
public D3D11RenderTargetBlendDesc[] GetRenderTargets()
Returns
Type | Description |
---|---|
D3D11RenderTargetBlendDesc[] | An array of D3D11RenderTargetBlendDesc structures. |
SetRenderTargets(D3D11RenderTargetBlendDesc[])
Sets an array of D3D11RenderTargetBlendDesc structures that describe the blend states for render targets.
Declaration
public void SetRenderTargets(D3D11RenderTargetBlendDesc[] blendDescs)
Parameters
Type | Name | Description |
---|---|---|
D3D11RenderTargetBlendDesc[] | blendDescs | The blend states descriptions. |
Operators
| Edit this page View Sourceoperator ==(D3D11BlendDesc, D3D11BlendDesc)
Compares two D3D11BlendDesc objects. The result specifies whether the values of the two objects are equal.
Declaration
public static bool operator ==(D3D11BlendDesc left, D3D11BlendDesc right)
Parameters
Type | Name | Description |
---|---|---|
D3D11BlendDesc | left | The left D3D11BlendDesc to compare. |
D3D11BlendDesc | right | The right D3D11BlendDesc to compare. |
Returns
Type | Description |
---|---|
bool |
operator !=(D3D11BlendDesc, D3D11BlendDesc)
Compares two D3D11BlendDesc objects. The result specifies whether the values of the two objects are unequal.
Declaration
public static bool operator !=(D3D11BlendDesc left, D3D11BlendDesc right)
Parameters
Type | Name | Description |
---|---|---|
D3D11BlendDesc | left | The left D3D11BlendDesc to compare. |
D3D11BlendDesc | right | The right D3D11BlendDesc to compare. |
Returns
Type | Description |
---|---|
bool |