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
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
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
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
Igor Shaposhnik
eff50436f5
Update to Naga rev 1720725
2022-04-15 22:22:48 +03:00
Jim Blandy
a47b5c554f
Update to Naga rev 7aaac25f
.
2022-04-13 14:41:26 -07: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
Jim Blandy
0d39818b91
Document some aspects of resource tracking.
2022-03-27 07:41:31 -07: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
Igor Shaposhnik
c5d5dbc7eb
[naga] Update naga with new struct members separator
2022-03-16 20:42:21 -07:00
Connor Fitzgerald
73f42352f3
Dx11 Backend ( #2443 )
2022-03-12 17:14:18 +00:00
Connor Fitzgerald
129c32ffc3
Prevent 3D compressed textures
2022-02-28 21:38:52 -08:00
Connor Fitzgerald
b61939650c
Add DownlevelFlag to prevent copies between Depth32 Textures
2022-02-28 21:38:52 -08:00
Connor Fitzgerald
df50028e49
Fix up some downlevel capabilities
2022-02-24 23:52:41 -05:00
Connor Fitzgerald
80da80b497
Move limit comparison logic into wgpu-types for easy reuse
2022-02-24 23:52:41 -05:00
Connor Fitzgerald
b87e50feae
Rename get_downlevel_properties to get_downlevel_capabilities
2022-02-24 23:52:41 -05:00
Connor Fitzgerald
1e403e12a3
Always check texture features if we're running on a downlevel platform
2022-02-24 23:52:41 -05:00
Jinlei Li
1bd85a835a
Roll naga from 8e2e39e
to a45b9a6
(27 revisions)
2022-02-22 15:45:05 -05:00
Jinlei Li
7f3c6f7019
vulkan: correctly set INDEPENDENT_BLEND,make runable on Android 8.x
2022-02-22 15:45:05 -05:00
Jinlei Li
01628a1fad
vulkan: HDR ASTC formats support
2022-02-20 00:00:06 -05:00
Jinlei Li
fa35c0a0f4
Re-allow vk backend on Apple platforms via vulkan-portability feature
2022-02-18 20:26:53 -05:00
Dzmitry Malyshau
0545e36aa8
Validated render usages for 3D textures
2022-02-15 18:49:04 -05:00
Nicolas Silva
210014ed89
Fix mistake in Access doc comment.
2022-02-15 09:59:42 -05:00
Jinlei Li
1c17d15507
Metal backend ASTC HDR formats support ( #2477 )
2022-02-15 09:43:16 -05:00
Alexander Guryanov
d586d6dce9
added id32 feature
2022-02-14 14:42:23 -05:00
Dzmitry Malyshau
6931e57180
Don't recycle indices that reach EOL ( #2462 )
2022-02-07 19:23:40 -05:00
Xiaopeng Li
8c351970ce
Support to create surface from visual on Windows ( #2434 )
...
* Support to create surface from visual on Windows, add mpo(Multiple Plane Overlay) feature to AdapterInfo
* Expose create_surface_from_visual method
* Fix code style
* Make code more concise
* Revert mpo from AdapterInfo
2022-02-07 14:57:57 -05:00
Dzmitry Malyshau
6b4f1b843f
msl: support unsized array not in structures ( #2459 )
2022-02-06 05:33:20 +00:00
Samuel Hurel
3e0305d27d
Allow non struct buffers in wgsl ( #2451 )
...
* Bump naga
* Update examples
2022-02-05 09:53:04 -05:00
Connor Fitzgerald
63dfd98d68
Improve some error messages ( #2446 )
...
* Fix render target mismatch error message
* Reword bind group layout mismatch error
2022-02-01 18:51:48 -05:00
Jim Blandy
36ce638381
IdentityManager: from_index
method is unneeded.
...
The `min_index` parameter has no useful effect. Because the range 0..n is pushed
on the free list, index values less than `min_index` do get allocated.
Document `IdentityManager` and `TypedId`.
2022-01-28 01:03:15 -05:00
Alexander Guryanov
b19000367c
feature: emscripten
2022-01-27 14:14:29 -05:00
João Capucho
dcd07f0391
Update to upstream naga
2022-01-22 18:36:26 -05:00
Dzmitry Malyshau
f3891fed33
hal/dx12: improve RowPitch computation ( #2409 )
2022-01-20 19:59:25 -05:00
Aaron O'Mullan
cdd480a89c
lint: deno_webgpu & wgpu-core ( #2403 )
2022-01-18 09:34:10 -05:00
Aaron O'Mullan
5877117529
chore: bump naga to a1840be
( #2401 )
...
* chore: bump naga to a1840be
So tip no longer indirectly pins indexmap, etc...
* feedback
* TODO push_constant_binding
2022-01-17 19:17:31 -05:00
Ibiyemi Abiodun
0183e7d1e8
add AddressMode::ClampToZero ( #2364 )
...
* add AddressMode::ClampToZero
* add feature checks
* oops
* rustfmt
* fix dx12
* change to use SamplerBorderColor
* fix metal
* update to use new config
* update dx12 + docs
* address nits
* cargo fmt
* fix dx12
2022-01-15 05:16:35 +00:00
Dzmitry Malyshau
16edd91976
Support writeTexture for surface textures
2022-01-12 13:31:03 -05:00