Héctor Ramón
b5e7fb240c
Merge pull request #2070 from ripytide/master
...
Added a Frame::scale_nonuniform method
2023-09-07 06:03:41 +02:00
Héctor Ramón
d82c8b59e6
Merge pull request #2071 from Davidster/wgpu_webgpu_support
...
use @interpolate(flat) attribute as per the WebGPU spec
2023-09-07 05:53:50 +02:00
Héctor Ramón Jiménez
09965b686e
Make scale methods in Frame generic over f32 and Vector
2023-09-07 05:51:39 +02:00
Héctor Ramón Jiménez
1f263051b6
Implement scale in terms of scale_nonuniform
2023-09-07 05:45:51 +02:00
Héctor Ramón Jiménez
87800095e2
Remove unnecessary interpolate(flat) in quad.wgsl
2023-09-07 05:43:03 +02:00
ripytide
5371fae21a
added a Frame::scale_nonuniform method
2023-09-05 10:49:50 +01:00
Josh Megnauth
bdf18554fe
Check LineHeight > 0.0 before allocating text
2023-09-04 23:47:44 -04:00
Josh Megnauth
ef429fbea6
Ensure LineHeight > 0.0 for the WGPU renderer
2023-09-04 02:58:54 -04:00
David Huculak
76cec1b1fd
use @interpolate(flat) attribute as per the WebGPU spec:
...
User-defined vertex outputs and fragment inputs of scalar or vector integer type must always be specified as @interpolate(flat)
https://www.w3.org/TR/WGSL/#interpolation
2023-09-03 19:32:38 -04:00
Héctor Ramón Jiménez
9b9b37e6f8
Fix adapter selection loop in iced_wgpu
2023-09-03 01:14:22 +02:00
Héctor Ramón Jiménez
0b28080d3e
Remove redundant into_iter call in iced_wgpu
2023-09-03 01:05:17 +02:00
Héctor Ramón Jiménez
020fb3c377
Fix iced_wgpu device selection on Wasm
2023-09-03 01:04:23 +02:00
lufte
e86363837d
Make the style attribute available on Font
2023-08-18 18:46:22 -03:00
Héctor Ramón Jiménez
a7609a723f
Avoid empty overlay layer in iced_wgpu
2023-08-02 22:08:14 +02:00
Héctor Ramón Jiménez
c7e17391c5
Fix iced_wgpu freezing on empty layers
...
The `render` method would return when an empty layer is encountered without explicitly dropping the `RenderPass` (necessary because we use `ManuallyDrop`), which would then leak memory and freeze `wgpu` until the surface was recreated.
2023-08-02 22:05:11 +02:00
Héctor Ramón Jiménez
126aef88e7
Bump versions 🎉
2023-07-28 19:48:39 +02:00
Héctor Ramón Jiménez
95ff96f71f
Update cosmic-text and glyphon
2023-07-20 20:47:38 +02:00
Héctor Ramón Jiménez
6502cf1111
Improve code style in vector modules
2023-07-12 09:07:20 +02:00
Alec Deason
af386fd0a3
Upgrade resvg to 0.34 and tiny_skia to 0.10
2023-07-12 08:59:07 +02:00
Héctor Ramón Jiménez
d666e739cd
Trim text measurements only before layout
2023-06-29 18:23:11 +02:00
Héctor Ramón Jiménez
98febd9a42
Introduce Mode for text::Cache and trim only when switching modes
2023-06-29 17:54:54 +02:00
Héctor Ramón Jiménez
6921564c9f
Write missing docs in iced_graphics and iced_wgpu
2023-06-29 07:55:52 +02:00
Héctor Ramón Jiménez
fa5650cfd1
Decouple Mesh primitives from main Primitive type
2023-06-29 07:48:03 +02:00
Héctor Ramón Jiménez
0ae1baa37b
Introduce custom backend-specific primitives
2023-06-29 07:18:20 +02:00
Héctor Ramón Jiménez
00859c25f5
Retain text measurements as long as original entries
2023-06-28 01:27:09 +02:00
Héctor Ramón Jiménez
975eebfc62
Retain measurements for text entries even if not directly used
2023-06-28 00:51:40 +02:00
Héctor Ramón Jiménez
c8d79a5cd9
Fix needless borrow in iced_wgpu and iced_tiny_skia
2023-06-28 00:45:41 +02:00
Héctor Ramón Jiménez
73dca5e323
Reuse entries in text::Cache in iced_tiny_skia
2023-06-28 00:44:23 +02:00
Héctor Ramón Jiménez
78ad365db2
Reuse entries in text::Cache in iced_wgpu
2023-06-28 00:35:37 +02:00
Héctor Ramón
c7332c1522
Merge pull request #1885 from bungoboingo/gradient-packing-optimization
...
Small gradient optimization
2023-06-27 22:10:17 +02:00
Héctor Ramón
f6966268bb
Merge pull request #1845 from bungoboingo/feat/offscreen-rendering
...
Feat: Offscreen Rendering & Screenshots
2023-06-27 20:37:19 +02:00
Héctor Ramón Jiménez
5b6e205e99
Simplify offscreen API as color module in iced_wgpu
2023-06-27 20:26:13 +02:00
Héctor Ramón Jiménez
ef87ff1e8a
Clear text caches after a font is loaded
2023-06-21 21:47:29 +02:00
Héctor Ramón Jiménez
5bc7cbf5bc
Use subpixel glyph positioning and layout linearity
...
... for offsetting and scaling text
2023-06-20 06:50:36 +02:00
Héctor Ramón Jiménez
0c65936664
Update glyphon and cosmic-text
2023-06-16 15:50:03 +02:00
Bingus
93673836cd
Fixed documentation
2023-06-14 11:45:29 -07:00
Bingus
d955b3444d
Replaced offscreen_blit.wgsl with existing blit.wgsl.
2023-06-14 11:10:09 -07:00
Bingus
af099fa6d7
Added in check for web-colors.
2023-06-08 10:29:38 -07:00
Bingus
05e238e9ed
Adjusted offscreen pass to be a render pass vs compute for compat with web-colors flag.
2023-06-08 10:10:26 -07:00
Bingus
677f564f08
Switched to packing using f16s to maintain acceptable precision.
2023-06-07 11:18:26 -07:00
Bingus
9554c78f3a
Updated color packing into u32 to consider incorrect web-colors.
2023-06-06 17:24:26 -07:00
Bingus
ea7f2626b1
Optimized gradient data packing.
2023-06-06 16:46:20 -07:00
Bingus
233196eb14
Added offscreen rendering support for wgpu & tiny-skia exposed with the window::screenshot command.
2023-06-06 15:37:30 +02:00
Héctor Ramón
c15f1b5f65
Merge pull request #1888 from iced-rs/web-colors
...
Introduce `web-colors` feature flag to enable "sRGB linear" blending
2023-06-03 03:04:38 +02: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
b5fc0f4a3a
Use consistent color strategy in glyphon
2023-06-01 03:10:02 +02:00
Héctor Ramón Jiménez
c528f2129e
Use proper gamma correction mode in image::Atlas::grow
2023-05-31 21:45:12 +02:00
Héctor Ramón Jiménez
f1b259a28f
Avoid gamma correction when web-colors is enabled for images
2023-05-31 21:42:39 +02:00
Héctor Ramón Jiménez
faa7627ea4
Introduce web-colors feature flag to enable sRGB linear blending
...
This is how browsers perform color management. They treat
gamma-corrected sRGB colors as if they were linear RGB.
Correctness aside, this mode is introduced for legacy reasons. Most
UI/UX tooling uses this color management as well, and many have created
an intuition about how color should behave from interacting with a
browser.
This feature flag should facilitate application development with `iced`
in those cases.
More details: https://webcolorisstillbroken.com/
2023-05-31 21:31:58 +02:00
Héctor Ramón Jiménez
c319f5113b
Move Pipeline struct definition after Layer in quad submodules
2023-05-30 01:35:06 +02:00