From 180e72ddbd21c20e7bafd916bdd67ab9c7e17f4c Mon Sep 17 00:00:00 2001 From: Raph Levien Date: Mon, 2 Oct 2023 11:29:24 -0700 Subject: [PATCH] Fix broken compile with wgpu feature disabled --- src/engine.rs | 2 -- src/shaders.rs | 5 +++-- 2 files changed, 3 insertions(+), 4 deletions(-) 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!(