mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:10:52 +01:00
[PR #429] [CLOSED] d3d12: use GPU count buffers for indirect mesh dispatches #482
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#482
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/429
Author: @PyZikYG
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:vulkan-mesh-dispatch-count📝 Commits (2)
1fc1ff4d3d12: execute fixed-count indirect mesh dispatches on Vulkan4343395d3d12: use GPU count buffers for indirect mesh dispatches📊 Changes
8 files changed (+144 additions, -25 deletions)
View changed files
📝
docs/d3d12_vulkan.md(+11 -4)📝
runtime/shims/d3d12_com.cpp(+16 -7)📝
runtime/shims/d3d12_vulkan_device.cpp(+2 -2)📝
runtime/src/command_list.h(+17 -4)📝
runtime/src/vulkan_backend.h(+2 -0)📝
runtime/src/vulkan_replay.h(+38 -2)📝
runtime/test/d3d12_mesh_test.cpp(+57 -6)📝
runtime/test/replay_cpu_bench.cpp(+1 -0)📄 Description
Claimed as D3D-MESH-INDIRECT-COUNT.
Depends on: #424
A mesh-only ExecuteIndirect command with a GPU count buffer previously failed recording. This change reuses the compute indirect-count helper to prepare compact mesh dispatch records on the GPU. It reads the count at execution and writes zero-group records beyond the count, so even a UINT32_MAX counter is bounded by MaxCommandCount before drawing. The helper runs outside pipeline statistics queries. The count path requires buffer device addresses and compute scratch.
This PR includes the rebased #424 commit until #424 is merged.
AI-assisted: yes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.