Timm Bäder
34e233e1c3
GskVulkanGlyphCache: Remove unused struct member
2017-12-01 07:30:25 +01:00
Matthias Clasen
a0bbd14325
gsk: Scale glyphs in the glyph cache
...
Pass a scale factor when caching glyphs or looking them
up in the cache. The glyphs in the cache are rendered
with subpixel precision determined by the scale. Update
all callers to pass a scale factor according to the window
scale. This lets us render crisp glyphs on hidpi systems.
2017-10-28 13:13:31 -04:00
Matthias Clasen
dbc0caf27d
vulkan: Batch uploads from the glyph cache
...
This uses the new api that was introduced in the previous
commit.
2017-09-21 13:45:01 -04:00
Matthias Clasen
b5eeb98374
Add simple aging for the glyph cache
...
This should prevent the cache from growing out of bounds.
2017-09-20 23:26:14 -04:00
Lionel Landwerlin
7d7f8e5f8e
gsk vulkan: Use new api in the glyph cache
...
Use the newly introduced gsk_vulkan_image_new_for_atlas.
2017-09-20 23:26:14 -04:00
Matthias Clasen
b321b26a73
glyph cache: Upload glyphs incrementally
...
This does not work yet.
2017-09-20 23:26:14 -04:00
Matthias Clasen
7bbd4d41e0
vulkan: pass the context when creating a glyph cache
2017-09-20 23:26:14 -04:00
Matthias Clasen
6dbec5e4fc
Add some debug output for the glyph cache
...
Print out some statistics and dump the glyph caches to a png,
for now.
2017-09-20 23:26:14 -04:00
Matthias Clasen
baeff2a49b
Make the glyph cache grow as needed
...
Make it possible to have more than one texture in the
glyph cache, and create new ones when we run out of space
in the existing ones.
2017-09-20 23:26:14 -04:00
Matthias Clasen
cead00757d
vulkan: Move glyph cache to a separate file
...
Otherwise things will get too messy.
2017-09-20 23:26:14 -04:00