1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-24 13:20:13 +00:00

Minor /analyze warning fix

This commit is contained in:
walbourn_cp 2012-10-18 13:48:47 -07:00
parent 3f64170a59
commit 1425425b35

View File

@ -2130,6 +2130,9 @@ void D3DX_BC7::Encode(const HDRColorA* const pIn)
for(EP.uMode = 0; EP.uMode < 8 && fMSEBest > 0; ++EP.uMode) for(EP.uMode = 0; EP.uMode < 8 && fMSEBest > 0; ++EP.uMode)
{ {
const size_t uShapes = 1 << ms_aInfo[EP.uMode].uPartitionBits; const size_t uShapes = 1 << ms_aInfo[EP.uMode].uPartitionBits;
assert( uShapes < BC7_MAX_SHAPES );
__analysis_assume( uShapes < BC7_MAX_SHAPES );
const size_t uNumRots = 1 << ms_aInfo[EP.uMode].uRotationBits; const size_t uNumRots = 1 << ms_aInfo[EP.uMode].uRotationBits;
const size_t uNumIdxMode = 1 << ms_aInfo[EP.uMode].uIndexModeBits; const size_t uNumIdxMode = 1 << ms_aInfo[EP.uMode].uIndexModeBits;
// Number of rough cases to look at. reasonable values of this are 1, uShapes/4, and uShapes // Number of rough cases to look at. reasonable values of this are 1, uShapes/4, and uShapes