Table of Contents

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

blendFactor RgbaFloat

The constant blend color.

attachmentStates BlendAttachmentDescription[]

The blend attachment states.

BlendStateDescription(RgbaFloat, bool, params BlendAttachmentDescription[])

Constructs a new BlendStateDescription,

public BlendStateDescription(RgbaFloat blendFactor, bool alphaToCoverageEnabled, params BlendAttachmentDescription[] attachmentStates)

Parameters

blendFactor RgbaFloat

The constant blend color.

alphaToCoverageEnabled bool

Enables alpha-to-coverage, which causes a fragment's alpha value to be used when determining multi-sample coverage.

attachmentStates BlendAttachmentDescription[]

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

bool

AttachmentStates

An array of BlendAttachmentDescription describing how blending is performed for each color target used in the Pipeline.

public BlendAttachmentDescription[] AttachmentStates

Field Value

BlendAttachmentDescription[]

BlendFactor

A constant blend color used in BlendFactor and InverseBlendFactor, or otherwise ignored.

public RgbaFloat BlendFactor

Field Value

RgbaFloat

Empty

Describes an empty blend state in which no color targets are used.

public static readonly BlendStateDescription Empty

Field Value

BlendStateDescription

SingleAdditiveBlend

Describes a blend state in which a single color target is blended with AdditiveBlend.

public static readonly BlendStateDescription SingleAdditiveBlend

Field Value

BlendStateDescription

SingleAlphaBlend

Describes a blend state in which a single color target is blended with AlphaBlend.

public static readonly BlendStateDescription SingleAlphaBlend

Field Value

BlendStateDescription

SingleDisabled

Describes a blend state in which a single color target is blended with Disabled.

public static readonly BlendStateDescription SingleDisabled

Field Value

BlendStateDescription

SingleOverrideBlend

Describes a blend state in which a single color target is blended with OverrideBlend.

public static readonly BlendStateDescription SingleOverrideBlend

Field Value

BlendStateDescription

Methods

Equals(BlendStateDescription)

Element-wise equality.

public bool Equals(BlendStateDescription other)

Parameters

other BlendStateDescription

The 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.