Table of Contents

Struct BlendStateDescription

Namespace
Stride.Graphics
Assembly
Stride.Graphics.dll

Describes a blend state.

[DataContract]
public struct BlendStateDescription : IEquatable<BlendStateDescription>
Implements
Inherited Members

Constructors

BlendStateDescription(Blend, Blend)

Initializes a new instance of the BlendStateDescription class.

public BlendStateDescription(Blend sourceBlend, Blend destinationBlend)

Parameters

sourceBlend Blend

The source blend.

destinationBlend Blend

The destination blend.

Fields

AlphaToCoverageEnable

Determines whether or not to use alpha-to-coverage as a multisampling technique when setting a pixel to a rendertarget.

public bool AlphaToCoverageEnable

Field Value

bool

IndependentBlendEnable

Set to true to enable independent blending in simultaneous render targets. If set to false, only the RenderTarget[0] members are used. RenderTarget[1..7] are ignored.

public bool IndependentBlendEnable

Field Value

bool

RenderTarget0

An array of render-target-blend descriptions (see BlendStateRenderTargetDescription); these correspond to the eight rendertargets that can be set to the output-merger stage at one time.

public BlendStateRenderTargetDescription RenderTarget0

Field Value

BlendStateRenderTargetDescription

RenderTarget1

public BlendStateRenderTargetDescription RenderTarget1

Field Value

BlendStateRenderTargetDescription

RenderTarget2

public BlendStateRenderTargetDescription RenderTarget2

Field Value

BlendStateRenderTargetDescription

RenderTarget3

public BlendStateRenderTargetDescription RenderTarget3

Field Value

BlendStateRenderTargetDescription

RenderTarget4

public BlendStateRenderTargetDescription RenderTarget4

Field Value

BlendStateRenderTargetDescription

RenderTarget5

public BlendStateRenderTargetDescription RenderTarget5

Field Value

BlendStateRenderTargetDescription

RenderTarget6

public BlendStateRenderTargetDescription RenderTarget6

Field Value

BlendStateRenderTargetDescription

RenderTarget7

public BlendStateRenderTargetDescription RenderTarget7

Field Value

BlendStateRenderTargetDescription

Properties

Default

Gets default values for this instance.

public static BlendStateDescription Default { get; }

Property Value

BlendStateDescription

Methods

Equals(BlendStateDescription)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(BlendStateDescription other)

Parameters

other BlendStateDescription

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Indicates whether this instance and a specified object are equal.

public override bool Equals(object obj)

Parameters

obj object

The object to compare with the current instance.

Returns

bool

true if obj and this instance are the same type and represent the same value; otherwise, false.

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.

SetDefaults()

Setup this blend description with defaults value.

public void SetDefaults()

Operators

operator ==(BlendStateDescription, BlendStateDescription)

public static bool operator ==(BlendStateDescription left, BlendStateDescription right)

Parameters

left BlendStateDescription
right BlendStateDescription

Returns

bool

operator !=(BlendStateDescription, BlendStateDescription)

public static bool operator !=(BlendStateDescription left, BlendStateDescription right)

Parameters

left BlendStateDescription
right BlendStateDescription

Returns

bool