diff options
author | 2020-08-27 13:03:42 +0200 | |
---|---|---|
committer | 2020-08-27 13:03:42 +0200 | |
commit | 67d90e394678eba94975a19ef51821135373b634 (patch) | |
tree | 2942673d88045b44204b3b5a0e55412d76b8c3f9 /wgpu/src/backend.rs | |
parent | fb015a85d22a7c4632bd251127a89259bfd0c346 (diff) | |
download | iced-67d90e394678eba94975a19ef51821135373b634.tar.gz iced-67d90e394678eba94975a19ef51821135373b634.tar.bz2 iced-67d90e394678eba94975a19ef51821135373b634.zip |
Update `wgpu` to `0.6` in `iced_wgpu`
Diffstat (limited to 'wgpu/src/backend.rs')
-rw-r--r-- | wgpu/src/backend.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/wgpu/src/backend.rs b/wgpu/src/backend.rs index c71a6a77..80c982d7 100644 --- a/wgpu/src/backend.rs +++ b/wgpu/src/backend.rs @@ -64,6 +64,7 @@ impl Backend { pub fn draw<T: AsRef<str>>( &mut self, device: &wgpu::Device, + staging_belt: &mut wgpu::util::StagingBelt, encoder: &mut wgpu::CommandEncoder, frame: &wgpu::TextureView, viewport: &Viewport, @@ -85,6 +86,7 @@ impl Backend { scale_factor, transformation, &layer, + staging_belt, encoder, &frame, target_size.width, @@ -104,6 +106,7 @@ impl Backend { scale_factor: f32, transformation: Transformation, layer: &Layer<'_>, + staging_belt: &mut wgpu::util::StagingBelt, encoder: &mut wgpu::CommandEncoder, target: &wgpu::TextureView, target_width: u32, @@ -114,6 +117,7 @@ impl Backend { if !layer.quads.is_empty() { self.quad_pipeline.draw( device, + staging_belt, encoder, &layer.quads, transformation, @@ -129,6 +133,7 @@ impl Backend { self.triangle_pipeline.draw( device, + staging_belt, encoder, target, target_width, @@ -225,6 +230,7 @@ impl Backend { self.text_pipeline.draw_queued( device, + staging_belt, encoder, target, transformation, |