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