struct BlendStateInformation

Describes a graphics pipeline blend state.

Public

Methods

staticGenerateHash

static u64 GenerateHash(const BlendStateInformation &value)

Generates a hash value from a blend state descriptor.

Fields

EnableAlphaToCoverage

bool EnableAlphaToCoverage

Alpha to coverage allows you to perform blending without needing to worry about order of rendering like regular blending does.

It requires multi-sampling to be active in order to work, and you need to supply an alpha texture that determines object transparency.

Blending is then performed by only using sub-samples covered by the alpha texture for the current pixel and combining them with sub-samples previously stored.

Be aware this is a limited technique only useful for certain situations. Unless you are having performance problems use regular blending.

EnableIndependantBlend

bool EnableIndependantBlend

When not set, only the first render target blend descriptor will be used for all render targets.

If set each render target will use its own blend descriptor.

RenderTargets

Operators

operator==

bool operator==(const BlendStateInformation &rhs) const