Engine/src/Graphics/DX12/TextureDX12.cpp
// Compute the number of mipmap levels required for the given dimension.
Compute the number of mipmap levels required for the given dimension.
Compute the number of mipmap levels required for the given dimension .
uint8_t ComputeMipLevels( uint64_t size )
{
    DWORD MSB;
    _BitScanReverse64( &MSB, size );
    return static_cast<uint8_t>( MSB + 1 );
}
uint8_t ComputeMipLevels ( uint64_t size ) { DWORD MSB ; _BitScanReverse64 ( & MSB , size ) ; return static_cast < uint8_t > ( MSB + 1 ) ; }
Compute the number of mipmap levels required for the given dimension.
Compute the number of mipmap levels required for the given dimension .