Update wgpu to 0.5 in iced_wgpu 🎉
This commit is contained in:
parent
703beae05e
commit
d807ef367e
12 changed files with 313 additions and 268 deletions
|
|
@ -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,
|
||||
)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue