Skip to content

DX12 adapter does not support surface when multiple backends are specified in the instance #5324

Closed
@ItsSunnyMonster

Description

@ItsSunnyMonster

Description
When I create my instance with default options or something that specifies more than one backend such as Backends::PRIMARY the surface (a default window created with winit) would not be compatible with any one of the DX12 adapters returned by enumerate_adapters. Instead, if I created the instance specifying DX12 backend in the options, DX12 adapters work fine.

Repro steps
A minimal example can be found at https://github.com/ItsSunnyMonster/wgpu_crash_minimal

Expected vs observed behavior
The returned adapters should have the same behaviour regardless of what backends were specified when creating the instance.

Platform
OS: Windows 10 22H2 build 19045.4046 (Reproducible on Windows 11 and presumably other versions of windows)
GPU: AMD Radeon Vega 8 Graphics (Reproducible on machines with a discrete GPU, tested on NVidia RTX 4060 and NVidia Quadro P2200)
wgpu version: 0.19.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions