Skip to content

Make graphics adapter creation list all adapters one by one and inform why they weren't picked #8475

Open
@Wumpf

Description

@Wumpf

Closely related to:

Today, we (that's egui) use request_adapter to pick a graphics device. That's fine for many usecases, but it would be better if we went through all available adapters one by one using enumerate_adapters and list out the reasons why we didn't pick each of them.
The result should be available both on failure case (none is suitable) and on success case (in debug log and upon request in the viewer)

It's tempting to pull out adapter creation entirely out of egui and into re_renderer. However we need to take into account the surface as well:

  • this is a strict requirement when using WebGL
  • on OpenGL & Linux it helps to know the surface because either Vulkan or OpenGL may not be happy with all surfaces

and by doing so we're still bound to surface creation which in turn is tied to window creation

Metadata

Metadata

Assignees

Labels

eguiRequires egui/eframe work🔺 re_rendererrendering, graphics, GPU

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions