Skip to content

Component should be removed if any of its required components is removed #23393

@beicause

Description

@beicause

Bevy version and features

main

What you did

Insert Bloom, then in other system remove Hdr. For example change to this in bloom_3d example and press space:

            if keycode.just_pressed(KeyCode::Space) {
                commands.entity(entity).remove::<Hdr>();
            }

What went wrong

wgpu validation error:

2026-03-17T01:57:17.882899Z ERROR queue_submit{count=8}: bevy_render::error_handler: Caught rendering error: Validation Error

Caused by:
  In Queue::submit
    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 'bloom_upsampling_pipeline' label uses attachments with formats [Some(Rgba16Float)]

Additional information

transmission example has this behavior (#23142).

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-BugAn unexpected or incorrect behaviorS-Needs-GoalThis should have a C-Goal and should not continue until it has oneX-Needs-SMEThis type of work requires an SME to approve it.

    Type

    No type

    Projects

    Status

    SME Triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions