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:
1 parent
35e8407c9c
commit
1b39912ddb
1 file changed
+1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user