Skip to content

texture_binding_array example's WgpuFeature gating is not working #7374

Closed
@rparrett

Description

@rparrett

Bevy version

master

Relevant system information

m1 macos, compiling for wasm

What you did

(with wasm_server_runner)
cargo run --example texture_binding_array --release --target=wasm32-unknown-unknown
open in browser and open javascript console

What went wrong

I expected to see this friendly error message: https://github.com/bevyengine/bevy/blob/main/examples/shader/texture_binding_array.rs#L41

Instead, I see two issues:

  1. This example seems to require at least one additional feature: TEXTURE_BINDING_ARRAY

  2. bevy panics earlier than setup anyway, possibly when building MaterialPlugin::<BindlessMaterial>

    Even when augmenting the feature gate with TEXTURE_BINDING_ARRAY, bevy panics before showing the error from the example

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 examplesP-CrashA sudden unexpected crash

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions