Shaders: gate the constant_color test helper to Windows #685
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!685
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/685/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?
@catminou4 on GitHub · 2026-11-24 06:50 UTC · original
catminou4:devin/constant-color-cfg-windows→main· +1 −0 · 1 files · 1 commits · merged 2026-11-24 08:23 UTCSummary
constant_color()incrates/victory-shader/src/emit/mod.rsis only called by two tests that are themselves#[cfg(windows)](stub_pipeline_is_created,constant_color_validates). On macOS and Linux the helper compiles but is dead code, socargo check -p victory-shader --all-targetswarns:This gates the helper with
#[cfg(windows)], matching its callers — one line, no behavior change on Windows.Verification
On macOS 26 arm64, rustc 1.98.1, base
main(d2a4bae):warning: function constant_color is never usedin lib testcargo check -p victory-shader --all-targets --lockedclean)cargo test -p victory-shader --locked: 56 passed, 0 failed (unchanged)The Windows-only tests that use the helper are unaffected (still compiled there).