Shaders: gate the constant_color test helper to Windows

Its only callers (stub_pipeline_is_created, constant_color_validates)
are #[cfg(windows)], so on macOS/Linux the helper is dead code and
cargo check --all-targets warns 'function constant_color is never used'.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Louis FaustandDevin AI committed 2026-11-23 22:49:58 -08:00
1 parent 35e8407c9c
commit 1b39912ddb
1 file changed
+1
+1
View File
@@ -447,6 +447,7 @@ mod tests {
}
/// A pixel shader writing a constant colour.
#[cfg(windows)]
fn constant_color() -> Vec<u8> {
let mut s = Shader::new(true);
s.outputs.push(SigElement {