From abe2a6ceefcfffbea5708c1cbb29078759b32e49 Mon Sep 17 00:00:00 2001 From: Raph Levien Date: Tue, 23 Nov 2021 08:48:14 -0800 Subject: [PATCH] Fix tests to use bytemuck --- tests/src/runner.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/src/runner.rs b/tests/src/runner.rs index 7677c58..401f910 100644 --- a/tests/src/runner.rs +++ b/tests/src/runner.rs @@ -16,8 +16,9 @@ //! Test runner intended to make it easy to write tests. +use bytemuck::Pod; use piet_gpu_hal::{ - BackendType, Buffer, BufferUsage, CmdBuf, Instance, InstanceFlags, PlainData, QueryPool, + BackendType, Buffer, BufferUsage, CmdBuf, Instance, InstanceFlags, QueryPool, Session, }; @@ -137,7 +138,7 @@ impl Commands { } impl BufDown { - pub unsafe fn read(&self, dst: &mut Vec) { + pub unsafe fn read(&self, dst: &mut Vec) { self.stage_buf.read(dst).unwrap() } }