Mikko Lehtonen
019dca3cfa
Error formatting impls closer to errors
...
This is achieved by making a ErrorFormatter helper that is passed to
fmt_pretty, making the impls a lot simpler.
2021-08-03 11:51:52 -04:00
Dzmitry Malyshau
52734bf87a
Fix tracing feature for RODS
2021-07-23 11:33:22 -04:00
Dzmitry Malyshau
34b68121c6
Check bundle RODS against pass RODS
2021-07-23 11:24:05 -04:00
Dzmitry Malyshau
bb218c1580
Check render bundle encoding for RODS
2021-07-23 11:24:05 -04:00
Dzmitry Malyshau
1a9a855ea9
Rename InputStepMode to VertexStepMode
2021-07-21 17:48:00 -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
952173efde
Enable Gles backend, add checks for downlevel flags
2021-06-30 02:29:28 -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
9d85602349
hal: re-architect command encoding and pooling
2021-06-14 13:30:28 -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
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
f861e83df1
Fix wgpu_render_bundle_draw_indexed_indirect
2021-05-11 15:00:49 -04:00
Dzmitry Malyshau
6ff618aafb
Big refactor of the profiling usage
2021-04-29 02:06:58 -04:00
Dzmitry Malyshau
c744582052
Update blending API names
2021-04-15 11:25:04 -04:00
Joshua Groves
306eaf3969
Fix some typos
2021-03-23 01:01:32 -02:30
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
Dzmitry Malyshau
fb1b98ebb1
Early tracing of the other device things
2021-03-03 17:24:09 -05:00
Andreas Reich
822424e519
Fix buffer init in bundle.rs with mem::size_of::<wgt::DrawIndirectArgs>
2021-01-31 22:01:52 +01:00
Andreas Reich
da86b3f401
Cleanup, better use of some rust std lib functions
2021-01-31 21:56:31 +01:00
Andreas Reich
492027fe6e
command buffer buffer memory init tracking is only filled if necessary now
2021-01-31 21:56:22 +01:00
Andreas Reich
1efdc2b229
Queue_submit zeros out uninitialized buffer regions now
...
again but with fine grained scheme now
2021-01-31 21:55:49 +01:00
Andreas Reich
9595b39bb3
Fine grained tracking of buffer init requirements
2021-01-31 21:55:49 +01:00
Dzmitry Malyshau
0346b43982
Update the render pipeline API
2021-01-27 15:09:13 -05:00
Dzmitry Malyshau
7f8c776a85
Update gfx to unborrowed APIs
2021-01-19 00:33:45 -05:00
Connor Fitzgerald
a22037ced0
Add pipeline statistics and timeline queries
2021-01-16 00:48:54 -05:00
Mikko Lehtonen
6c56613045
Merge PassErrorScope::Draw* and Dispatch* variants
2021-01-12 22:23:17 +02:00
Mikko Lehtonen
0d60bd80c5
Include pipeline id in some pass error scopes
2021-01-12 17:58:44 +02:00
Dzmitry Malyshau
f328995950
Fix UB in populating dynamic offsets
2021-01-04 14:46:04 -05:00
Connor Fitzgerald
1da153f3bd
Improve vertex state error messages
2020-12-21 23:13:34 -05:00
Dzmitry Malyshau
394135f725
Fix and improve object labels and command markers
2020-12-15 11:28:11 -05:00
Noah Charlton
b71c47a064
Remove extern "C" from set_index_buffer
2020-12-07 17:03:54 -05:00
Dzmitry Malyshau
749f737c89
Add pervasive Naga support to shader module loading
...
The purpose of the PR is to support Naga modules everywhere.
As a requirement, it updates the gfx-rs version used.
Most of the logic is dedicated towards building a shader interface,
where previously we just used naga's IR. Now we have our own mini-IR.
2020-12-05 11:31:03 -05:00
kejor
4513fb2b83
Match upstream API changes for IndexFormat
2020-12-01 19:19:41 -05:00
Dzmitry Malyshau
9e2f6c2f01
Move to gfx master
2020-11-30 22:50:13 -05:00
Dzmitry Malyshau
c6bc37dbde
[error] render bundles
2020-11-23 12:00:47 -05:00
Mikko Lehtonen
459e835250
Add Ids to PassErrorScope
...
Also makes it pub, and the places it is used.
Tweak some error messages.
2020-11-21 23:39:05 +02:00
Dzmitry Malyshau
46b87e220c
Stop using Borrow<RefCount>
2020-11-21 10:38:20 -05:00
Mikko Lehtonen
4498f172cc
Retain labels for resources
...
As a braking api change, adds also label for the error id generation,
for labeling invalid ids too.
Also adds query methods the label.
2020-11-19 00:09:21 +02:00
Marvin Löbel
8723a8379a
Annotate all commands of {Compute,Render}Passes with error context informations
2020-11-12 23:05:10 +01:00
Marvin Löbel
752c1aad33
Elide redundant set_pipeline calls.
...
Add a small abstraction over state changes
Deduplicate redundant pipeline state checking
2020-10-21 19:25:21 +02:00
bors[bot]
f963193be1
Merge #966
...
966: Immediate resource destruction and freeing r=cwfitzgerald a=kvark
**Connections**
Fixes #964
**Description**
We are making it so a buffer or a texture can have their native resources freed while they are still referenced, so without waiting for GC.
In addition, the PR adds a few missing cases where error IDs should have been handled, like at render pass encoding.
**Testing**
Tested on wgpu-rs examples, see https://github.com/gfx-rs/wgpu-rs/pull/591
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2020-10-11 17:10:42 +00:00
PENGUINLIONG
6f4508523a
Pass [u8] instead of [u32] for push constants ( #918 )
...
* Pass [u8] instead of [u32] for push constants
Use 2-instruction aligner
Fixed alignment
Fixed offsets
Added alignment checks and fixed size
Use semantic constants
* Replaced all magic number with constant
* Fixed type cast
2020-10-08 23:13:18 -04:00
Dzmitry Malyshau
0a7d81351c
Handle cases where buffer contents are destroyed
2020-10-08 12:57:17 -04:00
lberrymage
41228ef1a4
Fix clippy warnings about using if-let over match
...
The specific lint triggered was
https://rust-lang.github.io/rust-clippy/master/index.html#single_match .
2020-09-25 23:02:51 -08:00