Closed
Description
I think there should be a better error message when the render plugin is used without wgpu. The current error message is very unhelpful (see below), and could be improved.
thread 'thread 'Compute Task Pool (2)Compute Task Pool (1)' panicked at '' panicked at 'Resource does not exist alloc::boxed::Box<dyn bevy_render::renderer::render_resource_context::RenderResourceContext>Resource does not exist alloc::boxed::Box<dyn bevy_render::renderer::render_resource_context::RenderResourceContext>', ', C:\Users\____\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ecs-0.2.1\src\resource\resources.rsC:\Users\____\.cargo\registry\src\github.com-1ecc6299db9ec823\bevy_ecs-0.2.1\src\resource\resources.rs::175175::3232
I would suggest panicking with an error message like "Render backend not found. Currently, the render plugin needs the wgpu plugin to be supported; maybe that should be enabled?"