From 64a759fa8144eb610c606b221d0b06bfb62c92b4 Mon Sep 17 00:00:00 2001 From: Isaak Eriksson Date: Wed, 4 Aug 2021 15:44:39 +0200 Subject: [PATCH] Better error message for unsuported shader features --- crates/bevy_render/src/shader/shader_reflect.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/bevy_render/src/shader/shader_reflect.rs b/crates/bevy_render/src/shader/shader_reflect.rs index a300041db66e36..a2df0e594a217f 100644 --- a/crates/bevy_render/src/shader/shader_reflect.rs +++ b/crates/bevy_render/src/shader/shader_reflect.rs @@ -151,7 +151,10 @@ fn reflect_binding( filtering: false, }, ), - _ => panic!("Unsupported bind type {:?}.", binding.descriptor_type), + _ => { + let ReflectDescriptorBinding { descriptor_type, name, set, binding, .. } = binding; + panic!("Unsupported shader bind type {:?} (name '{}', set {}, binding {})", descriptor_type, name, set, binding); + } }; let shader_stage = match shader_stage {