vulkan: Add a primitive glyph cache

Desktop / GNOME / GTK - Matthias Clasen [redhat.com] - 10 September 2017 21:56 EDT

This is just a proof of concept - we use a single 1024x1024 surface, and just give up when we run out of space. The cache is populated incrementally, and items are never removed.

47cf17c vulkan: Add a primitive glyph cache
gsk/gskvulkancolortextpipeline.c | 28 ++-
gsk/gskvulkanrenderer.c | 363 +++++++++++++++++++++++++++++----------
gsk/gskvulkanrendererprivate.h | 19 +-
gsk/gskvulkanrenderpass.c | 4 +
gsk/gskvulkantextpipeline.c | 28 ++-
5 files changed, 305 insertions(+), 137 deletions(-)

Upstream: git.gnome.org


  • Share