Commit graph

65 commits

Author SHA1 Message Date
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
shan
cb7c467654 Fixed lint issues & cleaned up some documentation. 2022-10-06 07:28:05 -07:00
shan
f7ce7244d0 Adjusted gradient uniforms to be more tightly packed. 2022-10-05 11:32:59 -07:00
shan
40f45d7b7e Adds linear gradient support to 2D meshes in the canvas widget. 2022-09-29 11:15:35 -07:00
Cupnfish
390e2a2d34 better wgsl code style 2022-07-02 22:51:51 +08:00
Cupnfish
a88155b2a2 fix wgsl syntax 2022-07-02 22:29:49 +08:00
Cupnfish
c148557cab update wgpu to 0.13 2022-07-02 15:39:42 +08:00
Poly
23ef0143ed
Update wgpu 0.12 2022-01-04 16:15:44 +07:00
Paul Delafosse
3a723f6ec1 Fix blit shader constants visivility #1083 2021-10-15 12:20:46 +02:00
Dispersia
0772310c4f Fix duplicating fragment position 2021-05-20 23:10:22 -07:00
Dispersia
983aa1b366 Run cargo fmt 2021-04-12 23:23:47 -07:00
Dispersia
0722d5e3ec add temporary fix for image wgsl 2021-04-12 23:07:58 -07:00
Dispersia
9a2c78c405 Upgrade wgpu 2021-04-11 18:55:57 -07:00
Héctor Ramón Jiménez
1916755b6b Limit border radius to max dimension in quad pipeline 2020-11-23 00:43:59 +01:00
Héctor Ramón Jiménez
7f9813d4b3 Revert "Merge pull request #362 from hecrj/fix/target-quad-pixels"
This reverts commit 40501f630d, reversing
changes made to 5324eb1024.
2020-05-28 22:44:52 +02:00
Héctor Ramón Jiménez
fbe3aa3cf4 Align quads to physical pixels in iced_wgpu 2020-05-27 00:23:42 +02:00
Héctor Ramón Jiménez
b44f14e186 Fix MSAA blit vertex shader to match wgpu NDC 2020-04-16 14:54:29 +02:00
Héctor Ramón Jiménez
c58d94f3fd Avoid creating a vertex buffer every frame 2020-02-26 12:55:04 +01:00
Héctor Ramón Jiménez
82f0a49062 Recompile image shaders 2020-02-25 13:27:43 +01:00