Open ilyas-taouaou opened 3 weeks ago
Can you demonstrate this hypothetical scenario where not knowing the primary monitor at that point creates a problem? Alternatively, can you describe a concrete example of when it would create a problem?
@BenjaminBrienen Unfortunately I can't but that's a requirement in the Vulkan spec to check if a specific device and queue family is compatible with window surface. When wgpu doesn't get a compatible surface, it can't guarantee that it would be compatible with the selected physical device and queue family. Btw the primary monitor doesn't matter here I think, as long as you pass a dummy surface, to my knowledge it should be fine.
Bevy version
master branch
What you did
added
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