Skip to content

Shader error in meshlet example #17797

@rparrett

Description

@rparrett

Bevy version

main, bisected to #17648

Relevant system information

SystemInfo { os: "macOS 15.3 Sequoia", kernel: "24.3.0", cpu: "Apple M4 Max", core_count: "16", memory: "64.0 GiB" }
AdapterInfo { name: "Apple M4 Max", vendor: 0, device: 0, device_type: IntegratedGpu, driver: "", driver_info: "", backend: Metal }

But also reproduces on windows CI in the example report.

What you did

mkdir assets/external/models
wget https://raw.githubusercontent.com/JMS55/bevy_meshlet_asset/7a7c14138021f63904b584d5f7b73b695c7f4bbf/bunny.meshlet_mesh -O assets/external/models/bunny.meshlet_mesh
cargo run --example meshlet --features=meshlet

What went wrong

2025-02-11T12:44:49.488502Z ERROR bevy_render::render_resource::pipeline_cache: failed to process shader:
error: no definition in scope for identifier: `bevy_pbr::mesh_bindings::mesh`
    ┌─ crates/bevy_pbr/src/render/mesh_functions.wgsl:137:12
    │
137 │     return bevy_pbr::mesh_bindings::mesh[instance_index].tag;
    │            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unknown identifier
    │
    = no definition in scope for identifier: `bevy_pbr::mesh_bindings::mesh`

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorD-ShadersThis code uses GPU shader languagesP-CrashA sudden unexpected crash

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions