Nicolas Silva
191537021e
Expose naga span location helpers ( #2752 )
...
* Expose the source location in CreateShaderModuleError.
* Bump naga dep to 89bed99
.
2022-06-14 23:10:22 -04:00
Harald Reingruber
25b16d5cc8
OffscreenCanvas Support for WebGL Backend ( #2603 )
...
* First attempt of exposing create_surface_from_canvas for webgl
* Test Fix Compile For WebGL Offscreen Canvas
* Only specify web-sys feature version in wgpu-core, so that patch version is taken from workspace
* Reuse already existing fn create_surface_from_canvas
* Remove unnecessary unsafe
* Remove unsafe prefix also from top-level create_surface_from_canvas
* Add create_surface_from_offscreen_canvas() for webgl
* Cargo fmt
* Store webgl2_context instead of canvas, which works also for OffscreenCanvas
* Copy skybox example for OffscreenCanvas example
* Use offscreen_canvas instead in newly created example
* Update skypbox_offscreen readme.md
* Allow enabling OffscreenCanvas in examples via http://localhost:8000/?offscreen_canvas=true
* Fix cargo fmt
* [fix warning] Only import FromStr for wasm32
* [fix warning] Exclude offscreen_canvas_setup from non-wasm32
* [fix warning] Add ImageBitmap feature as well so that all related methods can be used
* Fix cargo fmt
* Fix emscripten build
* Remove `webgl` feature from wgpu-core as webgl is the only wasm32 backend
Co-authored-by: Zicklag <zicklag@katharostech.com>
2022-06-07 01:57:16 -04: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
Jinlei Li
8b2e6fe3a2
Roll naga to 571302e
(50 revisions) ( #2672 )
2022-05-18 21:09:22 -07:00
Jim Blandy
c608ee0bbe
Accept both parking-lot 0.11 and 0.12.*, to avoid windows-rs. ( #2660 )
...
In parking_lot 0.12 and parking_lot_core 0.9.0, those crates switched
from the winapi crate to the official Microsoft windows-sys crate.
This is fine, except that windows-sys and its dependencies are even
larger than winapi. Some users may wish to stick with winapi for the
time being; this change allows wgpu to accommodate them.
2022-05-16 01:16:53 -04:00
Emilio Cobos Álvarez
a613a568b6
Update parking_lot. ( #2639 )
2022-05-03 04:28:17 +00:00
Connor Fitzgerald
e54a36ee78
Move texture-array example over to wgsl ( #2618 )
2022-04-25 18:32:53 +00:00
Jim Blandy
6d7c092dad
Update Naga to 85056524
(2022-4-18).
2022-04-18 20:27:42 -07:00
Jim Blandy
3d10678a91
Update to Naga 0e2bb019
.
2022-04-18 09:09:47 -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
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
Jinlei Li
1bd85a835a
Roll naga from 8e2e39e
to a45b9a6
(27 revisions)
2022-02-22 15:45:05 -05:00
Jinlei Li
fa35c0a0f4
Re-allow vk backend on Apple platforms via vulkan-portability feature
2022-02-18 20:26:53 -05:00
Alexander Guryanov
d586d6dce9
added id32 feature
2022-02-14 14:42:23 -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
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
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
Dzmitry Malyshau
1bab287eae
Update naga to c0b7ac7
2022-01-11 11:45:33 -05:00
Dzmitry Malyshau
eda3d4fa34
Update naga to 09d35f3
2022-01-05 23:33:43 -05:00
Dzmitry Malyshau
39b7a8a202
Update naga to 8df5421
2021-12-25 00:03:15 -05:00
Dzmitry Malyshau
c00e471274
Release 0.12
2021-12-18 12:36:41 -05:00
Dzmitry Malyshau
3960658529
Remove block decorations ( #2292 )
2021-12-15 12:29:37 -05:00
Dzmitry Malyshau
0e5892fa04
Update naga with Metal bounds checks ( #2276 )
2021-12-15 04:59:06 +00:00
Dzmitry Malyshau
ab28009d80
Angle support on Windows
...
Also remove the macros module in favor of generic functions.
2021-12-05 17:09:36 -05:00
Dzmitry Malyshau
9bbea3d348
Update naga to c69f676
2021-12-04 12:46:49 -05:00
Igor Shaposhnik
c6d1491bb1
Update raw-window-handle to 0.4
2021-12-01 15:59:05 -05:00
Layl
2ef72b9313
Add multiview support ( #2187 )
...
Co-authored-by: Layl Bongers <2385329-layl@users.noreply.gitlab.com>
2021-11-19 10:56:48 -05:00
Dzmitry Malyshau
27aae2a2a2
Update naga to eda078d
( #2172 )
2021-11-10 16:06:32 -05:00
Alphyr
99830957e8
Update ron ( #2154 )
2021-11-04 22:41:21 -04:00
Dzmitry Malyshau
ca7ca749cd
Update naga to 323999f
, report pretty errors in shader validation ( #2141 )
2021-11-01 16:57:33 -04:00
Dzmitry Malyshau
07b02e694d
Update naga to 9d2b357
( #2140 )
2021-10-31 23:29:49 -04:00
Dzmitry Malyshau
016b319b38
Manifests update for 0.11
2021-10-07 19:15:49 -04:00
Zicklag
312828f12f
Implement WebGL2 Backend ( #1686 )
...
* Implement WebGL Backend
* Add WebGL Fixes by @mrk-its
* Update Limits for WASM and Examples
* Address Review Points
2021-10-07 16:18:09 -04:00
Connor Fitzgerald
6df5f95b67
Update naga to 2e7d629
2021-10-07 16:09:13 -04:00
Dzmitry Malyshau
dfa4948033
Update naga to 0e3fbc8
2021-10-07 08:32:01 -04:00
memoryruins
13a0baaca5
Update mentions of gfx-hal to wgpu-hal
2021-10-01 13:50:19 -04:00
Dzmitry Malyshau
c8436de1ec
Force point size output on Vulkan
2021-09-15 19:15:23 -04:00
João Capucho
bf29ceaf10
Update naga to latest
2021-09-11 11:44:27 -04:00
Dzmitry Malyshau
180dc27144
Work around Adreno's OpName bug
2021-09-08 22:24:27 -04:00
Dzmitry Malyshau
e00bfac6cf
vulkan: compile shader modules at pipeline creation time
2021-09-07 20:06:16 -04:00
Dzmitry Malyshau
590ef1d8cf
Switch naga to latest on git ( #1858 )
2021-08-24 18:20:44 -04:00
Dzmitry Malyshau
9da5c1d3a0
Release v0.10 ( #1820 )
...
* Release v0.10
* hal/gles: update glow handles logic
2021-08-18 19:06:21 +00:00
Dzmitry Malyshau
9b85882ff8
[dx12] implement num_workgroups
2021-08-18 00:14:44 -04:00
Dzmitry Malyshau
4dc5546a17
Naga update to 69b70f8
2021-08-16 01:35:19 -04:00
Dzmitry Malyshau
1e7d86b655
Update Naga to 69b70f8
2021-08-13 02:09:43 -04:00
Dzmitry Malyshau
f2a18ee57c
Update naga to 1907a92
2021-08-12 23:58:19 -04:00