webgpu-native-examples
webgpu-native-examples copied to clipboard
how to support opengl bakend?
I'm using WSL2 Ubuntu on windows11 which can't support vulkan api so far! I tried to disable vulkan and enable opengl options,but it seems useless.
Hi Joyzen,
I did not try to get the examples working with an OpenGL backend, at the moment only Vulkan backend is supported.
To support OpenGL backend you could try the following steps.
- Try the Google Dawn examples on WSL2 Ubuntu on windows11, the examples should support the OpenGL backend.
- The Vulkan code in this project is based on the example code of the Google Dawn examples, so you could try adding a new OpenGL backend in the wgpu-native lib. based on the Google Dawn example code.
Hope it helps. Sam
@samdauwe thank you so much for your careful advice.I'm really appreciate your idea and working on this project. I am a web programmer but I'm very interested in google's Dawn which could bring WebGPU across the Web to the native.And I will continue to find how to make this available on WSL2 Ubuntu.