From be6898f166bb0ad89edbd38e453e3d394fc260ed Mon Sep 17 00:00:00 2001 From: Dzmitry Malyshau Date: Mon, 20 Sep 2021 12:03:33 -0400 Subject: [PATCH] Make "Unexpected varying type" a bit less annoying --- wgpu-core/src/validation.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wgpu-core/src/validation.rs b/wgpu-core/src/validation.rs index e1e024b117..0eedab4896 100644 --- a/wgpu-core/src/validation.rs +++ b/wgpu-core/src/validation.rs @@ -822,7 +822,11 @@ impl Interface { return; } ref other => { - log::error!("Unexpected varying type: {:?}", other); + //Note: technically this should be at least `log::error`, but + // the reality is - every shader coming from `glslc` outputs an array + // of clip distances and hits this path :( + // So we lower it to `log::warn` to be less annoying. + log::warn!("Unexpected varying type: {:?}", other); return; } };