[PR #2799] [MERGED] vk_rasterizer: Improve viewport depth calculations. #2989

Closed
opened 2026-02-27 22:02:01 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/2799
Author: @squidbus
Created: 4/17/2025
Status: Merged
Merged: 4/17/2025
Merged by: @squidbus

Base: mainHead: viewport-depth


📝 Commits (1)

  • 1bf7704 vk_rasterizer: Improve viewport depth calculations.

📊 Changes

1 file changed (+24 additions, -10 deletions)

View changed files

📝 src/video_core/renderer_vulkan/vk_rasterizer.cpp (+24 -10)

📄 Description

  • Improve viewport minDepth/maxDepth calculation to be more clear, with references provided.
  • Apply viewport depth clamp.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/shadps4-emu/shadPS4/pull/2799 **Author:** [@squidbus](https://github.com/squidbus) **Created:** 4/17/2025 **Status:** ✅ Merged **Merged:** 4/17/2025 **Merged by:** [@squidbus](https://github.com/squidbus) **Base:** `main` ← **Head:** `viewport-depth` --- ### 📝 Commits (1) - [`1bf7704`](https://github.com/shadps4-emu/shadPS4/commit/1bf7704fbbaefde30b0c1ff13f8ecbc4d05475c2) vk_rasterizer: Improve viewport depth calculations. ### 📊 Changes **1 file changed** (+24 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `src/video_core/renderer_vulkan/vk_rasterizer.cpp` (+24 -10) </details> ### 📄 Description * Improve viewport `minDepth`/`maxDepth` calculation to be more clear, with references provided. * Apply viewport depth clamp. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 22:02:01 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/shadPS4#2989
No description provided.