GPU: modernize use C++17 constexpr for precalculate compilation

This commit is contained in:
Herman Semenoff committed 2026-05-19 21:57:45 +03:00
1 parent d9b952e684
commit 400d136f51
20 files changed
+89 -89

No files matched your search

+1 -1
View File
@@ -157,7 +157,7 @@ static ScreenCoords ClipToScreenInternal(Vec3f scaled, const ClipCoords &coords,
// Account for rounding for X and Y.
// TODO: Validate actual rounding range.
const float SCREEN_BOUND = 4095.0f + (15.5f / 16.0f);
constexpr float SCREEN_BOUND = 4095.0f + (15.5f / 16.0f);
// This matches hardware tests - depth is clamped when this flag is on.
if constexpr (depthClamp) {