Add text_multithreading to Settings in iced_glow and iced_wgpu

This commit is contained in:
Héctor Ramón Jiménez 2021-07-22 18:21:50 +07:00
parent 6469e463cd
commit 217f5be827
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
9 changed files with 31 additions and 16 deletions

View file

@ -24,7 +24,12 @@ pub struct Backend {
impl Backend {
/// Creates a new [`Backend`].
pub fn new(gl: &glow::Context, settings: Settings) -> Self {
let text_pipeline = text::Pipeline::new(gl, settings.default_font);
let text_pipeline = text::Pipeline::new(
gl,
settings.default_font,
settings.text_multithreading,
);
let quad_pipeline = quad::Pipeline::new(gl);
let triangle_pipeline = triangle::Pipeline::new(gl);