Skip to content

SMAA broken in wasm with webgpu feature enabled #14578

@Logan-010

Description

@Logan-010

Bevy version

0.14.0

Relevant system information

AdapterInfo { name: "", vendor: 0, device: 0, device_type: Other, driver: "", driver_info: "", backend: BrowserWebGpu }

What you did

Spawning a camera with SmaaSettings in wasm with webgpu causes errors and does not work.

Minimal example

use bevy::{core_pipeline::smaa::SmaaSettings, prelude::*};

fn main() -> AppExit {
    App::new()
        .add_plugins(DefaultPlugins)
        .add_systems(Startup, setup)
        .run()
}

fn setup(mut commands: Commands) {
    commands.spawn((Camera3dBundle::default(), SmaaSettings::default()));
}

What went wrong

image

Shader compilation errors appear.

Additional information

I am using Brave (chromium based) and webgpu works just fine.
^ bevy webgpu examples load

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorO-WebGPUSpecific to the WebGPU render APIS-Needs-InvestigationThis issue requires detective work to figure out what's going wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions