Struct BlendStateDescription
A Pipeline component describing how values are blended into each individual color target.
Implements
Inherited Members
Namespace: Veldrid
Assembly: cs.temp.dll.dll
Syntax
public struct BlendStateDescription : IEquatable<BlendStateDescription>
Constructors
BlendStateDescription(RgbaFloat, Boolean, BlendAttachmentDescription[])
Constructs a new BlendStateDescription,
Declaration
public BlendStateDescription(RgbaFloat blendFactor, bool alphaToCoverageEnabled, params BlendAttachmentDescription[] attachmentStates)
Parameters
Type | Name | Description |
---|---|---|
RgbaFloat | blendFactor | The constant blend color. |
System.Boolean | alphaToCoverageEnabled | Enables alpha-to-coverage, which causes a fragment's alpha value to be used when determining multi-sample coverage. |
BlendAttachmentDescription[] | attachmentStates | The blend attachment states. |
BlendStateDescription(RgbaFloat, BlendAttachmentDescription[])
Constructs a new BlendStateDescription,
Declaration
public BlendStateDescription(RgbaFloat blendFactor, params BlendAttachmentDescription[] attachmentStates)
Parameters
Type | Name | Description |
---|---|---|
RgbaFloat | blendFactor | The constant blend color. |
BlendAttachmentDescription[] | attachmentStates | The blend attachment states. |
Fields
AlphaToCoverageEnabled
Enables alpha-to-coverage, which causes a fragment's alpha value to be used when determining multi-sample coverage.
Declaration
public bool AlphaToCoverageEnabled
Field Value
Type | Description |
---|---|
System.Boolean |
AttachmentStates
An array of BlendAttachmentDescription describing how blending is performed for each color target used in the Pipeline.
Declaration
public BlendAttachmentDescription[] AttachmentStates
Field Value
Type | Description |
---|---|
BlendAttachmentDescription[] |
BlendFactor
A constant blend color used in BlendFactor and InverseBlendFactor, or otherwise ignored.
Declaration
public RgbaFloat BlendFactor
Field Value
Type | Description |
---|---|
RgbaFloat |
Empty
Describes an empty blend state in which no color targets are used.
Declaration
public static readonly BlendStateDescription Empty
Field Value
Type | Description |
---|---|
BlendStateDescription |
SingleAdditiveBlend
Describes a blend state in which a single color target is blended with AdditiveBlend.
Declaration
public static readonly BlendStateDescription SingleAdditiveBlend
Field Value
Type | Description |
---|---|
BlendStateDescription |
SingleAlphaBlend
Describes a blend state in which a single color target is blended with AlphaBlend.
Declaration
public static readonly BlendStateDescription SingleAlphaBlend
Field Value
Type | Description |
---|---|
BlendStateDescription |
SingleDisabled
Describes a blend state in which a single color target is blended with Disabled.
Declaration
public static readonly BlendStateDescription SingleDisabled
Field Value
Type | Description |
---|---|
BlendStateDescription |
SingleOverrideBlend
Describes a blend state in which a single color target is blended with OverrideBlend.
Declaration
public static readonly BlendStateDescription SingleOverrideBlend
Field Value
Type | Description |
---|---|
BlendStateDescription |
Methods
Equals(BlendStateDescription)
Element-wise equality.
Declaration
public bool Equals(BlendStateDescription other)
Parameters
Type | Name | Description |
---|---|---|
BlendStateDescription | other | The instance to compare to. |
Returns
Type | Description |
---|---|
System.Boolean | True if all elements and all array elements are equal; false otherswise. |
GetHashCode()
Returns the hash code for this instance.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | A 32-bit signed integer that is the hash code for this instance. |