Merge pull request #2593 from iced-rs/fix/slow-ci-docs

Move `wgpu` re-export to root module
This commit is contained in:
Héctor Ramón 2024-09-20 18:54:09 +02:00 committed by GitHub
commit ca93c41789
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 2 deletions

View file

@ -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};

View file

@ -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;

View file

@ -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.