mirror of
https://github.com/italicsjenga/vello.git
synced 2025-01-10 12:41:30 +11:00
Fix tests to use bytemuck
This commit is contained in:
parent
2ebdd942cf
commit
abe2a6ceef
|
@ -16,8 +16,9 @@
|
||||||
|
|
||||||
//! Test runner intended to make it easy to write tests.
|
//! Test runner intended to make it easy to write tests.
|
||||||
|
|
||||||
|
use bytemuck::Pod;
|
||||||
use piet_gpu_hal::{
|
use piet_gpu_hal::{
|
||||||
BackendType, Buffer, BufferUsage, CmdBuf, Instance, InstanceFlags, PlainData, QueryPool,
|
BackendType, Buffer, BufferUsage, CmdBuf, Instance, InstanceFlags, QueryPool,
|
||||||
Session,
|
Session,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -137,7 +138,7 @@ impl Commands {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl BufDown {
|
impl BufDown {
|
||||||
pub unsafe fn read(&self, dst: &mut Vec<impl PlainData>) {
|
pub unsafe fn read(&self, dst: &mut Vec<impl Pod>) {
|
||||||
self.stage_buf.read(dst).unwrap()
|
self.stage_buf.read(dst).unwrap()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue