#wgpu panic with 0.16.0's Atmopshere on macos

1 messages · Page 1 of 1 (latest)

chrome raft
#

Hello fine folks !!
Before opening an issue, I wanted to be sure I wasn't missing something while experimenting ferris_sob

Here's my main.rs, that I minimized down to the minimum reproductible error I could

use bevy::pbr::Atmosphere;
use bevy::prelude::*;

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

fn setup(mut commands: Commands) {
    commands.spawn((Camera3d::default(), Atmosphere::EARTH));

    // commands.spawn(DirectionalLight::default()); // With or without, same issue
}

And when I try to run it

>cargo run
   Compiling dusty v0.1.0 (/Users/l/Projects/dusty)
    Finished `dev` profile [optimized + debuginfo] target(s) in 0.76s
     Running `target/debug/dusty`
2025-04-25T19:46:57.634981Z  INFO bevy_render::renderer: AdapterInfo { name: "Apple M1 Pro", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }
2025-04-25T19:46:57.776541Z  INFO bevy_render::batching::gpu_preprocessing: GPU preprocessing is fully supported on this device.
2025-04-25T19:46:57.811077Z  INFO bevy_winit::system: Creating new window App (0v1)
2025-04-25T19:46:57.965971Z ERROR wgpu::backend::wgpu_core: Handling wgpu errors as fatal by default    

thread '<unnamed>' panicked at /Users/l/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/wgpu-24.0.3/src/backend/wgpu_core.rs:3273:26:
wgpu error: Validation Error

Caused by:
  In RenderPass::end
    In a set_pipeline command
      Render pipeline targets are incompatible with render pass
        Incompatible color attachments at indices [0]: the RenderPass uses textures with formats [Some(Rgba8UnormSrgb)] but the RenderPipeline with 'render_sky_pipeline_4' label uses attachments with formats [Some(Rgba16Float)]


note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_render::renderer::render_system`!
daring stump
#

Did you turn on Camera::hdr?

#

Check the docs for atmosphere, but iirc it's required