Update wgpu to 0.5 in iced_wgpu 🎉

This commit is contained in:
Héctor Ramón Jiménez 2020-04-07 05:48:21 +02:00
parent 703beae05e
commit d807ef367e
12 changed files with 313 additions and 268 deletions

View file

@ -2,6 +2,8 @@ use crate::image::atlas::{self, Atlas};
use iced_native::svg;
use std::collections::{HashMap, HashSet};
use zerocopy::AsBytes;
pub enum Svg {
Loaded(resvg::usvg::Tree),
NotFound,
@ -117,7 +119,7 @@ impl Cache {
let allocation = texture_atlas.upload(
width,
height,
canvas.get_data(),
canvas.get_data().as_bytes(),
device,
encoder,
)?;