Jim Blandy
215884184b
Reformat comments in wgpu-core. ( #3102 )
2022-10-13 18:34:44 +00:00
Mikko Lehtonen
60fd2a32e9
Implement missing PrettyError impls ( #3066 )
2022-10-05 18:43:52 -04:00
Jim Blandy
2cd08a1c9c
Placate Clippy 0.1.63. ( #2977 )
2022-08-24 17:25:59 -04:00
Jim Blandy
d655017439
Implement "strict_asserts" feature in wgpu-core. ( #2872 )
...
Since `wgpu-core`'s public functions are supposed to validate their
parameters, the internal `track` module skips many of Rust's usual
run-time checks in release builds. However, some `wgpu-core` users are
happy to pay the performance cost in exchange for more safety. The
`"strict_asserts"` feature causes `wgpu_core` to perform the same
checks in release builds as it does in debug builds.
2022-08-08 00:45:39 -04:00
Connor Fitzgerald
533fc13afe
Properly Barrier Compute Indirect Buffers ( #2810 )
2022-06-26 21:03:56 +00:00
Jim Blandy
f94f25f355
Fix documentation links.
2022-06-09 17:42:03 -07:00
Connor Fitzgerald
9114283707
Tracking Optimization and Rewrite ( #2662 )
...
* Texture state full is dead code
* temp
* temp2 - next is lifetime only
* temp3 - all trackers in place
* temp4 - continue muddling along
* temp5 - doodle doodle
* temp6 - continuous progress is continuous
* temp7 - pro-gress
* temp8 - Add refcounts to trackers
* temp9 - Soundness, generics, refcounts, and epochs
* temp10 - Compiling?!1?!1?!1
* temp11 - Add bind group state optimization
* temp12 - Safety and adding size setting
* temp13 - unsafe
* temp14 - Abstract all the state transitions
* temp15 - It verks! kinda...
* temp16 - it more verks!
* temp17 - debugging and unit tests
* temp18 - fixing unfixed things
* temp19 - hmmm
* temp20 - curious about line deltas
* temp21 - working texture trackers
* temp22 - write merge/update/barrier for buffers
* temp23 - cleanup and buffers
* temp24 - clippy cleanup
* temp25 - Add inline markers on buffer functions
* temp26 - Fix buffer trackers
* temp27 - fixed texture insert to handle both sides
* temp28 - document tracker and usages
* temp29 - document track/mod.rs
* temp30 - convert STORAGE_WRITE to STORAGE_READ_WRITE
* temp31 - Add some debug asserts to make sure we can't insert invalid states
* temp32 - clippy is opinionated sometimes
* temp33 - renaming and documentation
* temp34 - logging
2022-05-24 11:36:13 -04:00
Jim Blandy
44dafd3b4d
Documentation for various things.
2022-03-31 22:57:38 -07:00
Jim Blandy
0d39818b91
Document some aspects of resource tracking.
2022-03-27 07:41:31 -07:00
Dzmitry Malyshau
3ec17cf9ed
Fix smooth buffer barrier ( #2104 )
2021-10-21 22:11:41 -04:00
Dzmitry Malyshau
089294fc51
Skip mismatched epochs in the remove_abandoned check
2021-09-25 15:40:21 -04:00
Dzmitry Malyshau
4a1ae0d7ec
Issue surface texture transitions
2021-08-11 20:58:42 -04:00
Dzmitry Malyshau
dffe1f1793
Return a texture by the surface
2021-08-11 20:58:42 -04:00
Dzmitry Malyshau
552a5f138e
Rename texture usage names
2021-07-28 00:17:54 -04:00
Dzmitry Malyshau
8cd17aafe3
Switch read-only storage textures to be exclusive and behind a feature
2021-07-14 01:04:37 -04:00
Dzmitry Malyshau
00859b9e0c
Stop using render pass boundary usages for resource transitions
2021-07-13 01:02:42 -04:00
Benoît du Garreau
e7269e72f3
Upgrade arrayvec to 0.7
2021-07-06 00:45:24 +02:00
Dzmitry Malyshau
ba006cfaa7
Rename ColorWrite, TextureUsage, and BufferUsage
2021-06-30 14:57:38 -04:00
Dzmitry Malyshau
568ac3fa24
Switch all bitflag names to plural
2021-06-30 14:43:36 -04:00
Dzmitry Malyshau
cfed43face
Update submission indices on all stateless resources
2021-06-24 01:40:18 -04:00
Dzmitry Malyshau
c2f879b4f7
Don't merge stateless trackers from bind groups
2021-06-23 15:28:40 -04:00
Gordon-F
2873ac32d9
Remove MPL 2.0 header in files
2021-06-19 21:06:08 +03:00
Dzmitry Malyshau
80ab18404e
Change the order to suspect temporary resources earlier
2021-06-18 02:49:46 -04:00
Dzmitry Malyshau
7410b700d6
fix swapchain recycling, copies, device destruction, RODS
2021-06-16 23:18:50 -04:00
Dzmitry Malyshau
ff2a3e84fc
update synchronization, fix last errors in wgc
2021-06-08 02:03:44 -04:00
Dzmitry Malyshau
0a82c232ba
hal: port the rest of wgpu-core
2021-06-08 00:46:08 -04:00
Dzmitry Malyshau
6d51fab864
hal:: Fill the command buffer calls
2021-06-08 00:46:08 -04:00
Dzmitry Malyshau
0ea4cac04b
Rework shader and pipeline creation
2021-06-08 00:46:08 -04:00
Dzmitry Malyshau
569cd0cdd6
WIP new wgpu-hal
2021-06-08 00:46:08 -04:00
Dzmitry Malyshau
7b7e72b1c2
Split the tracker into stateful/stateless to reduce the overhead
2021-05-31 14:18:44 -04:00
Dzmitry Malyshau
191f33871b
Don't panic on change_extend errors
2021-04-08 12:03:46 -04:00
Connor Fitzgerald
cf6f9c3ca8
Move from tracing to log + profiling
2021-03-17 01:22:30 -04:00
Dzmitry Malyshau
231bba03a1
Lint all the things
2021-03-12 12:39:04 -05:00
Andreas Reich
3486fde638
Fix crash on zero init of buffer with no more ref count
...
Previously, if a buffer would no longer have any reference, the zero init step crashed when trying to unwrap its ref_count.
2021-02-06 11:11:10 +01:00
Connor Fitzgerald
a22037ced0
Add pipeline statistics and timeline queries
2021-01-16 00:48:54 -05:00
Dzmitry Malyshau
922f2c0977
Check swapchain frame to still be in use
2021-01-04 17:03:16 -05:00
Dzmitry Malyshau
a7e573d612
Fix range tracker merging
2021-01-04 13:41:25 -05:00
Dzmitry Malyshau
46b87e220c
Stop using Borrow<RefCount>
2020-11-21 10:38:20 -05:00
Dzmitry Malyshau
c87a94f976
Early texture destruction
2020-10-08 23:21:11 -04:00
Dzmitry Malyshau
0a7d81351c
Handle cases where buffer contents are destroyed
2020-10-08 12:57:17 -04:00
Adam Nemecek
db1870e7fc
use self
2020-09-25 19:11:46 -07:00
Dzmitry Malyshau
0345c56758
Properly implement compute pass usage scopes
2020-09-23 19:01:47 -04:00
Dzmitry Malyshau
d1da6d8106
Switch gfx-hal to 0.6
2020-08-17 10:34:50 -04:00
Dzmitry Malyshau
dbd7e2c579
Separate valid internal IDs from external ones
2020-08-04 11:16:59 -04:00
Connor Fitzgerald
cb485f3798
Convert all logging to tracing and add fmt logger
2020-07-25 19:33:21 -04:00
Gabriel Majeri
cbca43258f
Convert MAX_MIP_LEVELS to u32
2020-07-19 20:42:33 +03:00
Dzmitry Malyshau
e3280aa643
Deduplicate BindGroupLayout by value
2020-06-27 11:13:18 -04:00
Dzmitry Malyshau
365f4e8786
Remove peek-poke.
...
There was a lot of highly unsafe use of serialization based on peek-poke that we
weren't entirely happy with. It's replaced by just serializing the passes now.
Also, switch BufferSize to Option<NonZero>.
2020-06-20 00:39:11 -04:00
Dzmitry Malyshau
8ebfdb0c34
Rewrite the render attachment tracking using the new prepend() operation.
2020-06-12 19:54:50 -04:00
Dzmitry Malyshau
7aa5753701
Re-architecture the bundles using normalized command streams.
...
This is a major change in how the bundles are implemented. Instead of
transparently injecting them into the pass command stream, we are now
treating bundles as first-class API objects and API tracing them
accordingly. The bundle contains a normalized command stream that is
very easy to inject into a native command buffer multiple times.
2020-06-11 15:34:45 -04:00