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
Dzmitry Malyshau
a4f897b5d7
Include the extent into the framebuffer map key
2021-01-15 00:53:51 -05:00
Dzmitry Malyshau
012569845d
Update render pass and framebuffers logic to the latest gfx-hal
2021-01-15 00:53:28 -05:00
dasetwas
c01e2d10ce
Remove comment introduced in https://github.com/gfx-rs/wgpu/pull/1144
2021-01-13 23:28:44 +01: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
389a848dea
Support trailing render passes after the swapchain rendering
2021-01-11 21:40:41 -05:00
DasEtwas
93f68add27
Decrease error variant code verbosity, apply reviews
2021-01-11 23:46:26 +01:00
DasEtwas
151d521ad9
Fix and simplify attachment dimension mismatch check
...
This also improves error messages with detailed dimension and attachment type name info which should help developers can hopefully recognize.
2021-01-11 20:13:14 +01:00
Dzmitry Malyshau
d70148725b
Fix API traced dynamic offsets and object labels
2021-01-04 17:54:56 -05:00
Dzmitry Malyshau
f328995950
Fix UB in populating dynamic offsets
2021-01-04 14:46:04 -05:00
Dzmitry Malyshau
5953098461
Implement render bundle freeing
2021-01-04 09:30:10 -05:00
Dzmitry Malyshau
ab10d36ac0
Rename get_encoder to get_encoder_mut
2020-12-23 11:20:08 -05:00
Dzmitry Malyshau
a7587b41e6
Move the render pass setup logic into a separate method/struct
2020-12-22 22:30:27 -05:00
Dzmitry Malyshau
35b163ebc8
Encode render passes while command buffer is only read-locked
2020-12-22 13:48:18 -05:00
Connor Fitzgerald
1da153f3bd
Improve vertex state error messages
2020-12-21 23:13:34 -05:00
Connor Fitzgerald
94579d8125
Properly validate vertex buffer state
2020-12-21 23:10:53 -05:00
Dzmitry Malyshau
cb67ef6542
Clean up render pass labels
2020-12-15 17:28:24 -05:00
Dzmitry Malyshau
394135f725
Fix and improve object labels and command markers
2020-12-15 11:28:11 -05:00
bors[bot]
69196d85a3
Merge #1077
...
1077: Remove extern "C" from set_index_buffer r=kvark a=DevOrc
**Connections**
Fixes an issue that is blocking gfx-rs/wgpu-native#61
**Description**
Moves the ffi definition of wgpu_render_bundle_set_index_buffer / wgpu_render_pass_set_index_buffer to wgpu-native. This is needed because wgpu-native has its own version of IndexFormat that is different than the wgpu_types version.
**Testing**
My projects with wgpu-native work
Co-authored-by: Noah Charlton <ncharlton002@gmail.com>
2020-12-08 15:45:00 +00:00
Noah Charlton
b71c47a064
Remove extern "C" from set_index_buffer
2020-12-07 17:03:54 -05:00
Capucho
713c23bc42
Grow the VertexState inputs in SetPipeline
2020-12-07 15:45:20 +00: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
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
Mikko Lehtonen
a41f7ea78f
Make inner errors pub
2020-11-19 23:37:36 +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
Zsolt Bölöny
a493ed06d8
Rename OutputAttachment helper struct to RenderAttachment too to avoid confusion
2020-11-08 14:27:44 +01:00
Zsolt Bölöny
2151a252ad
Rename TextureUsage::OUTPUT_ATTACHMENT to RENDER_ATTACHMENT
2020-11-08 14:24:39 +01:00
Dzmitry Malyshau
a168886497
Add helpers to convert passes to serialized forms
2020-10-27 13:19:05 -04: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
Dzmitry Malyshau
150ee25c01
Align stencil reference flags between pipeline creation and setting
2020-10-14 16:54:15 -04:00
James Gilles
05c58e805b
Fix garbled debug markers in render passes
2020-10-13 17:34:25 -04: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
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
Mikko Lehtonen
5fab78e175
Address nits in #897
2020-08-27 22:11:42 +03:00
Mikko Lehtonen
dbd6081a8e
Improve diagnostics of incompatible attachments
2020-08-26 10:03:44 +03:00
Kunal Mohan
a10e5cdb53
Check whether attachments are of same size or not
2020-08-24 23:02:04 +05:30
Kunal Mohan
f266431f24
Improve validation in b2b copies and RenderCommands
2020-08-24 21:14:07 +05:30
Dzmitry Malyshau
d1da6d8106
Switch gfx-hal to 0.6
2020-08-17 10:34:50 -04:00
Dzmitry Malyshau
a0711cf9b2
Move the RenderCommand into the shared draw module
2020-08-12 14:33:42 -04:00
Dzmitry Malyshau
9d8dc0b04d
Grand cleanup and refactor of the descriptors in the API
2020-08-12 14:13:32 -04:00
Dzmitry Malyshau
dbd7e2c579
Separate valid internal IDs from external ones
2020-08-04 11:16:59 -04:00
Gabriel Majeri
2f06d3e4f9
Return out of memory condition from render pass
2020-07-29 09:58:46 +03:00
Dzmitry Malyshau
bf862b7907
Clarity renames according to the Gecko review
2020-07-28 16:58:28 -04:00