#include <MStateManager.h>
Descriptor for a complete blend state.
This class describes a complete blending state, including the blending state for all targets.
Public Member Functions | |
MBlendStateDesc () | |
Constructor, builds a default blend state. | |
~MBlendStateDesc () | |
Destructor. | |
void | setDefaults () |
Set all values for the blend state to their default values. | |
MBlendStateDesc (const MBlendStateDesc &rDesc) | |
NO SCRIPT SUPPORT. More... | |
MBlendStateDesc & | operator= (const MBlendStateDesc &rDesc) |
NO SCRIPT SUPPORT. More... | |
Static Public Member Functions | |
static const char * | className () |
Returns the name of this class. More... | |
Public Attributes | |
bool | alphaToCoverageEnable |
Enable alpha to coverage. More... | |
bool | independentBlendEnable |
Use TargetBlends[0] if false or individual blend states if true. More... | |
float | blendFactor [4] |
Global blend factor, default (1,1,1,1). More... | |
unsigned int | multiSampleMask |
Each bit in this mask, starting at the least significant bit (LSB), controls modification of one of the samples in a multisample render target. More... | |
MTargetBlendDesc | targetBlends [MBlendState::kMaxTargets] |
An array of 8 MTargetBlendDesc, one for each target. More... | |
MBlendStateDesc | ( | const MBlendStateDesc & | rDesc | ) |
NO SCRIPT SUPPORT.
Copy constructor.
[in] | rDesc | The descriptor to copy |
MBlendStateDesc & operator= | ( | const MBlendStateDesc & | rDesc | ) |
NO SCRIPT SUPPORT.
Assignment operator.
[in] | rDesc | The descriptor to copy |
|
static |
Returns the name of this class.
bool alphaToCoverageEnable |
Enable alpha to coverage.
Default false.
bool independentBlendEnable |
Use TargetBlends[0] if false or individual blend states if true.
Default false.
float blendFactor[4] |
Global blend factor, default (1,1,1,1).
unsigned int multiSampleMask |
Each bit in this mask, starting at the least significant bit (LSB), controls modification of one of the samples in a multisample render target.
Thus, for an 8-sample render target, the low byte contains the eight write enables for each of the eight samples. The actual location of the samples is determined by the GPU sample pattern, which is not in general known or controlled directly by applications. Default 0xffffffff.
MTargetBlendDesc targetBlends[MBlendState::kMaxTargets] |
An array of 8 MTargetBlendDesc, one for each target.