[PR #827] [CLOSED] d3d12: support multi-viewport and multi-scissor up to 16 entries #867

Closed
opened 2026-11-26 20:19:19 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/827
Author: @kotekompotek
Created: 11/24/2026
Status: ❌ Closed

Base: main ← Head: work/d3d12-multi-viewport-scissor


📝 Commits (1)

  • cca93a9 d3d12: support multi-viewport and multi-scissor up to 16 entries

📊 Changes

8 files changed (+125 additions, -49 deletions)

View changed files

📝 docs/d3d12_vulkan.md (+3 -1)
📝 runtime/shims/d3d12_com.cpp (+43 -18)
📝 runtime/shims/d3d12_vulkan_device.cpp (+23 -22)
📝 runtime/src/command_list.h (+4 -0)
📝 runtime/src/vulkan_backend.h (+8 -0)
📝 runtime/src/vulkan_replay.h (+35 -8)
📝 runtime/test/d3d12_com_test.cpp (+8 -0)
📝 runtime/test/vk_test_device.h (+1 -0)

📄 Description

Claimed in the coordination issue as: coordination issue #14

What and why

  • Rebased onto current main.
  • Supported up to 16 viewports and scissor rectangles via VK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT / VK_DYNAMIC_STATE_SCISSOR_WITH_COUNT when VkPhysicalDeviceFeatures::multiViewport is enabled, added log_once notice when clamped to 1, and synced docs/d3d12_vulkan.md.

Tested

  • Built d3d12_com_test and ran ctest -R ^d3d12_com$ (Passed, 1.47s).

GPUs tested: NVIDIA GeForce GTX 1050 (driver 582.28, Windows)

AI-assisted: yes

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed.

🔄 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/ubiquitarianism/leonida/pull/827 **Author:** [@kotekompotek](https://github.com/kotekompotek) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `work/d3d12-multi-viewport-scissor` --- ### 📝 Commits (1) - [`cca93a9`](https://github.com/ubiquitarianism/leonida/commit/cca93a932398f935fd942ffbe1bfdbe9024fe4f2) d3d12: support multi-viewport and multi-scissor up to 16 entries ### 📊 Changes **8 files changed** (+125 additions, -49 deletions) <details> <summary>View changed files</summary> 📝 `docs/d3d12_vulkan.md` (+3 -1) 📝 `runtime/shims/d3d12_com.cpp` (+43 -18) 📝 `runtime/shims/d3d12_vulkan_device.cpp` (+23 -22) 📝 `runtime/src/command_list.h` (+4 -0) 📝 `runtime/src/vulkan_backend.h` (+8 -0) 📝 `runtime/src/vulkan_replay.h` (+35 -8) 📝 `runtime/test/d3d12_com_test.cpp` (+8 -0) 📝 `runtime/test/vk_test_device.h` (+1 -0) </details> ### 📄 Description Claimed in the coordination issue as: coordination issue #14 ### What and why - Rebased onto current `main`. - Supported up to 16 viewports and scissor rectangles via `VK_DYNAMIC_STATE_VIEWPORT_WITH_COUNT` / `VK_DYNAMIC_STATE_SCISSOR_WITH_COUNT` when `VkPhysicalDeviceFeatures::multiViewport` is enabled, added `log_once` notice when clamped to 1, and synced `docs/d3d12_vulkan.md`. ### Tested - Built `d3d12_com_test` and ran `ctest -R ^d3d12_com$` (`Passed`, 1.47s). GPUs tested: NVIDIA GeForce GTX 1050 (driver 582.28, Windows) AI-assisted: yes ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [ ] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:19 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
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/leonida#867
No description provided.