victory: pin shader::sources (SGD5 records + raw DXBC scan) with unit tests #472
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!472
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-468"
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?
@AnastasisKon on GitHub · 2026-11-27 21:34 UTC · original
AnastasisKon:vibe/shader-sources-tests-4f9c68→main· +173 −0 · 1 files · 1 commits · closed without mergingWhat this changes
Refs #469.
apps/victory/src/shader.rs'ssources()is the entry point behindvictory shaderand the pre-build, and nothing held it in place. Six unit tests over synthetic bytes pin what the survey and pre-build counts rest on:@0x4) andbytes()returns those bytes;Source::Packed, its label carries offset and name (@0x2a PS_main_Wrapped),kindis what the object holds, andbytes()unpacks to the container's bytes;bytes()isNone;Container::parseaccepts.Test-only: a hand-built 0x20-byte DXBC header and a one-block stored-deflate record. No game data, no new dependencies.
How it was tested
cargo test --target x86_64-apple-darwin -p victory-hle -p victory-loader -p victory: all pass (victory 19, victory-hle 327 + native_probe 17, victory-loader 29).cargo test -p victory -p victory-hle -p xtaskon the arm64 host: all pass (14 / 144 + 2 / 6).cargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings: no warnings.cargo xtask policy: 398 files ok.The tests are known to bite: dropping the
Container::parsefilter insources()failsa_magic_whose_container_does_not_parse_is_skipped.cargo test -p victory-gpuon this Mac: 402 passed, 10 failed, every one of them atdlopen /usr/local/lib/libmetalirconverter.dylib(Apple's Metal Shader Converter is not installed here; #382's wrapper fails fast for the same reason). Unrelated to this change, which touches no GPU code.Checklist
sgd5.rs's documented oneVICTORY_*variable and documented: none added@AnastasisKon on GitHub · 2026-11-27 21:37 UTC · original
Duplicate of #471: two sessions of the same account picked up #469 and both opened a PR for it. #471 (branch vibe/shader-sources-tests-1705ac) is the one being kept — it covers the same cases plus the bare-magic ones — so I'm closing this one as superseded. The branch is left untouched; reopen if you'd rather keep this one instead.
@AnastasisKon on GitHub · 2026-11-27 21:38 UTC · original
Superseded by #471 (same issue #469, same author; one change per issue).
github-bot referenced this pull request2026-11-27 22:05:17 +00:00
Pull request closed