Commit graph

99 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
c51b85e7ab
Invalidate text uploads after atlas trimming 2024-04-30 21:59:46 +02:00
Héctor Ramón Jiménez
24501fd73b
Fix text and triangle uploads being dropped on canvas cache clears 2024-04-30 05:13:24 +02:00
Héctor Ramón Jiménez
2dcd4f916e
Retain caches in iced_wgpu as long as Rc values are alive
This allows reusing a `canvas::Cache` at no cost even if it
is not presented every frame.
2024-04-27 14:16:12 +02:00
Héctor Ramón Jiménez
d922b47815
Reintroduce support for custom primitives in iced_wgpu 2024-04-08 15:04:35 +02:00
Héctor Ramón Jiménez
288f62bfb6
Share msaa::Blit texture between multiple windows 2024-04-07 18:45:48 +02:00
Héctor Ramón Jiménez
13289dbd19
Merge branch 'master' into wgpu/better-architecture 2024-04-07 14:06:52 +02:00
Héctor Ramón Jiménez
441aac2599
Avoid generating empty caches in iced_wgpu 2024-04-06 03:06:40 +02:00
Héctor Ramón Jiménez
6d3e1d835e
Decouple caching from layering and simplify everything 2024-04-05 23:59:21 +02:00
Héctor Ramón Jiménez
394e599c3a
Fix layer transformations 2024-04-05 00:40:39 +02:00
Héctor Ramón Jiménez
e2c129c057
Fix geometry::Cache not reusing previous geometry 2024-04-03 23:14:16 +02:00
Héctor Ramón Jiménez
88b72de282
Implement preliminary cache grouping for mesh primitives
Due to AA, it's very expensive to render every cached
layer independently.
2024-04-03 22:13:00 +02:00
Héctor Ramón Jiménez
b05e61f5c8
Redesign iced_wgpu layering architecture 2024-04-03 21:07:54 +02:00
Héctor Ramón Jiménez
2bb53ad6e7
Use a StagingBelt in iced_wgpu for regular buffer uploads 2024-03-29 04:04:14 +01:00
Héctor Ramón Jiménez
f4d6648601
Introduce with_transformation to Renderer trait 2024-02-02 02:24:45 +01:00
Héctor Ramón Jiménez
5467c19c80
Replace Primitive::Translate with Transform 2024-02-02 01:53:23 +01:00
Héctor Ramón Jiménez
86b877517f
Update wgpu to 0.18 and cosmic-text to 0.10 2023-10-27 03:24:06 +02:00
Héctor Ramón Jiménez
b8ddd158da
Simplify map call in iced_wgpu::triangle 2023-09-20 16:27:54 +02:00
Héctor Ramón Jiménez
b277625546
Revert "Chore: Apply clippy map transformations"
This reverts commit c997aad85d.
2023-09-20 16:26:43 +02:00
Héctor Ramón Jiménez
14ba939e67
Fix clippy::unreadable_literal 2023-09-20 05:19:24 +02:00
Yuri Astrakhan
c997aad85d Chore: Apply clippy map transformations
Convert `.map().unwrap_or()` to `.map_or()` and similar transformations.
2023-09-19 01:46:46 -04:00
Héctor Ramón Jiménez
10d0b257f9
Use Oklab color interpolation only with color::GAMMA_CORRECTION 2023-09-07 07:48:43 +02:00
Héctor Ramón Jiménez
fa5650cfd1
Decouple Mesh primitives from main Primitive type 2023-06-29 07:48:03 +02:00
Bingus
677f564f08
Switched to packing using f16s to maintain acceptable precision. 2023-06-07 11:18:26 -07:00
Bingus
ea7f2626b1
Optimized gradient data packing. 2023-06-06 16:46:20 -07:00
Héctor Ramón Jiménez
166d350dfc
Fix empty scissor rectangle in iced_wgpu::triangle pipeline 2023-06-01 17:12:28 +02:00
Héctor Ramón Jiménez
e267e075cc
Avoid redundant buffer::Buffer import 2023-05-19 04:02:18 +02:00
Bingus
6551a0b2ab
Added support for gradients as background variants + other optimizations. 2023-05-11 11:13:44 -07:00
Héctor Ramón Jiménez
200a29c069
Fix unused import in triangle pipeline for Wasm target in iced_wgpu 2023-04-27 15:17:45 +02:00
Héctor Ramón Jiménez
4bae457c37
Merge branch 'master' into advanced-text 2023-04-17 23:41:12 +02:00
David Huculak
703484c5fd remove colons from shader labels 2023-04-01 16:10:28 -04:00
Héctor Ramón Jiménez
3a0d34c024
Create iced_widget subcrate and re-organize the whole codebase 2023-03-04 05:37:11 +01:00
Héctor Ramón Jiménez
5fd5d1cdf8
Implement Canvas support for iced_tiny_skia 2023-03-01 21:34:26 +01:00
Héctor Ramón Jiménez
2097a56b58
Provide some margin to static buffers when growing 2023-02-24 13:37:32 +01:00
Héctor Ramón Jiménez
730d6a0756
Reuse a RenderPass as much as possible in iced_wgpu 2023-02-24 13:37:31 +01:00
Héctor Ramón Jiménez
b8c1809ea1
Refactor triangle::Pipeline into prepare and render architecture
And get rid of the staging belt! 🎉
2023-02-24 13:37:31 +01:00
bungoboingo
4b6d3797d4
Restructured everything to make profiling a feature of iced_winit. 2023-01-09 18:52:38 +01:00
Bingus
c5cd236b73
Initial profiling support for Iced. 2023-01-09 18:52:38 +01:00
Héctor Ramón Jiménez
6bb01b7276
Fix clippy lints for Rust 1.66 2022-12-20 11:31:25 +01:00
Héctor Ramón Jiménez
33c3c0c0aa
Group all solid triangles independently of color 2022-11-16 09:24:16 +01:00
bungoboingo
365f37a3ae Added conditional configurations for WASM target for gradients & storage buffers, since storage buffers are not supported on wgpu WASM target at the moment. 2022-11-10 15:25:54 -08:00
Héctor Ramón Jiménez
f31c8f2504
Refactor imports of triangle modules in iced_glow and iced_wgpu 2022-11-03 06:05:23 +01:00
Héctor Ramón Jiménez
84d1b79fef
Move mesh::Style to triangle and reuse it in fill and stroke 2022-11-03 05:50:53 +01:00
Héctor Ramón Jiménez
93e309f491
Reuse last set pipeline for triangle in iced_wgpu 2022-11-03 05:06:09 +01:00
Héctor Ramón Jiménez
99cf98971d
Rename buffers module to buffer
... and move `StaticBuffer` to nested `static` module
2022-11-03 05:00:35 +01:00
Héctor Ramón Jiménez
7e22e2d452
Fix lints by clippy 2022-11-03 04:53:27 +01:00
Héctor Ramón Jiménez
b957453404
Run cargo fmt 2022-11-03 04:35:16 +01:00
bungoboingo
c4565759e4 Cleaned up namespaces re: PR comments. 2022-10-18 15:18:37 -07:00
shan
215e6c95be More import adjusting. 2022-10-07 13:21:32 -07:00
shan
f9a6efcaa0 Fixed some more imports/documentation. 2022-10-06 19:41:00 -07:00
shan
72feba51be Fixed some imports/documentation. 2022-10-06 19:13:40 -07:00