diff options
author | 2020-11-23 00:00:13 +0100 | |
---|---|---|
committer | 2020-11-23 00:00:13 +0100 | |
commit | 0f00d1429793fc8547e843af67c96fe10d7ba637 (patch) | |
tree | 4712f5a175a547333766d1df8672a90779879084 /wgpu/src/settings.rs | |
parent | ea1a7248d257c7c9e4a1f3989e68b58a6bc0c4ff (diff) | |
download | iced-0f00d1429793fc8547e843af67c96fe10d7ba637.tar.gz iced-0f00d1429793fc8547e843af67c96fe10d7ba637.tar.bz2 iced-0f00d1429793fc8547e843af67c96fe10d7ba637.zip |
Add `present_mode` field to `iced_wgpu::Settings`
Diffstat (limited to 'wgpu/src/settings.rs')
-rw-r--r-- | wgpu/src/settings.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wgpu/src/settings.rs b/wgpu/src/settings.rs index bc146c4c..07a180bb 100644 --- a/wgpu/src/settings.rs +++ b/wgpu/src/settings.rs @@ -11,6 +11,11 @@ pub struct Settings { /// [`Renderer`]: ../struct.Renderer.html pub format: wgpu::TextureFormat, + /// The present mode of the [`Renderer`]. + /// + /// [`Renderer`]: ../struct.Renderer.html + pub present_mode: wgpu::PresentMode, + /// The bytes of the font that will be used by default. /// /// If `None` is provided, a default system font will be chosen. @@ -29,6 +34,7 @@ impl Default for Settings { fn default() -> Settings { Settings { format: wgpu::TextureFormat::Bgra8UnormSrgb, + present_mode: wgpu::PresentMode::Mailbox, default_font: None, default_text_size: 20, antialiasing: None, |