Просмотр исходного кода

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>
Louis Faust 3 дней назад
Родитель
Сommit
ab3eb92941
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      crates/victory-shader/src/emit/mod.rs

+ 1 - 0
crates/victory-shader/src/emit/mod.rs

@@ -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 {