diff --git a/src/engine.rs b/src/engine.rs index 56b0d01b1..a1797f53e 100644 --- a/src/engine.rs +++ b/src/engine.rs @@ -94,8 +94,6 @@ pub enum BindType { // TODO: Uniform, Sampler, maybe others } -#[cfg(feature = "wgpu")] - impl Recording { pub fn push(&mut self, cmd: Command) { self.commands.push(cmd); diff --git a/src/shaders.rs b/src/shaders.rs index a7c84b7bc..b55f158c1 100644 --- a/src/shaders.rs +++ b/src/shaders.rs @@ -23,13 +23,14 @@ use std::collections::HashSet; #[cfg(feature = "wgpu")] use wgpu::Device; -#[cfg(feature = "wgpu")] use crate::{ cpu_shader, engine::{BindType, Error, ImageFormat, ShaderId}, - wgpu_engine::WgpuEngine, }; +#[cfg(feature = "wgpu")] +use crate::wgpu_engine::WgpuEngine; + macro_rules! shader { ($name:expr) => {&{ let shader = include_str!(concat!(