Skip to content

[wgpu-core] request_adapter fails when requesting with a specific backend #5289

@rajveermalviya

Description

@rajveermalviya

Description
Instance::request_adapter fails when instance is created with Backends::all(), and then a surface is initialized, and then request_adapter is called with a specific backend in an environment with 2 or more backends.

Repro steps

  1. Ensure you have two or more different backends.
  2. Update instance_request_adapter to pass a single backend like wgt::Backends::DX12/VULKAN/METAL instead of wgt::Backends::all().
  3. Run the hello_triangle example
  4. Notice request_adapter fails, if it doesn't fail then cycle through other available backends on Step 2.

Expected vs observed behavior
request_adapter should succeed

Platform
macOS 14, Metal + MoltenVK

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions