Add present_mode field to iced_wgpu::Settings

This commit is contained in:
Héctor Ramón Jiménez 2020-11-23 00:00:13 +01:00
parent ea1a7248d2
commit 0f00d14297
2 changed files with 7 additions and 1 deletions

View file

@ -111,9 +111,9 @@ impl iced_graphics::window::Compositor for Compositor {
&wgpu::SwapChainDescriptor {
usage: wgpu::TextureUsage::OUTPUT_ATTACHMENT,
format: self.settings.format,
present_mode: self.settings.present_mode,
width,
height,
present_mode: wgpu::PresentMode::Mailbox,
},
)
}