Shaders: build the constant-colour test shader only on Windows, where its tests run #258
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!258
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/258/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?
@SkippySteve on GitHub · 2026-11-24 01:53 UTC · original
SkippySteve/shader-constant-color-cfg→main· +6 −3 · 1 files · 1 commits · closed without mergingconstant_color()incrates/victory-shader/src/emit/mod.rsis only called by two#[cfg(windows)]tests (stub_pipeline_is_created,constant_color_validates), but the helper itself had no gate. On Linux the test build warnsfunction constant_color is never used, socargo clippy -p victory-shader --all-targets -- -D warningsfails.This gates the helper on
windowsand moves its two imports (bitcode::Attr,shader::Shader) into the function body, because nothing else in the test module uses them and they would otherwise become unused imports.No behaviour change. The Windows tests compile and run exactly as before.
Checked on Linux:
cargo clippy -p victory-shader --all-targets -- -D warnings: clean (it failed before this change)cargo clippy -p victory-shader --all-targets --target x86_64-pc-windows-msvc -- -D warnings: cleancargo test -p victory-shader: 56 passedcargo fmt --check,cargo xtask policy: ok@SkippySteve on GitHub · 2026-11-24 01:55 UTC · original
superseded by #262 (combined: keep helper + hermetic Linux container test)
Pull request closed