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
d2a4bae1f4
commit
ab3eb92941
1 file changed
+1
@@ -447,6 +447,7 @@ mod tests {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// A pixel shader writing a constant colour.
|
/// A pixel shader writing a constant colour.
|
||||||
|
#[cfg(windows)]
|
||||||
fn constant_color() -> Vec<u8> {
|
fn constant_color() -> Vec<u8> {
|
||||||
let mut s = Shader::new(true);
|
let mut s = Shader::new(true);
|
||||||
s.outputs.push(SigElement {
|
s.outputs.push(SigElement {
|
||||||
|
|||||||
Reference in new issue
Block a user