Ashley
ff75948848
Allow non-storage textures to be able to be queried in validation ( #1324 )
...
* Improve the WrongUsage error and allow textures to use query
* Run cargo fmt
* Further improve the error
* Add more QUERY flags
2021-04-13 10:12:17 -04:00
Aaron Housh
c820cc8e73
Add Map Alignment type ( #1322 )
...
* Add Map Alignment type
* Fix clippy warnings
* Make buffer_map_async compare range start to MAP_ALIGNMENT
2021-04-12 13:28:46 -04:00
Dzmitry Malyshau
1ba95585ba
Update naga to gfx-21
2021-04-11 01:07:46 -04:00
Dzmitry Malyshau
191f33871b
Don't panic on change_extend errors
2021-04-08 12:03:46 -04:00
Dzmitry Malyshau
02442bcb5e
Update gfx with the cmd buf freeing fix
2021-04-06 10:28:51 -04:00
Franz
7a37f07ea0
Updated gpu-alloc to rev 2cd1ad6
2021-04-06 11:16:49 +02:00
Dzmitry Malyshau
4d324bc38d
Move depth clamping to primitive state
2021-04-05 16:01:23 -04:00
Dzmitry Malyshau
2e9d9d8267
Update gfx with fixed Metal cross feature
2021-04-05 00:48:17 -04:00
Dzmitry Malyshau
1dddfa6234
Don't flip SPIR-V coordinate space on input
2021-04-04 18:38:56 -04:00
Dzmitry Malyshau
0bd8526239
Update naga to gfx-20
2021-04-04 11:25:10 -04:00
adamnemecek
d91ad13482
framecapture
2021-04-01 12:51:50 -07:00
Connor Fitzgerald
3073a454ff
Update to flag-based downlevel bools
2021-04-01 11:48:09 -04:00
Connor Fitzgerald
fca72f54f9
Validate compute shader's presence
2021-03-31 01:08:53 -04:00
Connor Fitzgerald
4db9a4522e
Add downlevel infrastructure
2021-03-31 01:08:48 -04:00
Dzmitry Malyshau
49c59ec063
Update gfx to the MSL entry point fix
2021-03-30 21:25:40 -04:00
Gordon-F
7fc70bf349
Force-enable EXPERIMENTAL_TRANSLATION flag when running without cross feature
2021-03-31 02:01:43 +03:00
Gordon-F
124d5e3a7c
Update naga to gfx-19
2021-03-31 02:00:48 +03:00
Igor Shaposhnik
6097421647
Update to latest gpu-alloc
2021-03-29 09:33:40 +00:00
Gordon-F
c1f8203f3c
Update naga to gfx-18
2021-03-25 16:59:16 +03:00
Joshua Groves
9885bdf320
Rename level_count to mip_level_count
...
This follows the naming in the specification, located at
https://gpuweb.github.io/gpuweb/#texture-view-creation
2021-03-24 09:14:30 -02:30
Dzmitry Malyshau
f953266bbe
Align create_swap_chain function signature
2021-03-23 10:39:13 -04:00
Joshua Groves
a5693ab2a3
Rename color/depth attachments to match spec
...
- Rename `ColorAttachmentDescriptor` to `RenderPassColorAttachment`
- Rename `DepthStencilAttachmentDescriptor` to `RenderPassDepthStencilAttachment`
- Rename `attachment` fields on both attachments to `view`
2021-03-23 09:31:59 -02:30
bors[bot]
fb0288a377
Merge #1279
...
1279: Fix some typos r=kvark a=grovesNL
**Description**
Fix a few small typos in doc comments
**Testing**
None
Co-authored-by: Joshua Groves <josh@joshgroves.com >
2021-03-23 06:44:11 +00:00
Joshua Groves
306eaf3969
Fix some typos
2021-03-23 01:01:32 -02:30
Joshua Groves
9058f3ba62
Rename copy views and layout to match spec
2021-03-23 00:48:42 -02:30
Andreas Reich
720c73fa9c
Review feedback / fix validate_linear_texture_data
2021-03-21 09:01:31 +01:00
Andreas Reich
50043875e5
rows_per_image & rows_per_image are now optional
...
Fixes #988
2021-03-20 12:33:28 +01:00
Gordon-F
d20c0199d7
Properly return native shader module errors to users
2021-03-19 21:09:54 +03:00
Dzmitry Malyshau
c52dad9d47
Update naga to gfx-17
2021-03-19 13:43:11 -04:00
Dzmitry Malyshau
9673635125
Add sample count to framebuffer key
2021-03-17 12:13:11 -04:00
Dzmitry Malyshau
b97f5a5b24
Update naga to gfx-16
2021-03-17 09:07:08 -04:00
Connor Fitzgerald
cf6f9c3ca8
Move from tracing to log + profiling
2021-03-17 01:22:30 -04:00
bors[bot]
5d993efc85
Merge #1267
...
1267: Update naga to gfx-15 r=kvark a=kvark
**Connections**
Fixes #1228 (huge DX12 leak in command allocation)
Includes https://github.com/gfx-rs/gfx/pull/3676 , https://github.com/gfx-rs/gfx/pull/3679 , https://github.com/gfx-rs/gfx/pull/3680 , https://github.com/gfx-rs/gfx/pull/3681 , and the relevant Naga stuff.
**Description**
Updates Naga and gfx.
**Testing**
Tested on wgpu-rs examplse
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2021-03-16 17:07:20 +00:00
Luca Casonato
82932d1f59
chore: validate offset + size in get_mapped_range ( #1266 )
...
* chore: validate offset + size in get_mapped_range
This commit introduces out of bounds & offset validation for
buffer_get_mapped_range, like described in the WebGPU spec. See
https://gpuweb.github.io/gpuweb/#dom-gpubuffer-getmappedrange .
Closes #818
* review comments
* fmt
* fix test
* fix tests
* update error message
* review comment
* use wgt::BufferAddress
* clippy
2021-03-16 13:00:44 -04:00
Dzmitry Malyshau
3b1b11f441
Update naga to gfx-15
2021-03-16 12:52:32 -04:00
Wumpf
717c2d73e7
Add CONSERVATIVE_RASTERIZATION native feature ( #1263 )
...
* Add CONSERVATIVE_RASTERIZATION native feature
* update gfx to cd3042d8c02d9dc7fc74ac8c292099c9789f6d43
* error for polygon mode not fill +conservative raster
2021-03-14 20:43:02 -04:00
Dzmitry Malyshau
280c066e65
Update to naga-14
2021-03-14 00:27:57 -05:00
Dzmitry Malyshau
231bba03a1
Lint all the things
2021-03-12 12:39:04 -05:00
Dzmitry Malyshau
80fe0d8fdd
Fix Vulkan Portability check
2021-03-10 00:23:09 -05:00
Anthony Cowley
f01feacc2e
Update gfx and naga to gfx-13 tag ( #1248 )
...
* wgpu-core: update gfx-hal usage related to sparse resources
* wgpu-core: support naga gfx-13
* Update gfx and naga dependencies to gfx-13 tag
Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com >
2021-03-10 00:04:16 -05:00
Dzmitry Malyshau
4f7cd45ea7
Don't panic on pipeline creation errors
2021-03-09 22:24:57 -05:00
bors[bot]
37dbe5e32e
Merge #1247
...
1247: Add license to the memory init tracker r=kvark a=kvark
**Connections**
Gecko's code lints complain...
**Description**
Add a license header like all the other files
**Testing**
should work!
Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com >
2021-03-04 15:43:42 +00:00
Dzmitry Malyshau
11af3d1286
Add license to the memory init tracker
2021-03-04 10:42:18 -05:00
Dzmitry Malyshau
10245cece9
Early tracing of swapchain-related things, clean up the hub API
2021-03-03 19:59:29 -05:00
Dzmitry Malyshau
fb1b98ebb1
Early tracing of the other device things
2021-03-03 17:24:09 -05:00
Dzmitry Malyshau
20bcb44c85
Early tracing of buffer, texture, and view creation
2021-03-03 16:54:38 -05:00
Dzmitry Malyshau
7c1db12cdc
Refactor implicit BGLs to support early tracing
2021-03-03 16:48:23 -05:00
Dzmitry Malyshau
f7e1304c38
Expose CA surface creation
2021-03-03 15:43:55 -05:00
Dzmitry Malyshau
199e7e5f3b
Trace pipeline creation before it actually happens
2021-03-03 15:18:48 -05:00
bors[bot]
c3e95273ff
Merge #1243
...
1243: Force-drop the token before calling fire_map_callbacks r=kvark a=kvark
**Connections**
Related to WebGPU update in Gecko
**Description**
Since the token was alive, technically, we saw an assertion firing up about concurrent access to the token root.
**Testing**
Tested in Gecko
Co-authored-by: Dzmitry Malyshau <dmalyshau@mozilla.com >
2021-03-02 19:12:58 +00:00