Fix tests to use bytemuck

This commit is contained in:
Raph Levien 2021-11-23 08:48:14 -08:00
parent 2ebdd942cf
commit abe2a6ceef

View file

@ -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()
} }
} }