Aaro Perämaa
51dbe23095
Update push constant docs to reflect the API ( #2637 )
2022-05-03 05:04:28 +00:00
Emilio Cobos Álvarez
a613a568b6
Update parking_lot. ( #2639 )
2022-05-03 04:28:17 +00:00
Zen
6fadbdecf2
Update lib.rs ( #2634 )
2022-05-02 01:17:12 +00:00
Ashley
ebca3298f0
Remove gles compressed texture log::error! ( #2630 )
2022-04-25 17:38:57 -04:00
Connor Fitzgerald
e54a36ee78
Move texture-array example over to wgsl ( #2618 )
2022-04-25 18:32:53 +00:00
Connor Fitzgerald
bc850d2a0e
Bind group deduplication ( #2623 )
2022-04-25 04:19:25 +00:00
Jim Blandy
c226a10329
Specify an exact wasm-bindgen-cli version in publish.yml. ( #2624 )
...
The versions of wasm-bindgen-cli run by `.github/workflows/publish.yml` must
exactly match the version of `wasm-bindgen` used by `wgpu`. At the moment,
`wgpu/Cargo.toml` specifies `0.2.76`, and our `Cargo.lock` says `0.2.78`, so
the latter is what `publish.yml` should mention.
2022-04-21 20:57:35 +00:00
Dragoș Tiselice
59d640a107
metal: Don't skip incomplete binding resources. ( #2622 )
2022-04-21 19:49:33 +00:00
Jinlei Li
8feac35033
Update texture_create_view logic to match spec ( #2621 )
2022-04-21 12:08:13 -04:00
Jinlei Li
5706263917
Rename dispatch -> dispatch_workgroups
2022-04-20 23:24:21 -07:00
Ashley
ff07716f79
Do a downlevel check for anisotrophy and enable it in the webgl backend ( #2616 )
...
* Do a downlevel check for anisotrophy and enable it in the webgl backend
* Run cargo fmt
* Change to sample_parameter_i32
2022-04-20 20:56:16 -04:00
Jinlei Li
0b61a19124
metal: fix some supported limits
2022-04-18 20:40:03 -07:00
Jim Blandy
6d7c092dad
Update Naga to 85056524
(2022-4-18).
2022-04-18 20:27:42 -07:00
Jim Blandy
06ee8a6862
Permit non-struct, non-array types as buffers.
...
Fixes #2583 .
2022-04-18 09:50:51 -07:00
Jim Blandy
3d10678a91
Update to Naga 0e2bb019
.
2022-04-18 09:09:47 -07:00
Jim Blandy
e84b21e430
Merge pull request #2606 from jimblandy/avoid-reserved-words
...
Avoid new WGSL reserved words in wgpu examples.
2022-04-18 08:40:29 -07:00
Jim Blandy
579f809573
Avoid new WGSL reserved words in wgpu examples.
2022-04-17 21:33:55 -07:00
Kevin Reid
cb7ad30d58
Prefix every wgpu-generated label with (wgpu internal)
.
...
This is intended to help developers new to wgpu or to graphics debugging
quickly recognize in a debugging tool which items are wgpu-generated, as
opposed to either part of their program or part of the platform graphics
system.
I also removed existing marker-like text such as leading underscores and
angle brackets.
2022-04-15 22:39:08 -07:00
xiaopengli89
abdf1cd741
Add raw_queue for d3d12 device
2022-04-15 21:50:32 -07:00
Jim Blandy
9743068b43
Merge pull request #2602 from Gordon-F/naga_update
...
Update to Naga rev 1720725
2022-04-15 12:47:26 -07:00
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