summaryrefslogtreecommitdiffstats
path: root/wgpu/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-02-28 14:38:42 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-02-28 14:38:42 +0100
commit4e7159c22c6be90f61aa715d5eb6811f805cb597 (patch)
tree77faf86bc65142d3c224b240a0c5922b7f4f9025 /wgpu/src/lib.rs
parentfc55e3a3df9e08d361985b01528d2a6095d98aba (diff)
downloadiced-4e7159c22c6be90f61aa715d5eb6811f805cb597.tar.gz
iced-4e7159c22c6be90f61aa715d5eb6811f805cb597.tar.bz2
iced-4e7159c22c6be90f61aa715d5eb6811f805cb597.zip
Stop creating image pipeline when unnecessary
Diffstat (limited to 'wgpu/src/lib.rs')
-rw-r--r--wgpu/src/lib.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/wgpu/src/lib.rs b/wgpu/src/lib.rs
index a807b44d..1d63abbf 100644
--- a/wgpu/src/lib.rs
+++ b/wgpu/src/lib.rs
@@ -30,13 +30,11 @@ pub mod triangle;
pub mod widget;
pub mod window;
-mod image;
mod primitive;
mod quad;
mod renderer;
mod target;
mod text;
-mod texture;
mod transformation;
mod viewport;
@@ -52,6 +50,11 @@ pub use viewport::Viewport;
#[doc(no_inline)]
pub use widget::*;
-pub(crate) use self::image::Image;
pub(crate) use quad::Quad;
pub(crate) use transformation::Transformation;
+
+#[cfg(any(feature = "image", feature = "svg"))]
+mod image;
+
+#[cfg(any(feature = "image", feature = "svg"))]
+pub(crate) use self::image::Image;