summaryrefslogtreecommitdiffstats
path: root/wgpu/src/image (unfollow)
Commit message (Collapse)AuthorFilesLines
2025-03-09Update `wgpu` to `24` and use `cryoglyph` forkLibravatar Héctor Ramón Jiménez1-5/+5
Co-authored-by: Winfried Baumann <codewing@web.de>
2025-02-21Run `cargo fmt`Libravatar Héctor Ramón Jiménez2-2/+2
2024-11-05Update `wgpu` to `23.0`Libravatar Héctor Ramón Jiménez1-2/+2
2024-09-20Update `wgpu` to `22.0`Libravatar Héctor Ramón Jiménez1-0/+1
2024-09-20Update `wgpu` to `0.20.1`Libravatar Héctor Ramón Jiménez1-0/+4
2024-09-13Make rendering of svg that has text work out of the box (#2560)Libravatar Jovansonlee Cesar1-9/+21
* fix: load system fonts to usvg font_db, this will make rendering of text in svg that has it * feat: add an example that renders svg that has text on it * Initialize `fontdb` only once for `vector` images * Remove `svg_text` example * Set `fontdb` for `usvg::Options` in `tiny_skia::vector` --------- Co-authored-by: Héctor Ramón Jiménez <hector@hecrj.dev>
2024-08-04Introduce `Svg` struct in `core::svg`Libravatar Héctor Ramón Jiménez1-10/+9
2024-08-04Introduce `Image` struct in `core::image`Libravatar Héctor Ramón Jiménez1-13/+6
2024-08-04Implement image support for `canvas` widgetLibravatar Héctor Ramón Jiménez1-4/+20
2024-07-17Update `cosmic-text` and `resvg` (#2416)Libravatar Héctor Ramón1-21/+14
* Update `cosmic-text`, `glyphon`, and `resvg` * Fix slow font fallback with `Shaping::Basic` in `cosmic-text` * Update `cosmic-text` and `resvg` * Update `cosmic-text` * Fix `SelectAll` action in `editor` * Fix some panics in `graphics::text::editor` * Remove empty `if` statement in `tiny_skia::vector` * Update `cosmic-text`, `glyphon`, and `rustc-hash`
2024-05-06Fix windows fighting over shared `image::Cache`Libravatar Héctor Ramón Jiménez3-62/+57
Image caches are local to each window now.
2024-05-03Introduce dynamic `opacity` support for `Image` and `Svg`Libravatar Héctor Ramón Jiménez1-5/+17
2024-05-02Rename `global_scale` to `scale` in `wgpu::image`Libravatar Héctor Ramón Jiménez1-9/+3
2024-05-02Simplify image rotation API and its internalsLibravatar Héctor Ramón Jiménez1-18/+6
2024-05-02Add `Image` rotation supportLibravatar Héctor Ramón Jiménez1-9/+56
Co-authored-by: DKolter <68352124+DKolter@users.noreply.github.com>
2024-05-01Use an opaque `Id` type for `image::Handle`Libravatar Héctor Ramón Jiménez1-2/+2
Hashing pointers is a terrible idea.
2024-05-01Use `Bytes` as the `Container` of `ImageBuffer`Libravatar Héctor Ramón Jiménez1-2/+2
Since we don't need to mutate images once loaded, we avoid unnecessary extra allocations.
2024-04-24Make image `Cache` eviction strategy less aggressive in `iced_wgpu`Libravatar Héctor Ramón Jiménez6-5/+41
Instead of trimming unconditionally at the end of a frame, we now trim the cache only when there is a cache miss. This way, images that are not visible but still a part of the layout will stay cached. Eviction will only happen when the images are not a part of the UI for two consectuive frames.
2024-04-05Decouple caching from layering and simplify everythingLibravatar Héctor Ramón Jiménez1-3/+4
2024-04-03Redesign `iced_wgpu` layering architectureLibravatar Héctor Ramón Jiménez3-0/+688
2024-04-01Use `rustc-hash` for most of our `HashMap` and `HashSet` instancesLibravatar Héctor Ramón Jiménez2-8/+8
2024-02-19Use two layers for `image::atlas` only on `Gl` backendLibravatar Héctor Ramón Jiménez1-5/+9
2024-02-18[wgpu.image] Workaround WGPU OpenGL heuristicsLibravatar PolyMeilex1-2/+6
2023-12-11Convert SVG text nodes for in-memory SVGs in `iced_wgpu`Libravatar Héctor Ramón Jiménez1-20/+17
2023-12-11Fix import styling in `iced_wgpu::image::vector`Libravatar Héctor Ramón Jiménez1-1/+1
2023-12-10implement svg text fix for native rendererLibravatar Cory Frenette1-5/+18
Signed-off-by: Cory Frenette <cory@frenette.dev>
2023-09-20Revert "Chore: Apply clippy map transformations"Libravatar Héctor Ramón Jiménez1-1/+1
This reverts commit c997aad85d7ee6e77085e50e5e599002549d228f.
2023-09-20Fix `clippy::match-wildcard-for-single-variants`Libravatar Héctor Ramón Jiménez1-1/+1
2023-09-20Fix `clippy::semicolon_if_nothing_returned`Libravatar Héctor Ramón Jiménez1-1/+1
2023-09-19Chore: Apply clippy map transformationsLibravatar Yuri Astrakhan1-1/+1
Convert `.map().unwrap_or()` to `.map_or()` and similar transformations.
2023-09-19Chore: Inline format args for ease of readingLibravatar Yuri Astrakhan2-5/+5
A minor cleanup to inline all simple cases of format arguments. Makes the format strings just a bit easier to read.
2023-07-12Improve code style in `vector` modulesLibravatar Héctor Ramón Jiménez1-11/+12
2023-07-12Upgrade resvg to 0.34 and tiny_skia to 0.10Libravatar Alec Deason1-10/+21
2023-05-31Use proper gamma correction mode in `image::Atlas::grow`Libravatar Héctor Ramón Jiménez1-1/+5
2023-05-31Avoid gamma correction when `web-colors` is enabled for imagesLibravatar Héctor Ramón Jiménez1-1/+6
2023-05-11Remove `dbg!` leftovers in `image::atlas`Libravatar Héctor Ramón Jiménez1-3/+0
2023-05-11Fix race condition when growing an `image::Atlas`Libravatar Héctor Ramón Jiménez3-17/+30
2023-04-26Update `tiny-skia` and `resvg`Libravatar Héctor Ramón Jiménez1-2/+4
2023-04-20remove unused importLibravatar David Huculak1-2/+0
2023-04-20wgpu 0.16Libravatar David Huculak1-2/+2
2023-04-13Update `wgpu` to `0.15`Libravatar Elham Aryanpur1-0/+2
2023-04-08Update `wgpu` and `cosmic-text`Libravatar Héctor Ramón Jiménez1-0/+2
2023-03-07Remove `image` abstractions in `iced_graphics`Libravatar Héctor Ramón Jiménez4-102/+396
2023-03-04Create `iced_widget` subcrate and re-organize the whole codebaseLibravatar Héctor Ramón Jiménez4-9/+7
2023-02-24Refactor `image::Pipeline` into `prepare` and `render` architectureLibravatar Héctor Ramón Jiménez1-25/+24
2022-11-05Use RGBA texture for `image` and `svg` pipelinesLibravatar Héctor Ramón Jiménez1-2/+2
2022-11-05Refactor some `image` traits a bitLibravatar Héctor Ramón Jiménez4-14/+20
- Use `Size<u32>` were applicable. - Rename `TextureStore` to `image::Storage`. - Rename `TextureStoreEntry` to `image::storage::Entry`. - Wire up `viewport_dimensions` to `iced_glow` for `Svg`.
2022-11-05Move image/svg handling into `iced_graphics`Libravatar Ian Douglas Scott4-491/+101
The `TextureStore` trait is implemented by the atlas, and can also be implemented in the glow renderer or in a software renderer. The API here may be improved in the future, but API stability is presumably not a huge issue since these types will only be used by renderer backends.
2022-07-09Fix `clippy` lints for all crates and featuresLibravatar Héctor Ramón Jiménez1-1/+1
... and check those in CI as well!
2022-07-09Run `cargo fmt`Libravatar Héctor Ramón Jiménez1-7/+1