#Trying to get Bloom to work in 2D

15 messages · Page 1 of 1 (latest)

harsh stirrup
#
ERROR wgpu::backend::direct: Handling wgpu errors as fatal by default    
thread 'main' panicked at 'wgpu error: Validation Error
    In a RenderPass
      note: encoder = `<CommandBuffer-(0, 1, Vulkan)>` 
    In a set_pipeline command
      note: render pipeline = `<RenderPipeline-(0, 1, Vulkan)>`
    Render pipeline targets are incompatible with render pass
    Incompatible color attachment: the renderpass expected [Some(Rgba16Float)] but was given [Some(Rgba8UnormSrgb)]

This is the error I am getting

#
//my camera setup

fn setup_2dcamera(mut commands: Commands) {
    commands.spawn((Camera2dBundle {
        camera: Camera {
            hdr: true,
            ..default()
        },
        transform: Transform::from_scale(Vec3::new(0.35, 0.35, 1.)),
        ..default()
    },
    BloomSettings {
        threshold: 0.5,
        ..default()
    }));
}
plain pier
#

what's your build target? is this wasm?

harsh stirrup
#

im building on windows

#

id assume wgpu

plain pier
#

(i was asking because hdr is unsupported on wasm). but hmm, your code looks right to me. and you're on bevy 0.9.x?

harsh stirrup
#

bevy 0.9.1

#

could I by mistake be using wasm?

#

I sorta do not think that could be the issue

#
 Incompatible color attachment: the renderpass expected [Some(Rgba16Float)] but was given [Some(Rgba8UnormSrgb)]
#

yeah this is really weird

harsh stirrup
#

so it is not a computer issue

#

I ran the bloom-2d example from here

#

no issues