Commit c8f6a83
wgpu-c-backend integration test rig (v30)
Over wgpu v30.0.0, wires wgpu's own examples/tests to run through
wgpu-native's C backend so its adapter reporting can be compared to
wgpu-core:
- wgpu Instance::new: when built with `--cfg wgpu_custom_backend`, defer to
wgpu-native's `__wgpu_custom_backend_new_instance` symbol, unless
WGPU_NO_CUSTOM_BACKEND=1 selects normal wgpu. wgpu calls out to the backend
explicitly; the backend does not register itself.
- wgpu-info: restore `custom_backend_matches_wgpu_core`, which asserts the C
backend reports identical adapter info/features/limits/downlevel/texture
formats as wgpu-core (catches unimplemented features / unexposed limits).
`generate(skip_custom)` toggles via the env var.
- workspace glue: add wgpu-c-backend as a member, redirect the gfx-rs git dep
to local paths, and inject the dep + `extern crate` into crates that use
wgpu (so the backend symbol is linked). Applied by run-wgpu-tests.py.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 8bf3e5f commit c8f6a83
26 files changed
Lines changed: 194 additions & 6 deletions
File tree
- benches
- src
- examples
- bug-repro
- 01_texture_atomic_bug
- src
- 02_present_bugs
- src
- features
- src
- standalone
- 01_hello_compute
- src
- 02_hello_window
- src
- 03_hdr_surface
- src
- custom_backend
- src
- tests
- src
- wgpu-info
- src
- wgpu/src/api
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
1 | 2 | | |
2 | 3 | | |
3 | 4 | | |
| |||
0 commit comments