Test that batched mesh draws preserve per-draw root constants #894
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!894
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-894"
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?
@Lkxex on GitHub · 2026-11-25 12:06 UTC · original
Lkxex:proof/mesh-indirect-root-records→main· +193 −1 · 2 files · 1 commits · openRelates to #828.
Adds a GPU regression test for packing multiple mesh dispatches into one ExecuteIndirect call. The baseline uses the runtime's existing single-record command signature and sets mesh and pixel root constants separately for each draw. The batched path packs distinct constants with two nonadjacent records from the existing GPU argument clamp. The test compares every pixel against the baseline and checks that both expected colors are rendered.
Passed on a Radeon RX 6600 with the D3D12 debug layer enabled. This adds the regression test only. Runtime draw batching, NVIDIA verification, and in-game performance measurements are still pending.
AI-assisted.
@CooShii on GitHub · 2026-11-25 12:50 UTC · original
Verified on an RTX 5080 with NVIDIA driver 621.01, Windows 11 25H2 (build 26200.9974), Rust 1.98.1 MSVC, and DXC from Windows SDK 10.0.26100.0.
The unmodified test passed at
910ea45f4e568ff4e1a53cb3a31cdf4acfeb3d70. The batched and individual draws matched pixel for pixel. A second run confirmed that D3D12 selected the RTX 5080. The D3D12 debug layer was unavailable on this machine.This was the synthetic fixture, with no game files or gameplay measurements.
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.