Shaders: build the constant-colour test shader only on Windows, where its tests run #258
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/258"
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?
Imported from Marvisak/VIctory. Originally posted by SkippySteve on 2026-11-24T01:53:12Z.
constant_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: okImported from Marvisak/VIctory. Originally posted by SkippySteve on 2026-11-24T01:55:41Z.
superseded by #262 (combined: keep helper + hermetic Linux container test)
Pull request closed