mirror of
https://github.com/microsoft/DirectXTex
synced 2024-11-21 12:00:06 +00:00
Minor /analyze warning fix
This commit is contained in:
parent
3f64170a59
commit
1425425b35
@ -2130,6 +2130,9 @@ void D3DX_BC7::Encode(const HDRColorA* const pIn)
|
||||
for(EP.uMode = 0; EP.uMode < 8 && fMSEBest > 0; ++EP.uMode)
|
||||
{
|
||||
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 uNumIdxMode = 1 << ms_aInfo[EP.uMode].uIndexModeBits;
|
||||
// Number of rough cases to look at. reasonable values of this are 1, uShapes/4, and uShapes
|
||||
|
Loading…
Reference in New Issue
Block a user