summaryrefslogtreecommitdiffstats
path: root/wgpu/src
diff options
context:
space:
mode:
authorLibravatar Poly <marynczak.bartlomiej@gmail.com>2021-10-13 19:40:29 +0200
committerLibravatar Poly <marynczak.bartlomiej@gmail.com>2021-10-13 19:40:32 +0200
commit65f690b07559a36fe8bfcba31edd851c5c286704 (patch)
tree76479eb8675daa9ae4ce1c2b31d606c99ec5fe29 /wgpu/src
parent3aae45c1913e6a6f60b009f19d00d10add7ad11e (diff)
downloadiced-65f690b07559a36fe8bfcba31edd851c5c286704.tar.gz
iced-65f690b07559a36fe8bfcba31edd851c5c286704.tar.bz2
iced-65f690b07559a36fe8bfcba31edd851c5c286704.zip
Update wgpu to 0.11
Diffstat (limited to 'wgpu/src')
-rw-r--r--wgpu/src/window/compositor.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/wgpu/src/window/compositor.rs b/wgpu/src/window/compositor.rs
index eca54b6f..bd8e1f89 100644
--- a/wgpu/src/window/compositor.rs
+++ b/wgpu/src/window/compositor.rs
@@ -40,6 +40,7 @@ impl Compositor {
wgpu::PowerPreference::HighPerformance
},
compatible_surface: compatible_surface.as_ref(),
+ force_fallback_adapter: false,
})
.await?;
@@ -141,7 +142,7 @@ impl iced_graphics::window::Compositor for Compositor {
output: &<Self::Renderer as iced_native::Renderer>::Output,
overlay: &[T],
) -> Result<mouse::Interaction, iced_graphics::window::SurfaceError> {
- match surface.get_current_frame() {
+ match surface.get_current_texture() {
Ok(frame) => {
let mut encoder = self.device.create_command_encoder(
&wgpu::CommandEncoderDescriptor {
@@ -150,7 +151,6 @@ impl iced_graphics::window::Compositor for Compositor {
);
let view = &frame
- .output
.texture
.create_view(&wgpu::TextureViewDescriptor::default());
@@ -193,6 +193,7 @@ impl iced_graphics::window::Compositor for Compositor {
// Submit work
self.staging_belt.finish();
self.queue.submit(Some(encoder.finish()));
+ frame.present();
// Recall staging buffers
self.local_pool