Skip to content

Surface is not taken into account in wgpu adapter selection #16291

Open

Description

Bevy version

master branch

`SystemInfo { os: "Windows 11 Pro", kernel: "22631", cpu: "Intel(R) Core(TM) i5-10400F CPU @ 2.90GHz", core_count: "6", memory: "15.9 GiB" }`
`AdapterInfo { name: "NVIDIA GeForce GTX 1650", vendor: 4318, device: 8066, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "566.03", backend: Vulkan }`

What you did

added

dbg!(&primary_window)

in bevy_render wgpu context initialization code

What went wrong

it seems to always be None for me.
It should be some surface, for wgpu to make sure that the surface is compatible with the selected wgpu adapter (physical device)

Additional information

it could be that the primary window is not initialized yet somehow?
Maybe system ordering problem as the same system would give a valid surface if ran at Startup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorS-Needs-InvestigationThis issue requires detective work to figure out what's going wrong

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions