[PR #1236] [CLOSED] d3d12_vulkan_device: detect and enable VK_EXT_transform_feedback (D3D-TRANSFORM-FEEDBACK-DEVICE) #1268

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

📋 Pull Request Information

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

Base: main ← Head: feat/d3d-transform-feedback-device


📝 Commits (1)

  • c99f265 d3d12_vulkan_device: detect and enable VK_EXT_transform_feedback

📊 Changes

2 files changed (+30 additions, -0 deletions)

View changed files

📝 runtime/shims/d3d12_com.h (+7 -0)
📝 runtime/shims/d3d12_vulkan_device.cpp (+23 -0)

📄 Description

Claimed in the coordination issue as: D3D-TRANSFORM-FEEDBACK-DEVICE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7143836989)

Depends on: none

Fixes: none

What and why

Foundation for D3D-302 (stream output, docs/d3d12_vulkan.md): detects VK_EXT_transform_feedback and reads its transformFeedback/geometryStreams features on the physical device where the extension is present, records them on the new VulkanDeviceInfo::transform_feedback / transform_feedback_geometry_streams fields, and enables them on the logical device - the same detect/record/enable pattern the existing VK_EXT_mesh_shader code already uses a few lines above.

This is device-capability plumbing only, no behaviour change: a graphics PSO that declares StreamOutput is still refused with E_NOTIMPL and SOSetTargets is still not implemented, exactly as on main today. Actually implementing stream output (accepting the PSO, binding real buffers in SOSetTargets, wrapping draws in vkCmdBeginTransformFeedbackEXT/EndTransformFeedbackEXT, and wiring the SO_STATISTICS queries to VK_QUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT) is separate, larger follow-up work.

Tested

ctest --test-dir runtime/build -C RelWithDebInfo -R "d3d12_vulkan_device|d3d12_mesh|xbox_present_readback_size": 3/3 pass. Full runtime/build compiles clean (these two files are included by ~100 translation units; all rebuilt without warnings from this change).

A standalone probe confirmed VK_EXT_transform_feedback is available on this GPU with transformFeedback/geometryStreams both true, maxTransformFeedbackStreams/maxTransformFeedbackBuffers both 4 - matching D3D12's stream-output model (4 streams, 4 buffers) exactly, so there's no capability mismatch to work around when the real implementation lands.

GPUs tested: NVIDIA GeForce RTX 4070 SUPER, driver 621.24, Windows 11 26300.9974, Vulkan SDK 1.4.363.1.

AI-assisted: yes (Claude Code)

Checklist

  • Based on current main and merges cleanly.
  • One topic; follow-up work (the actual stream-output implementation) goes in a new pull request.
  • No game data, keys or decryption, including in logs or reports quoted here.
  • N/A: no new translator rule.

🔄 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/1236 **Author:** [@Miici0](https://github.com/Miici0) **Created:** 11/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/d3d-transform-feedback-device` --- ### 📝 Commits (1) - [`c99f265`](https://github.com/ubiquitarianism/leonida/commit/c99f26559a4cca1866da4891a3cfb27cd5236c3e) d3d12_vulkan_device: detect and enable VK_EXT_transform_feedback ### 📊 Changes **2 files changed** (+30 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `runtime/shims/d3d12_com.h` (+7 -0) 📝 `runtime/shims/d3d12_vulkan_device.cpp` (+23 -0) </details> ### 📄 Description Claimed in the coordination issue as: D3D-TRANSFORM-FEEDBACK-DEVICE (https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7143836989) Depends on: none Fixes: none ### What and why Foundation for D3D-302 (stream output, docs/d3d12_vulkan.md): detects `VK_EXT_transform_feedback` and reads its `transformFeedback`/`geometryStreams` features on the physical device where the extension is present, records them on the new `VulkanDeviceInfo::transform_feedback` / `transform_feedback_geometry_streams` fields, and enables them on the logical device - the same detect/record/enable pattern the existing `VK_EXT_mesh_shader` code already uses a few lines above. This is device-capability plumbing only, no behaviour change: a graphics PSO that declares `StreamOutput` is still refused with `E_NOTIMPL` and `SOSetTargets` is still not implemented, exactly as on `main` today. Actually implementing stream output (accepting the PSO, binding real buffers in `SOSetTargets`, wrapping draws in `vkCmdBeginTransformFeedbackEXT`/`EndTransformFeedbackEXT`, and wiring the `SO_STATISTICS` queries to `VK_QUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT`) is separate, larger follow-up work. ### Tested `ctest --test-dir runtime/build -C RelWithDebInfo -R "d3d12_vulkan_device|d3d12_mesh|xbox_present_readback_size"`: 3/3 pass. Full `runtime/build` compiles clean (these two files are included by ~100 translation units; all rebuilt without warnings from this change). A standalone probe confirmed `VK_EXT_transform_feedback` is available on this GPU with `transformFeedback`/`geometryStreams` both true, `maxTransformFeedbackStreams`/`maxTransformFeedbackBuffers` both 4 - matching D3D12's stream-output model (4 streams, 4 buffers) exactly, so there's no capability mismatch to work around when the real implementation lands. GPUs tested: NVIDIA GeForce RTX 4070 SUPER, driver 621.24, Windows 11 26300.9974, Vulkan SDK 1.4.363.1. AI-assisted: yes (Claude Code) ### Checklist - [x] Based on current `main` and merges cleanly. - [x] One topic; follow-up work (the actual stream-output implementation) goes in a new pull request. - [x] No game data, keys or decryption, including in logs or reports quoted here. - [ ] N/A: no new translator rule. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:20:40 +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#1268
No description provided.