gecko-dev/gfx/wgpu_bindings
Jim Blandy 1e9e5f2198 Bug 1808602: Implement 'dom.webgpu.wgpu-backend' pref. r=jrmuizel
Add a new string-valued, Rust-visible pref, `dom.webgpu.wgpu-backend`, to `StaticPrefList.yaml` in `modules/libpref/init`. If this string is non-empty, use it to enable the indicated WebGPU backends when we create a `wgpu_core::Global` in `gfx/wgpu_bindings/src/server.rs`. See `StaticPrefList.yaml` for details.

As this is the first time we have exposed a `mirror: always`, `type: DataMutexString` pref to Rust, make the appropriate changes to `generate_static_pref_list.py` to generate the necessary C++ and Rust code to lock the value, make a string copy, and pass ownership back to Rust as an `nsstring::nsACString` (from the `xpcom/rust/nsstring` crate).

Differential Revision: https://phabricator.services.mozilla.com/D173335
2023-03-23 21:27:05 +00:00
..
src Bug 1808602: Implement 'dom.webgpu.wgpu-backend' pref. r=jrmuizel 2023-03-23 21:27:05 +00:00
Cargo.toml Bug 1808602: Implement 'dom.webgpu.wgpu-backend' pref. r=jrmuizel 2023-03-23 21:27:05 +00:00
cbindgen.toml Bug 1811284 - Update wgpu to 24a904256e225b20b11fb30f914ef53212a2909e. r=webgpu-reviewers,ErichDonGubler,jimb 2023-01-24 09:24:03 +00:00
moz.build
moz.yaml Bug 1818748 - Update wgpu to revision 73b4257b17cc62ecc8df6d6aa3730bd9c6cba4b9. r=webgpu-reviewers,jimb 2023-03-06 17:00:15 +00:00
wgpu.h Bug 1777535 - Work around build issues. r=gfx-reviewers,lsalzman 2022-08-10 15:55:12 +00:00