Descriptor for a complete blend state.
This class describes a complete blending state, including the blending state for all targets.
#include <MStateManager.h>
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. |
|
MBlendStateDesc & | operator= (const MBlendStateDesc &rDesc) |
NO SCRIPT SUPPORT. |
|
Static Public Member Functions |
|
static const char * | className () |
Returns the name of this class. |
|
Public Attributes |
|
bool | alphaToCoverageEnable |
Enable alpha to coverage. |
|
bool | independentBlendEnable |
Use TargetBlends[0] if false or individual
blend states if true. |
|
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. |
|
MTargetBlendDesc | targetBlends [MBlendState::kMaxTargets] |
An array of 8 MTargetBlendDesc,
one for each target. |
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 |
const char * className | ( | ) | [static] |
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.
An array of 8 MTargetBlendDesc, one for each target.