mirror of
https://github.com/jmarshall23/DoomRTX.git
synced 2026-08-19 12:14:35 +02:00
Optimization work
This commit is contained in:
@@ -6161,6 +6161,8 @@ static UINT QD3D12_CalcMipCount(int width, int height)
|
||||
w = std::max<UINT>(1u, w >> 1);
|
||||
h = std::max<UINT>(1u, h >> 1);
|
||||
++levels;
|
||||
if (levels > 2)
|
||||
break;
|
||||
}
|
||||
return levels;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user