Skip to content

Commit

Permalink
Fix broken compile with wgpu feature disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
raphlinus committed Oct 2, 2023
1 parent bdc15c6 commit 180e72d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 3 additions & 2 deletions src/shaders.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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!(
Expand Down

0 comments on commit 180e72d

Please sign in to comment.