Update bytemuck and remove zerocopy in iced_wgpu
This commit is contained in:
parent
b86accfe1c
commit
9d4f664c94
5 changed files with 28 additions and 28 deletions
|
|
@ -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,
|
||||
)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue