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

@ -29,6 +29,10 @@ pub struct Settings {
/// By default, it will be set to 20.
pub default_text_size: u16,
/// If enabled, spread text workload in multiple threads when multiple cores
/// are available.
pub text_multithreading: bool,
/// The antialiasing strategy that will be used for triangle primitives.
pub antialiasing: Option<Antialiasing>,
}
@ -65,6 +69,7 @@ impl Default for Settings {
internal_backend: wgpu::BackendBit::PRIMARY,
default_font: None,
default_text_size: 20,
text_multithreading: false,
antialiasing: None,
}
}