feat: expose draw_cache_multithread

This commit is contained in:
Yusuf Bera Ertan 2021-06-14 18:06:28 +03:00
parent e68da229b3
commit 6469e463cd
No known key found for this signature in database
GPG key ID: 1D8F8FAF2294D6EA
5 changed files with 12 additions and 2 deletions

View file

@ -46,7 +46,9 @@ impl Pipeline {
let draw_brush =
wgpu_glyph::GlyphBrushBuilder::using_font(font.clone())
.initial_cache_size((2048, 2048))
.draw_cache_multithread(false) // TODO: Expose as a configuration flag
.draw_cache_multithread(cfg!(
feature = "glyph_draw_cache_multithread"
))
.build(device, format);
let measure_brush =