Skip to content

d3d12: execute fixed-count indirect mesh dispatches on Vulkan - #424

Closed
PyZikYG wants to merge 1 commit into
ProjectLeonida:mainfrom
PyZikYG:vulkan-mesh-dispatch
Closed

PyZikYG wants to merge 1 commit into
ProjectLeonida:mainfrom
PyZikYG:vulkan-mesh-dispatch

Conversation

@PyZikYG

@PyZikYG PyZikYG commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Claimed in the coordination issue as D3D-MESH-INDIRECT-EXEC.

Depends on: #377 (overlap at mesh signature creation), #337 (indirect argument range rules)

CreateCommandSignature recognizes DISPATCH_MESH, but the Vulkan backend cannot replay it. This change captures the graphics PSO, root arguments and render targets at recording time and replays the strided GPU arguments with vkCmdDrawMeshTasksIndirectEXT. It covers signatures with one DISPATCH_MESH argument and a fixed command count. GPU count buffers and signatures that change root arguments remain unsupported.

AI-assisted: yes.

@PyZikYG
PyZikYG marked this pull request as ready for review November 24, 2026 05:06
@Sangonapou

Copy link
Copy Markdown
Contributor

Tested 8bc1af8 on NVIDIA GeForce RTX 3080 Ti Laptop (Ampere, subgroup 32..32, mesh shaders), NVIDIA 621.24, Vulkan 1.4.357, Windows 11 Pro (build 26300), native Windows: pass

Runtime built at this head with scripts\build_runtime.ps1 (MSVC 19.51, VS Build Tools 2026, Windows SDK 10.0.26100, Vulkan SDK 1.4.363.0). No game files.

ctest -R ^d3d12_mesh$ -V: passed. On this card's native mesh stage: D3D-29: mesh tier 1; mesh and VS PSOs from pipeline state streams (9 refused as invalid, 2 as not implemented); direct and indirect mesh dispatches and a stream VS draw matched all 4096 pixels, and the pipeline statistics line (mesh only: C 8/8 PS 1024) is as expected. d3d12_mesh also passes on main 2d73c242 here.

Preserve graphics state and replay a strided DISPATCH_MESH argument buffer through VK_EXT_mesh_shader.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs rebase Conflicts with the base branch: rebase it on main

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants