Commit Graph

3733 Commits

Author SHA1 Message Date
Igor Shaposhnik
eff50436f5 Update to Naga rev 1720725 2022-04-15 22:22:48 +03:00
Jim Blandy
759e7ff8c5
Merge pull request #2589 from jimblandy/update-naga
Update to Naga rev 7aaac25f.
2022-04-13 14:55:12 -07:00
Jim Blandy
a47b5c554f Update to Naga rev 7aaac25f. 2022-04-13 14:41:26 -07:00
Jim Blandy
4cba5ffbed
wgpu/examples/shadow: Don't run on llvmpipe. (#2595) 2022-04-13 21:37:39 +00:00
Jim Blandy
988990c24d
Fix doc links. (#2579) 2022-04-05 18:56:25 +00:00
Jim Blandy
75e82afd35
wgpu-hal: Work around cbindgen bug: ignore gles::egl module. (#2576) 2022-04-03 19:32:10 -04:00
Kevin Reid
fab11dcc76
impl Debug for StagingBelt (#2572) 2022-04-02 16:06:51 +00:00
Jim Blandy
84fadca870 wgpu-core: Register new pipelines with device's tracker.
Without this change, `LifetimeTracker::triage_suspected` never notices
that compute or render pipelines are free, and they stick around until
the hub is destroyed.

Fixes #2564.
2022-03-31 22:59:11 -07:00
Jim Blandy
85e5c36b68 Tell cargo test to ignore pseudocode in gfx_select macro docs. 2022-03-31 22:59:11 -07:00
Jim Blandy
44dafd3b4d Documentation for various things. 2022-03-31 22:57:38 -07:00
Jim Blandy
3bdef1cbe3 Free the raw device when wgpu::Device is dropped.
Go ahead and call `global.device_drop` from `direct::Context::device_drop`.

Let `Global::device_drop` simply drop the life guard's `RefCount`, and
put off everything else entailed in freeing a device until
`Device::maintain` says its queue is empty and there are no more
references to it. (The user can reach that function, even after
dropping their `Device`, by calling `wgpu::Instance::poll_all`.)

Fixes #2563.
2022-03-31 22:54:20 -07:00
Jim Blandy
b58b512afb Add logging to Global::X_drop methods.
This adds `log::debug` lines reporting calls to the `wgpu-core` entry
points for dropping resources.
2022-03-31 22:51:49 -07:00
Jim Blandy
d6f3472467 Add logging to LifetimeTracker::triage_suspected.
This adds `log::debug` lines reporting the decision to actually free
something, for all resource types.
2022-03-31 22:51:49 -07:00
Jim Blandy
1e42208657
Provide a proper new method for RefCount. (#2570) 2022-03-31 22:50:48 -07:00
Alphyr
58f318550d
Fix clippy lints (#2560) 2022-03-28 09:00:09 -04:00
Alphyr
d45e6b4119
Update ash to 0.37 (#2557) 2022-03-27 22:15:58 -07:00
Jim Blandy
4896dee101
Merge pull request #2558 from jimblandy/doc-resource-tracking
Document some aspects of resource tracking.
2022-03-27 14:11:30 -07:00
Jim Blandy
0d39818b91 Document some aspects of resource tracking. 2022-03-27 07:41:31 -07:00
Leo Kettmeir
b52d68d5ad
deno: custom op arity (#2542) 2022-03-24 13:20:10 -04:00
HeavyRain266
d5c17fc302
Add Windows 11 to section about DX12 (#2552) 2022-03-23 23:23:58 -07:00
David A Roberts
46eea16335
Generate 1x1 mip level (#2551)
Just a minor off-by-one error that meant the final 1x1 mip level wasn't being generated. I don't think it makes any substantial difference to the rendered result.
2022-03-23 21:19:41 -04:00
Jim Blandy
1be43d8073
Document the gfx_select! macro. (#2555) 2022-03-23 19:35:42 -04:00
Jim Blandy
e821e185a1
Simplify implementation of RefCount and MultiRefCount. (#2548)
`RefCount::rich_drop_inner` is no longer used by anything other than `RefCount::drop`. It's simpler to just handle it directly in `drop`.

`MultiRefCount` has no need to heap-allocate the count, since it's
never cloned.
2022-03-21 16:40:11 -07:00
Alphyr
b0da1a2c1d
Switch from cgmath to glam in examples (#2544) 2022-03-21 10:32:59 -04:00
Fichtelcoder
36877c3749
Fix resizing behaviour of hello-triangle example (#2543) 2022-03-21 01:21:51 +00:00
Dzmitry Malyshau
326af60df8
Expect shadow example to pass on Vulkan (#2541) 2022-03-19 05:58:14 +00:00
Leo Kettmeir
cd6eb2db36
Merge pull request #2539 from crowlKats/update_deno
Update deno_webgpu
2022-03-18 22:31:10 -07:00
Igor Shaposhnik
c5d5dbc7eb [naga] Update naga with new struct members separator 2022-03-16 20:42:21 -07:00
Jinlei Li
ba07db90c8 metal: improve push | pop_debug_marker 2022-03-14 22:21:46 -07:00
Connor Fitzgerald
73f42352f3
Dx11 Backend (#2443) 2022-03-12 17:14:18 +00:00
skierpage
c314c55788
Correct program output ("Steps", not "Times") (#2535)
Since 985c1feb4 , hello-compute has output "Steps: ...", not "Times: ..."
2022-03-11 19:32:54 -05:00
Layl
3c85fe6782
Fix incorrect filtering used in mipmap generation (#2525) 2022-03-10 20:14:17 +00:00
Liam Murphy
0ac9ce0026
Fix wasm examples failing to compile (#2524) 2022-03-06 04:47:24 +00:00
Jinlei Li
d3c210160f metal: refactor texture_format_capabilities function 2022-03-02 22:23:48 -08:00
Jinlei Li
810dc5aa27 gl | metal: updates the upper bounds of the extends of SurfaceCapabilities 2022-03-01 21:05:48 -08:00
Jinlei Li
12f68ff15b metal: refactor PrivateCapabilities creation 2022-03-01 21:05:48 -08:00
Jinlei Li
c4e9797921 metal: roll metal-rs, fix read_write_texture_tier 2022-03-01 21:05:48 -08:00
João Capucho
e672974d9d
gles: Fix texture description for bgra formats (#2520) 2022-03-01 14:43:57 -05:00
Connor Fitzgerald
e4553d7e16 Update test status readme 2022-02-28 21:38:52 -08:00
Connor Fitzgerald
b1b02fb239 Round up clear texture tests to block size 2022-02-28 21:38:52 -08:00
Connor Fitzgerald
36defcfdc2 Expand skybox outlier count due to llvmpipe 2022-02-28 21:38:52 -08:00
Connor Fitzgerald
926bf848cf hal/gles: Fix compressed texture stride calculations 2022-02-28 21:38:52 -08:00
Connor Fitzgerald
3f30a8011f Prevent uncaught validation error on water example 2022-02-28 21:38:52 -08:00
Connor Fitzgerald
4e44288677 Install vulkan sdk on CI 2022-02-28 21:38:52 -08:00
Connor Fitzgerald
6979c7fe4c Make texture format info into an in-code table 2022-02-28 21:38:52 -08:00
Connor Fitzgerald
129c32ffc3 Prevent 3D compressed textures 2022-02-28 21:38:52 -08:00
Connor Fitzgerald
4d7f6eb07a Implement validation canary 2022-02-28 21:38:52 -08:00
Connor Fitzgerald
3841353f13 Re-enable GL tests in CI 2022-02-28 21:38:52 -08:00
Connor Fitzgerald
52badfb63c Mark expectant test failures on ANGLE 2022-02-28 21:38:52 -08:00
Connor Fitzgerald
7241dae871 Fill out GLES texture capability table 2022-02-28 21:38:52 -08:00