Skip to content

Better error message when render is used without wgpu. #626

Closed
@entropylost

Description

@entropylost

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?"

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-UsabilityA targeted quality-of-life change that makes Bevy easier to useD-TrivialNice and easy! A great choice to get started with Bevy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions