Move wgpu re-export to root module

This seems to fix a `cargo doc` performance issue;
and it makes more sense anyways.
This commit is contained in:
Héctor Ramón Jiménez 2024-09-20 18:35:18 +02:00
parent 53f88fe2cf
commit 91c00e4abf
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
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.