diff options
author | 2020-04-16 04:59:56 +0200 | |
---|---|---|
committer | 2020-04-16 04:59:56 +0200 | |
commit | 99e020c7b5b56d5407e255cdd4258d658e9c5865 (patch) | |
tree | f9e9df4074179ae4c624e81c53051589d1160a60 /wgpu/src/image/vector.rs | |
parent | 4808fcbd7eb29315e66c660a21a18aa6305739b6 (diff) | |
parent | 2fce83b205d533c34dd1ef8f2e5018bd4ff6c920 (diff) | |
download | iced-99e020c7b5b56d5407e255cdd4258d658e9c5865.tar.gz iced-99e020c7b5b56d5407e255cdd4258d658e9c5865.tar.bz2 iced-99e020c7b5b56d5407e255cdd4258d658e9c5865.zip |
Merge pull request #269 from hecrj/update-wgpu
Update `wgpu` to `0.5` in `iced_wgpu`
Diffstat (limited to 'wgpu/src/image/vector.rs')
-rw-r--r-- | wgpu/src/image/vector.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/wgpu/src/image/vector.rs b/wgpu/src/image/vector.rs index b6776827..7648aa7e 100644 --- a/wgpu/src/image/vector.rs +++ b/wgpu/src/image/vector.rs @@ -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, )?; |