[PR #1208] d3d12: advertise WriteBufferImmediate for addressable buffers #1240

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

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/1208
Author: @PyZikYG
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: write-buffer-immediate-capability


📝 Commits (1)

  • c2fb5b6 d3d12: advertise WriteBufferImmediate for addressable buffers

📊 Changes

3 files changed (+55 additions, -6 deletions)

View changed files

📝 docs/d3d12_vulkan.md (+6 -5)
📝 runtime/shims/d3d12_vulkan_device.cpp (+5 -1)
📝 runtime/test/d3d12_vulkan_device_test.cpp (+44 -0)

📄 Description

Claimed as D3D-WRITE-IMMEDIATE-CAPS.

OPTIONS3 always returned no WriteBufferImmediate support, even though the Vulkan runtime already executes these writes through vkCmdUpdateBuffer. Applications that check the feature flag before recording a write could not discover the implemented path.

Report direct, bundle, compute and copy list support when the console GPU-address arena and Vulkan update entry point are available. Leave the flags clear when either prerequisite is missing.

AI-assisted: yes.

Tested


🔄 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/1208 **Author:** [@PyZikYG](https://github.com/PyZikYG) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `write-buffer-immediate-capability` --- ### 📝 Commits (1) - [`c2fb5b6`](https://github.com/ubiquitarianism/leonida/commit/c2fb5b68c6e4a084c3180e40199cd9aa8239af67) d3d12: advertise WriteBufferImmediate for addressable buffers ### 📊 Changes **3 files changed** (+55 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `docs/d3d12_vulkan.md` (+6 -5) 📝 `runtime/shims/d3d12_vulkan_device.cpp` (+5 -1) 📝 `runtime/test/d3d12_vulkan_device_test.cpp` (+44 -0) </details> ### 📄 Description Claimed as [D3D-WRITE-IMMEDIATE-CAPS](https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7143244652). OPTIONS3 always returned no WriteBufferImmediate support, even though the Vulkan runtime already executes these writes through vkCmdUpdateBuffer. Applications that check the feature flag before recording a write could not discover the implemented path. Report direct, bundle, compute and copy list support when the console GPU-address arena and Vulkan update entry point are available. Leave the flags clear when either prerequisite is missing. AI-assisted: yes. ### Tested - `d3d12_vulkan_device`: PASS - `replay_write_immediate_predication`: PASS - [Independent validation on Windows](https://github.com/ubiquitarianism/leonida/pull/1208#issuecomment-7145000136) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#1240
No description provided.