Update bytemuck and remove zerocopy in iced_wgpu

This commit is contained in:
Héctor Ramón Jiménez 2020-11-10 20:06:24 +01:00
parent b86accfe1c
commit 9d4f664c94
5 changed files with 28 additions and 28 deletions

View file

@ -2,8 +2,6 @@ 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,
@ -119,7 +117,7 @@ impl Cache {
let allocation = texture_atlas.upload(
width,
height,
canvas.get_data().as_bytes(),
bytemuck::cast_slice(canvas.get_data()),
device,
encoder,
)?;