diff --git a/src/framework.rs b/src/framework.rs index cdd8906..2a0d524 100644 --- a/src/framework.rs +++ b/src/framework.rs @@ -1,22 +1,8 @@ use winit::{ - event::{self, WindowEvent, DeviceEvent}, + event::{self, WindowEvent}, event_loop::{ControlFlow, EventLoop}, }; -#[allow(dead_code)] -pub fn cast_slice(data: &[T]) -> &[u8] { - use std::{mem::size_of, slice::from_raw_parts}; - - unsafe { from_raw_parts(data.as_ptr() as *const u8, data.len() * size_of::()) } -} - -#[allow(dead_code)] -pub enum ShaderStage { - Vertex, - Fragment, - Compute, -} - pub trait Example: 'static + Sized { fn optional_features() -> wgpu::Features { wgpu::Features::empty()