diff --git a/crates/bevy_render/src/shader/shader_reflect.rs b/crates/bevy_render/src/shader/shader_reflect.rs index 9952970e8f4c02..b2ee1e8494e7a5 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: true, }, ), - _ => 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 {