shader/gpu: link mesh+pixel shaders to prune outputs under DXIL 32 KB limit #239
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/readmet3xt-lab--foxhound!239
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-239"
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?
@Texbirds on GitHub · 2026-12-01 00:15 UTC · original
Texbirds:pr/mesh-link-32k→main· +871 −27 · 5 files · 47 commits · closed without mergingPort of Marvisak/VIctory#2398 adapted for FoxHound.
Summary
MESH_OUTPUT_LIMIT) even after tighteningmax_vertices/max_primitivesto the thread-group count,HostPipelinenow re-translates the mesh shader paired with its pixel shader (or depth-only when no pixel shader is bound) viaemit::translate_linked, cached by(mesh_hash, pixel_hash).kind == 0) vertex/primitive outputs and unread leading/trailing channels that the pixel shader never reads while keeping both stages' signatures linked for D3D12.Testing
cargo run --locked -p xtask -- policy(289 files ok)cargo clippy --locked -p victory-shader -p victory-gpu --tests -- -D warnings(0 warnings)victory-shadermesh_link_tests+mesh_output_bytes_matches_dxil_budget: 3/3 passed (hardware RTX 3080 Ti + D3D12 WARP mesh pipeline creation and exact pixel readback)victory-gpupipeline::: 25/25 passed on RTX 3080 Ti@readmet3xt-lab on GitHub · 2026-12-01 01:34 UTC · original
Thanks. This is on hold, not rejected. What it needs before it can go in:
emit/lower.rsandpipeline.rshave also changed);Every translator change makes all users translate their shaders again once, so we collect translator PRs into one release; the next one is being tested now, and this would be for the one after. In code and comments, please name title shaders by their 16-digit hash, not by name.
Main's history was rewritten on 2026-12-01 (text-only changes; every commit hash changed), so a follow-up has to start from the current main, or this branch be rebased onto it.
@readmet3xt-lab on GitHub · 2026-12-01 01:35 UTC · original
One more note: GitHub closed this pull request by itself when main's history was rewritten, and it cannot be reopened. That is not a rejection. The points above still apply; please open a new pull request from the current main when you have them.
Pull request closed