Use a StagingBelt in iced_wgpu for regular buffer uploads
This commit is contained in:
parent
1df1cf82f4
commit
2bb53ad6e7
10 changed files with 113 additions and 41 deletions
|
|
@ -53,6 +53,7 @@ impl Pipeline {
|
|||
&mut self,
|
||||
device: &wgpu::Device,
|
||||
queue: &wgpu::Queue,
|
||||
encoder: &mut wgpu::CommandEncoder,
|
||||
sections: &[Text<'_>],
|
||||
layer_bounds: Rectangle,
|
||||
scale_factor: f32,
|
||||
|
|
@ -262,6 +263,7 @@ impl Pipeline {
|
|||
let result = renderer.prepare(
|
||||
device,
|
||||
queue,
|
||||
encoder,
|
||||
font_system,
|
||||
&mut self.atlas,
|
||||
glyphon::Resolution {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue