GPU: hash short PSO descriptions in one frame, borrow shader bytecode #22
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!22
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/22/head"
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?
@Jineggegg on GitHub · 2026-11-28 15:44 UTC · original
Jineggegg:hot-pso-prebuild→main· +47 −27 · 2 files · 1 commits · closed without mergingWhat this fixes
Hot PSO prebuild copies every shader stage's bytes before hashing the pipeline name, and hashes the name parts one by one. This change:
library::nameinstead of copying each stage's bytes throughcode_bytes(now removed).The name output is unchanged, so pipeline libraries written before still load. A new test pins the old name hash and checks the length framing at the 8 KiB buffer limit.
Testing
cargo check -p victory-gpu --lib: clean (only pre-existing warnings elsewhere).cargo test -p victory-gpu --lib pipeline::library: 7 passed, 0 failed, including the new framing test.Origin
Adapted from Jineggegg/VIctory
2b98109(round-1 item #5). Foxhound names its mesh pipeline "mesh triangles" and has a separate "graphics rectangles" name with its own geometry stage, so those call sites were adapted to the same borrow form.@readmet3xt-lab on GitHub · 2026-11-29 08:10 UTC · original
Thanks! Ported into foxhound with credit to you (commit
6c67166) and released in v0.8.1: https://github.com/readmet3xt-lab/foxhound/releases/tag/v0.8.1. The library names stay the same, as your test pins.Pull request closed