diff options
author | 2020-02-15 10:08:27 +0100 | |
---|---|---|
committer | 2020-02-15 10:08:27 +0100 | |
commit | dadae122533ae0916bebd04d6efab3de145263d4 (patch) | |
tree | d0fda3d65fe0e842e97547ba4b18c398ce45ab25 /src/settings.rs | |
parent | 4969bfdb66cf2b33033cb642423bc326e288e15b (diff) | |
download | iced-dadae122533ae0916bebd04d6efab3de145263d4.tar.gz iced-dadae122533ae0916bebd04d6efab3de145263d4.tar.bz2 iced-dadae122533ae0916bebd04d6efab3de145263d4.zip |
Implement MSAA for `triangle` pipeline in `iced_wgpu`
Diffstat (limited to 'src/settings.rs')
-rw-r--r-- | src/settings.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/settings.rs b/src/settings.rs index 77c7e0b9..f70e577f 100644 --- a/src/settings.rs +++ b/src/settings.rs @@ -16,6 +16,15 @@ pub struct Settings { /// If `None` is provided, a default system font will be chosen. // TODO: Add `name` for web compatibility pub default_font: Option<&'static [u8]>, + + /// If set to true, the renderer will try to use antialiasing for some + /// primitives. + /// + /// Enabling it can produce a smoother result in some widgets, like the + /// `Canvas`, at a performance cost. + /// + /// By default, it is disabled. + pub antialiasing: bool, } #[cfg(not(target_arch = "wasm32"))] |