Add text_multithreading to Settings in iced_glow and iced_wgpu
This commit is contained in:
parent
6469e463cd
commit
217f5be827
9 changed files with 31 additions and 16 deletions
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue