iced-yoda/wgpu/src/lib.rs

48 lines
1.6 KiB
Rust
Raw Normal View History

2019-11-22 22:14:24 +01:00
//! A [`wgpu`] renderer for [`iced_native`].
//!
//! ![`iced_wgpu` crate graph](https://github.com/hecrj/iced/blob/cae26cb7bc627f4a5b3bcf1cd023a0c552e8c65e/docs/graphs/wgpu.png?raw=true)
//!
//! For now, it is the default renderer of [Iced] in native platforms.
//!
//! [`wgpu`] supports most modern graphics backends: Vulkan, Metal, DX11, and
//! DX12 (OpenGL and WebGL are still WIP). Additionally, it will support the
//! incoming [WebGPU API].
//!
//! Currently, `iced_wgpu` supports the following primitives:
//! - Text, which is rendered using [`wgpu_glyph`]. No shaping at all.
//! - Quads or rectangles, with rounded borders and a solid background color.
//! - Images, lazily loaded from the filesystem.
//! - Clip areas, useful to implement scrollables or hide overflowing content.
//!
//! [Iced]: https://github.com/hecrj/iced
//! [`iced_native`]: https://github.com/hecrj/iced/tree/master/native
//! [`wgpu`]: https://github.com/gfx-rs/wgpu-rs
//! [WebGPU API]: https://gpuweb.github.io/gpuweb/
//! [`wgpu_glyph`]: https://github.com/hecrj/wgpu_glyph
//#![deny(missing_docs)]
2019-11-22 22:14:24 +01:00
#![deny(missing_debug_implementations)]
#![deny(unused_results)]
#![deny(unsafe_code)]
#![deny(rust_2018_idioms)]
pub mod defaults;
pub mod widget;
mod image;
2019-10-05 19:22:51 +02:00
mod primitive;
2019-10-07 03:56:16 +02:00
mod quad;
2019-10-05 19:22:51 +02:00
mod renderer;
2020-01-01 17:49:48 +01:00
mod settings;
mod text;
2019-10-07 03:56:16 +02:00
mod transformation;
pub use defaults::Defaults;
pub use primitive::Primitive;
2019-10-05 19:22:51 +02:00
pub use renderer::{Renderer, Target};
2020-01-01 17:49:48 +01:00
pub use settings::Settings;
#[doc(no_inline)]
pub use widget::*;
pub(crate) use self::image::Image;
pub(crate) use quad::Quad;
pub(crate) use transformation::Transformation;