diff options
| author | NotRexed <therealnothingfn@gmail.com> | 2026-11-30 20:55:24 -0500 |
|---|---|---|
| committer | NotRexed <therealnothingfn@gmail.com> | 2026-11-30 20:55:24 -0500 |
| commit | d87ada39172204a942c41f12900de4455ef89348 (patch) | |
| tree | bd2b30ad239bc90914132bc56b70fcd4bf9ae4ca /runtime/test/cpp_unwind_test.cpp | |
| parent | f827fc3a5d1d1570da7899e1769226ef5f2d4c63 (diff) | |
Mesh executions of one record can be launched by an amplification stage that reads the record itself (LEONIDA_MESH_AMPLIFY, off)
The title's mesh draws are indirect executions of one record each, which its culling passes write:
8,600 a frame standing at the waterside, clamped by 955 batch passes (run d275). A pass is a compute
dispatch of ours between the draws and a wait for it. With the switch, and the stage's code in the file
LEONIDA_MESH_AMPLIFY_DXIL names (DXC's as_6_6 of indirect/amplify.hlsl; the translator's own DXIL writer
does not make it yet), mesh pipelines are made a second time with the stage in front, reading the record
through a root view appended to their root signature, and such executions are DispatchMesh(1, 1, 1) of
that form: X alone, Y and Z as 1, nothing past 65,535 groups, as the batched clamp bounds a mesh record.
Where a batch would have opened for the record, a wait for every earlier shader write is recorded alone.
Mesh shaders declare the stage's 4-byte payload with the switch set (D3D12 refuses the stage in front of
a mesh shader without it; one with it runs without the stage), so with it unset the translations stay.
A benchmark of 9,000 mesh draws on the card (RTX 4060 Ti, driver 616.64; not committed): records clamped
every 9 draws 23.9 ms against 10.8 read as they are, through the stage 10.7 to 11.5. The stage writes
nothing: one that only declared a writable view (for the list's budget) made a wait every 9 draws cost
4.4 ms against 1.1, so the list's budget is not charged for these records (the largest record in 55 runs
asked for 2,828 groups).
AI-assisted (Claude). Tested on RTX 4060 Ti 16 GB, driver 616.64: cargo check with and without
diagnostics, the batch and mesh unit tests, a new test that the payload validates in dxil.dll.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/cpp_unwind_test.cpp')
0 files changed, 0 insertions, 0 deletions