-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WGPU Support? #140
Comments
It sounds like you are correctly using hardware acceleration but maybe a feature that is not supported. How did you get See also bevyengine/bevy#8789 . |
How should I be getting |
It has to use the |
If I use |
This is not strictly related to WGPU on NixOS but touches on WGPU on Asahi so might be useful. Using the following repo: If you do:
You get the same error you got This leads me to believe that even if you link the right driver it is picking it up in OpenGL mode instead of Vulkan mode. But if you do:
It renders correctly on M2 Air with Fedora Asahi 39 and the OpenGL 4.6 driver. Perhaps try this other repo on NixOS with those flags before going directly to Bevy? Edit: Forgot to mention that I am using overlay mode in my NixOS machine and can try to reproduce any error you get to rule out a |
For anybody wondering, apparently it's a known bug that WGPU doesn't use OpenGL when running on wayland, so I had to force it to run on X with the following env variables: |
Hi, was wondering if WGPU support is possible? I develop with Bevy which uses WGPU, but it only uses the CPU renderer,
llvmpipe
. As far as I understand we don't have a vulkan driver, so that makes sense. If I addlibGL
to theLD_LIBRARY_PATH
though, I getI generally have hardware acceleration and the output of
glxinfo | grep 'OpenGL renderer string'
isOpenGL renderer string: Apple M2 Pro (G14S B1)
. Not sure what to make of this. My nixos config includesNot sure if I'm doing this config right.
The easiest way to test WGPU is to clone their repo and run their cube example:
The text was updated successfully, but these errors were encountered: