webatintel / aquarium

BSD 3-Clause "New" or "Revised" License
24 stars 7 forks source link

Allow choosing the underlying WebGPU library via command-line flags #102

Open hujiajie opened 4 years ago

hujiajie commented 4 years ago

This is the WebGPU counterpart of #101, so the following modes should be supported by Aquarium:

Dynamically loading system WebGPU is not a quite useful mode at the moment, but it leaves the door open in case some day Dawn or wgpu-native can be installed system-wide.

One challenge is that dynamic loading implies using the C binding, while Aquarium is built on top of the C++ APIs. It should also be noted that the C++ wrapper is not shipped in Emscripten.