Commit graph

17 commits

Author SHA1 Message Date
2ff4bfbbf3
Transparency for emojis 2024-10-16 10:50:13 -06:00
Pēteris Pakalns
0fdbd90c55
Simplify rendering pipeline, reduce gpu memory usage, remove duplicated data (#86) 2024-05-26 22:52:30 -02:30
Héctor Ramón
5aed9e1477
Support sharing Pipeline state between TextAtlas (#95)
* Support sharing `Pipeline` state between `TextAtlas`

* Keep using `Vec` for pipeline cache

* Use `OnceCell` to keep `Pipeline` private

* Revert "Use `OnceCell` to keep `Pipeline` private"

This reverts commit 4112732b1734a3bb6b915d2103e699ef549b77c1.

* Rename `Pipeline` type to `Cache`
2024-05-08 11:09:19 -02:30
Pēteris Pakalns
f95e66f612
Support multi viewport rendering with reusable text atlas (#88) 2024-03-25 21:55:57 -02:30
grovesNL
bfb07147cd Don't convert web text colors to linear 2024-01-15 21:32:22 -03:30
grovesNL
ce394f9d53 Internally convert text colors to linear 2024-01-15 13:05:48 -03:30
c-u
3c9f7c4eb1
Add Interpolation attribute for the VertexOutput and add Error trait implementation for RenderError (#49)
* impl trait Error for RenderError

* fix shader for usage in web
2023-08-06 13:07:42 -02:30
Héctor Ramón Jiménez
80e8465af6 Update wgpu to 0.16 2023-05-03 13:29:20 -02:30
grovesNL
c25f394c16 Allow depth to be attached to text using metadata 2023-02-15 07:54:31 -03:30
grovesNL
e0998be181 Only multiply alpha 2023-01-29 22:11:54 -03:30
Joshua Groves
3a0e965675 Split color and mask atlases apart 2023-01-29 22:11:54 -03:30
grovesNL
84fb66e27e Use color packing from cosmic 2023-01-29 22:11:54 -03:30
grovesNL
cb68955045 Use 4 channel atlas for emojis 2023-01-29 22:11:54 -03:30
grovesNL
2a01a1b2e0 Handle negative glyph positions correctly 2022-11-29 14:33:12 -03:30
grovesNL
045515c558 Pad Params in shader 2022-07-13 12:46:57 -02:30
grovesNL
195374c716 Pack attributes slightly 2022-05-09 11:52:38 -02:30
grovesNL
f5648e0f94 Initial commit 2022-05-09 10:19:10 -02:30