summaryrefslogtreecommitdiffstats
path: root/wgpu/src/settings.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-07-22 18:21:50 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-07-22 18:21:50 +0700
commit217f5be8272f48a5b043d066ed1788cc127e1164 (patch)
treeef09f2324d8d44d52938d34d8d007ff1bf681721 /wgpu/src/settings.rs
parent6469e463cd1f99190c6eba4701d4c1059934d3ee (diff)
downloadiced-217f5be8272f48a5b043d066ed1788cc127e1164.tar.gz
iced-217f5be8272f48a5b043d066ed1788cc127e1164.tar.bz2
iced-217f5be8272f48a5b043d066ed1788cc127e1164.zip
Add `text_multithreading` to `Settings` in `iced_glow` and `iced_wgpu`
Diffstat (limited to 'wgpu/src/settings.rs')
-rw-r--r--wgpu/src/settings.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/wgpu/src/settings.rs b/wgpu/src/settings.rs
index 6c97d895..b490e54e 100644
--- a/wgpu/src/settings.rs
+++ b/wgpu/src/settings.rs
@@ -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,
}
}