diff options
-rw-r--r-- | examples/custom_shader/src/main.rs | 2 | ||||
-rw-r--r-- | src/lib.rs | 3 | ||||
-rw-r--r-- | widget/src/shader.rs | 1 |
3 files changed, 4 insertions, 2 deletions
diff --git a/examples/custom_shader/src/main.rs b/examples/custom_shader/src/main.rs index 5886f6bb..8c187d3c 100644 --- a/examples/custom_shader/src/main.rs +++ b/examples/custom_shader/src/main.rs @@ -3,7 +3,7 @@ mod scene; use scene::Scene; use iced::time::Instant; -use iced::widget::shader::wgpu; +use iced::wgpu; use iced::widget::{center, checkbox, column, row, shader, slider, text}; use iced::window; use iced::{Center, Color, Element, Fill, Subscription}; @@ -483,6 +483,9 @@ pub use iced_futures::stream; #[cfg(feature = "highlighter")] pub use iced_highlighter as highlighter; +#[cfg(feature = "wgpu")] +pub use iced_renderer::wgpu::wgpu; + mod error; mod program; diff --git a/widget/src/shader.rs b/widget/src/shader.rs index 3c81f8ed..fa692336 100644 --- a/widget/src/shader.rs +++ b/widget/src/shader.rs @@ -18,7 +18,6 @@ use crate::renderer::wgpu::primitive; use std::marker::PhantomData; pub use crate::graphics::Viewport; -pub use crate::renderer::wgpu::wgpu; pub use primitive::{Primitive, Storage}; /// A widget which can render custom shaders with Iced's `wgpu` backend. |