gfx-rs / gfx

[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
http://gfx-rs.github.io/
Apache License 2.0
5.35k stars 549 forks source link

Add WebGPU backend build to CI #3557

Closed tangmi closed 3 years ago

tangmi commented 3 years ago

Add an optional CI task to build the WebGPU backend on the wasm32-unknown-unknown target.

Note: This is just a test to see if we can at least see the status of the WebGPU build in the Ci pipeline. It may not be worth merging until the WebGPU backend is more mature, since it may just add noise for now.

kvark commented 3 years ago

Looks trivially fixable so far?

tangmi commented 3 years ago

I'm happy to clean up this build if we'd like to add a webgpu build to the CI requirements. I'm not sure how mature that backend is, but I suppose ensuring it keeps building can't hurt...

kvark commented 3 years ago

It's not mature at all. In fact, it's more of a burden right now... We need to make a decision - either support it on CI, or just carry the code as dead weight (for now!) without any builds/checks. I think the latter is easier, and it's ok until there starts to be any logic in it.

tangmi commented 3 years ago

I'm going to close this for now--when the WebGPU backend becomes more mature, this PR should be trivially reproducible.

For now, I'll remove the extra noise this PR causes.