Allow WebGPU & WebGL in same wasm and detect WebGPU availability (#5044)

* Rename backends: web -> webgpu, direct -> wgpu_core

* rename context objects for web & core

* allow webgpu & webgl features side-by-side

* make sure webgl ci doesn't use webgpu

* update any_backend_feature_enabled

* add panicing generate_report method for compatibility

* RequestDeviceErrorKind::Web rename, fixup various cfg attributes

* automatic webgpu support detection

* changelog entry

* fix emscripten

* fix weird cfg, fix comment typo

* remove try_generate_report again

* Make get_mapped_range_as_array_buffer WebGPU only again
This commit is contained in:
Andreas Reich authored and GitHub committed 2024-01-14 09:45:52 +00:00
1 parent f89bd3b978
commit 7774f31021
15 files changed
+291 -212

No files matched your search

+1 -1
View File
@@ -367,7 +367,7 @@ jobs:
- name: execute tests
run: |
cd wgpu
wasm-pack test --headless --chrome --features webgl --workspace
wasm-pack test --headless --chrome --no-default-features --features wgsl,webgl --workspace
gpu-test:
# runtime is normally 5-15 minutes