Chris Cochrun
da3b02cf8a
adding together a jump-flood algorithm for rendering outlines
Format / all (push) Waiting to run
Lint / all (push) Waiting to run
Test / all (macOS-latest, beta) (push) Waiting to run
Test / all (macOS-latest, stable) (push) Waiting to run
Test / all (ubuntu-latest, beta) (push) Waiting to run
Test / all (ubuntu-latest, stable) (push) Waiting to run
Test / all (windows-latest, beta) (push) Waiting to run
Test / all (windows-latest, stable) (push) Waiting to run
2025-07-10 10:03:03 -05:00
Chris Cochrun
84de74e7c2
idk
2025-07-09 06:04:05 -05:00
Héctor Ramón Jiménez
a456d1c17b
Update cosmic-text
to 0.14
2025-04-09 18:31:38 +02:00
Billy Messenger
6b566c5eb1
update example to use winit 0.30 ( #105 )
...
* update example to use winit 0.30
* omit unneeded field in example
2025-03-09 00:50:23 +01:00
Josh Groves
71c9940f91
Use default limits for example ( #98 )
2025-03-09 00:24:30 +01:00
Matheus Rangel
a6ddf89014
upgrade to wgpu 24
2025-03-09 00:18:21 +01:00
Héctor Ramón Jiménez
3c455a9475
Rename to cryoglyph
2025-03-09 00:02:29 +01:00
Héctor Ramón Jiménez
0d7ba1bba4
Update wgpu
to 22.0
2024-07-19 19:02:10 +02:00
Billy Messenger
feef9f5630
update to cosmic-text 0.12 and rustc-hash 2.0 ( #104 )
2024-07-17 12:04:44 +02:00
Héctor Ramón Jiménez
f07e7bab70
Revert "Bump cosmic text to 0.11 ( #89 )"
...
This reverts commit c16b6eb957
.
2024-05-08 19:30:16 +02:00
Héctor Ramón Jiménez
0a688982e9
Revert "update to wgpu 0.20.0 ( #93 )"
...
This reverts commit 670140e2a1
.
2024-05-08 19:25:00 +02:00
Héctor Ramón Jiménez
c69090f74b
Use a StagingBelt
for regular buffer uploads
...
`Queue::write_buffer` allocates very regularly. A
`StagingBelt` gives us much more control.
2024-05-08 19:20:56 +02:00
Héctor Ramón
b411ea71e7
Introduce explicit Viewport
sharing ( #96 )
2024-05-08 11:47:58 -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
EggShark
670140e2a1
update to wgpu 0.20.0 ( #93 )
2024-04-29 13:01:15 -02:30
Xavier Lambein
c16b6eb957
Bump cosmic text to 0.11 ( #89 )
...
Co-authored-by: Xavier Lambein <xavier@lambein.xyz>
2024-03-25 21:56:37 -02:30
TheEggShark
65825aa0d4
update to wgpu 0.19.0
2024-01-17 20:25:33 -03:30
grovesNL
c2469de817
Update winit
2024-01-15 16:04:27 -03:30
Héctor Ramón Jiménez
2caa9fc5e5
Update wgpu
to 0.18
2023-10-26 22:52:50 -02:30
Héctor Ramón Jiménez
81dedbd042
Implement subpixel glyph positioning and scaling
...
The latest `cosmic-text` release performs bucketing calculations after
layouting. This allows us to provide proper subpixel offsets, as well as
scale any buffer thanks to its linear layout properties.
See https://github.com/pop-os/cosmic-text/pull/143 .
2023-07-11 00:18:25 -02:30
Héctor Ramón Jiménez
595e09a497
Take an IntoIterator
instead of Iterator
in prepare
methods
2023-07-10 15:25:47 -02:30
Héctor Ramón Jiménez
0857bef584
Take an Iterator
of TextArea
in prepare
2023-07-10 15:25:47 -02:30
Héctor Ramón Jiménez
a74ce29c1a
Implement growing logic for TextAtlas
...
The `TextAtlas` will have an initial size of `256` (we could make this
configurable) and `try_allocate` will keep track of the glyphs in use
in the current frame, returning `None` when the LRU glyph is in use.
In that case, `TextRenderer::prepare` will return
`PrepareError::AtlasFull` with the `ContentType` of the atlas that is
full. The user of the library can then call `TextAtlas::grow` with the
provided `ContentType` to obtain a bigger atlas (by `256`).
A `TextAtlas::grow` call clears the whole atlas and, as a result, all of
the `prepare` calls need to be repeated in a frame until they all
succeed. Overall, the atlas will rarely need to grow and so the calls
will not need to be repated often.
Finally, the user needs to call `TextAtlas::trim` at the end of the
frame. This allows us to clear the glyphs in use collection in the atlas. Maybe
there is a better way to model this in an API that forces the user to
trim the atlas (e.g. make `trim` return a new type and changing `prepare` and `render` to take that type instead).
2023-07-04 14:54:05 -02:30
Héctor Ramón Jiménez
ddaaae295c
Update wgpu
to 0.15
2023-04-08 12:43:37 -02:30
Héctor Ramón Jiménez
e457bca108
Use Srgb
texture format for TextAtlas
2023-03-27 23:03:55 -02:30
Héctor Ramón Jiménez
2af2f357c5
Update cosmic-text
to latest
2023-03-27 23:02:28 -02:30
Héctor Ramón Jiménez
1f31586c55
Set default_color
per TextArea
2023-02-26 23:30:30 -03:30
grovesNL
74e9aa37a1
Set renderer multisample and depth-stencil state
2023-02-15 07:54:31 -03:30
grovesNL
288cd89cf8
Simplify re-exports paths
2023-01-29 22:11:54 -03:30
grovesNL
07b04f511a
Update example to show emojis and clipping
2023-01-29 22:11:54 -03:30
grovesNL
8c8cfba093
Add clipping back
2023-01-29 22:11:54 -03:30
grovesNL
ba52cbdba6
Buffer doesn't need to be mutable anymore
2023-01-29 22:11:54 -03:30
Joshua Groves
6cf10bba8d
Fix alpha blending for emojis
2023-01-29 22:11:54 -03:30
Joshua Groves
609814de6b
Use Fifo
for example
2023-01-29 22:11:54 -03:30
grovesNL
8a1153039e
Update to latest cosmic
2023-01-29 22:11:54 -03:30
grovesNL
4c1a83548e
Use default font color and remove Color
2023-01-29 22:11:54 -03:30
grovesNL
14499e4659
Remove HasColor
2023-01-29 22:11:54 -03:30
grovesNL
56bf0d759f
Update to latest cosmic-text
2023-01-29 22:11:54 -03:30
grovesNL
981a7d1682
Handle initial window scale factor
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
47fa03d079
Allow negative offsets
2023-01-29 22:11:54 -03:30
grovesNL
dcdb250e19
Use arabic.txt example and get_image_uncached
2023-01-29 22:11:54 -03:30
grovesNL
7fe35bdce3
Update to latest cosmic-text
2023-01-29 22:11:54 -03:30
grovesNL
75fc8f978f
Start cosmic-text implementation
2023-01-29 22:11:54 -03:30
grovesNL
36fd030ecf
Update to wgpu 0.14
2022-10-18 13:02:31 -02:30
grovesNL
afab881559
Handle text overflow
...
Cull glyphs fully outside the bounds, and clip glyphs intersecting the
bounds. This is all done on the CPU for now.
Fixes #2
2022-10-18 12:52:00 -02:30
grovesNL
3c7789cd3b
Update to wgpu 0.13
2022-07-13 09:43:10 -02:30
grovesNL
73b2562179
Accept atlas in prepare
and render
2022-06-03 00:52:35 -02:30
grovesNL
4b4594492a
Share text atlas between renderers
2022-05-17 22:15:11 -02:30
grovesNL
781bed2c42
Use oversized buffers
2022-05-10 08:48:28 -02:30