diff options
author | 2021-07-22 18:39:37 +0700 | |
---|---|---|
committer | 2021-07-22 18:39:37 +0700 | |
commit | a2b1ba522a8b90a2e539fff5936c798efc3f3807 (patch) | |
tree | 13bbbfb3ee9255e2e4ec9903ae893fbeda6b087f /wgpu/src/settings.rs | |
parent | 82488de3ab2be3ad0b556ae5ccb754a989132dca (diff) | |
parent | 357a8a95c9820651110fe4d80d8d33a2678827c0 (diff) | |
download | iced-a2b1ba522a8b90a2e539fff5936c798efc3f3807.tar.gz iced-a2b1ba522a8b90a2e539fff5936c798efc3f3807.tar.bz2 iced-a2b1ba522a8b90a2e539fff5936c798efc3f3807.zip |
Merge pull request #914 from yusdacra/feat/expose_draw_cache_multithread
feat: expose draw_cache_multithread as a feature
Diffstat (limited to 'wgpu/src/settings.rs')
-rw-r--r-- | wgpu/src/settings.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wgpu/src/settings.rs b/wgpu/src/settings.rs index 6c97d895..9a7eed34 100644 --- a/wgpu/src/settings.rs +++ b/wgpu/src/settings.rs @@ -29,7 +29,15 @@ 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. + /// + /// By default, it is disabled. + pub text_multithreading: bool, + /// The antialiasing strategy that will be used for triangle primitives. + /// + /// By default, it is `None`. pub antialiasing: Option<Antialiasing>, } @@ -65,6 +73,7 @@ impl Default for Settings { internal_backend: wgpu::BackendBit::PRIMARY, default_font: None, default_text_size: 20, + text_multithreading: false, antialiasing: None, } } |