Skip to content

Commit

Permalink
Move wgpu re-export to root module
Browse files Browse the repository at this point in the history
This seems to fix a `cargo doc` performance issue;
and it makes more sense anyways.
  • Loading branch information
hecrj committed Sep 20, 2024
1 parent 53f88fe commit 91c00e4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/custom_shader/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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};
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
1 change: 0 additions & 1 deletion widget/src/shader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 91c00e4

Please sign in to comment.