diff options
author | 2020-11-10 20:06:24 +0100 | |
---|---|---|
committer | 2020-11-10 20:06:24 +0100 | |
commit | 9d4f664c946e6475eaf2e8719ba56beee84a8fb8 (patch) | |
tree | f76ca213383363b60988a9f92078b7dbf14a6fa1 /wgpu/src/image | |
parent | b86accfe1cdc0a4404416eb3c68aa3cf9c242f6a (diff) | |
download | iced-9d4f664c946e6475eaf2e8719ba56beee84a8fb8.tar.gz iced-9d4f664c946e6475eaf2e8719ba56beee84a8fb8.tar.bz2 iced-9d4f664c946e6475eaf2e8719ba56beee84a8fb8.zip |
Update `bytemuck` and remove `zerocopy` in `iced_wgpu`
Diffstat (limited to 'wgpu/src/image')
-rw-r--r-- | wgpu/src/image/vector.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/wgpu/src/image/vector.rs b/wgpu/src/image/vector.rs index 7648aa7e..95df2e99 100644 --- a/wgpu/src/image/vector.rs +++ b/wgpu/src/image/vector.rs @@ -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, )?; |