mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 10:43:44 +01:00
GPU: modernize use C++17 constexpr for precalculate compilation
This commit is contained in:
1 parent
d9b952e684
commit
400d136f51
20 files changed
+89
-89
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user