Skip to content

example shader_material_glsl panics due to missing feature #8505

@mockersf

Description

@mockersf

Bevy version

main since #8491

What you did

cargo run --example shader_material_glsl

What went wrong

It panics with

thread 'Compute Task Pool (0)' panicked at 'not implemented: Enable feature "shader_format_glsl" to use GLSL shaders', crates/bevy_render/src/render_resource/shader.rs:215:21
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Encountered a panic in system `bevy_render::render_resource::pipeline_cache::PipelineCache::process_pipeline_queue_system`!
thread 'Compute Task Pool (1)' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', crates/bevy_render/src/pipelined_rendering.rs:135:45

Additional information

This is expected as glsl support is now behind a feature. Should the example be removed? Or the feature enabled by default? Or the example updated to have a better fallback when the feature is not enabled?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorC-ExamplesAn addition or correction to our examples

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions