mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Make "Unexpected varying type" a bit less annoying
This commit is contained in:
committed by
Dzmitry Malyshau
parent
87c8680ffd
commit
be6898f166
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user