Tainted \\ Coders

Run your app in headless mode for testing

Last updated:

This can be useful for running app simulations during integration tests without spawning a window which can be problematic in a testing environment.

struct HeadlessRenderPlugin;

impl Plugin for HeadlessRenderPlugin {
    fn build(&self, app: &mut App) {
            .add_plugin(RenderPlugin {
                wgpu_settings: WgpuSettings {
                    backends: None,