Commit graph

83 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
b6a0adf2d9
Clamp image border radius to clip_bounds dimensions
Fixes #3100.
2025-11-01 15:41:13 +01:00
Héctor Ramón Jiménez
e665afd9eb
Snap clip_bounds in image shader 2025-10-28 23:36:36 +01:00
Héctor Ramón Jiménez
704144728f
Discard fragments with out-of-bounds uv coordinates 2025-10-27 12:23:36 +01:00
Héctor Ramón Jiménez
3e8e088cdd
Calculate minimum bounding box in image vertex shader 2025-10-27 10:41:20 +01:00
Héctor Ramón Jiménez
22488c537c
Create worker module to contain all the feature flag chaos 2025-10-26 21:48:10 +01:00
Héctor Ramón Jiménez
44e68aa4b6
Add border radius support for image 2025-10-25 23:00:25 +02:00
Héctor Ramón Jiménez
f9a6a3051d
Remove Oklab gradient support 2025-08-23 21:13:54 +02:00
Héctor Ramón Jiménez
7d72b9135d
Remove alpha interpolation in oklab shader 2025-08-23 20:48:10 +02:00
Héctor Ramón Jiménez
567b7d9e9f
Add crisp feature for enabling default quad snapping 2025-05-30 00:30:23 +02:00
Daniel
74665d696d use single sdf for all corners 2025-05-29 22:16:33 +10:00
Héctor Ramón Jiménez
9d4e849a0e
Revert "Merge pull request #2962 from iced-rs/fix/blurry-quads"
This reverts commit 03326b955b, reversing
changes made to 7c5a4bc465.
2025-05-28 22:51:10 +02:00
Héctor Ramón Jiménez
15aa94c0f1
Try to align quad and image primitives in iced_wgpu 2025-05-26 23:59:15 +02:00
Héctor Ramón Jiménez
3aedbd5844
Snap quad primitives to the pixel grid (once again!)
Let's hope this approach handles common cases better.
2025-05-25 21:27:00 +02:00
Héctor Ramón Jiménez
098bd1b8a4
Use premultiplied colors in triangle pipelines 2025-05-12 18:41:34 +02:00
Héctor Ramón Jiménez
df37d6f9bc
Replace blend with mix equivalent in quad shaders 2025-05-12 18:11:51 +02:00
Héctor Ramón Jiménez
9ac4c9f13d
Define premultiply helper for quad shaders 2025-05-12 18:09:48 +02:00
Héctor Ramón Jiménez
469261e5a6
Replace mix calls with proper alpha blending in quad shaders 2025-05-12 18:09:48 +02:00
pml68
bf6c7d0094 fix: "BUFFER_BINDINGS_NOT_16_BYTE_ALIGNED not supported" error 2025-04-09 22:53:40 +02:00
Héctor Ramón
2eb1cc54ac
Merge pull request #2484 from vladh/fix-radii-typo
wgpu: Fix “radii” typo
2024-09-11 00:43:50 +02:00
Héctor Ramón Jiménez
0ceee1cf3a
Implement image support for canvas widget 2024-08-04 03:28:43 +02:00
Héctor Ramón Jiménez
3eed34fa6f
Snap Quad lines to the pixel grid in iced_wgpu 2024-07-29 21:26:03 +02:00
Vlad-Stefan Harbuz
5c2185f123 wgpu: fix "radii" typo 2024-06-29 17:20:38 +01:00
Héctor Ramón Jiménez
74a4ba65d6
Align images to the pixel grid in iced_wgpu
This should fix some graphical glitches, at the
expense of potential alignment issues with
small icons / images.
2024-05-12 13:44:13 +02:00
Héctor Ramón Jiménez
fa9e1d96ea
Introduce dynamic opacity support for Image and Svg 2024-05-03 13:25:58 +02:00
Héctor Ramón Jiménez
a57313b23e
Simplify image rotation API and its internals 2024-05-02 17:28:28 +02:00
Héctor Ramón Jiménez
09a6bcfffc
Add Image rotation support
Co-authored-by: DKolter <68352124+DKolter@users.noreply.github.com>
2024-05-02 17:27:45 +02:00
Héctor Ramón Jiménez
288f62bfb6
Share msaa::Blit texture between multiple windows 2024-04-07 18:45:48 +02:00
Daniel Yoon
8c401be207 Update solid.wgsl 2024-03-26 11:50:11 +11:00
rustrover
500ba962d1 fix some comments
Signed-off-by: rustrover <seekseat@126.com>
2024-03-09 15:26:37 +08:00
Héctor Ramón Jiménez
1c1667c3c9
Inline quad_pos and quad_scale definitions 2024-01-20 13:41:51 +01:00
Nick Senger
cc906c83cd
feat: quad shadows 2024-01-20 11:59:37 +01:00
Héctor Ramón Jiménez
0c7f6e4b34
Fix vertex.wgsl shader in iced_wgpu 2024-01-19 20:43:18 +01:00
Jim Eckerlein
41dec5bd20 Reassign attribute locations for image shader 2023-09-24 15:26:10 +02:00
Jim Eckerlein
5fb877ab59 Compute vertex position for image shader 2023-09-24 15:24:08 +02:00
Jim Eckerlein
e197abe0aa Move vertex position function into own file 2023-09-24 15:19:07 +02:00
Jim Eckerlein
bcc55e6036 Reassign attribute locations 2023-09-24 15:12:32 +02:00
Jim Eckerlein
3f467d1212 Compute vertex position in shader 2023-09-24 15:10:19 +02: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
Matthias Vogelgesang
181708a1c0
Compute gradients in Oklab color space 2023-09-07 07:45:42 +02:00
Héctor Ramón Jiménez
87800095e2
Remove unnecessary interpolate(flat) in quad.wgsl 2023-09-07 05:43:03 +02: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
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
6551a0b2ab
Added support for gradients as background variants + other optimizations. 2023-05-11 11:13:44 -07:00
Héctor Ramón Jiménez
4029a1cdaa
Merge branch 'master' into non-uniform-border-radius-for-quads 2022-12-02 18:53:21 +01:00
Héctor Ramón Jiménez
33c3c0c0aa
Group all solid triangles independently of color 2022-11-16 09:24:16 +01:00
Robert Krahn
c0596179bd non uniform border radius for quads 2022-11-03 22:48:26 +01:00
bungoboingo
c4565759e4 Cleaned up namespaces re: PR comments. 2022-10-18 15:18:37 -07:00
shan
f9a6efcaa0 Fixed some more imports/documentation. 2022-10-06 19:41:00 -07:00