diff options
author | 2019-11-22 22:14:24 +0100 | |
---|---|---|
committer | 2019-11-22 22:14:24 +0100 | |
commit | 6a0e442ad68c2b104b7e91ef80798610a79aca6b (patch) | |
tree | 1ed581908a0a45f10f4b58cdc4ce280980a4cce9 /wgpu/src/lib.rs | |
parent | fa227255b02adbbfa99801a7baaa4d6d387f7302 (diff) | |
download | iced-6a0e442ad68c2b104b7e91ef80798610a79aca6b.tar.gz iced-6a0e442ad68c2b104b7e91ef80798610a79aca6b.tar.bz2 iced-6a0e442ad68c2b104b7e91ef80798610a79aca6b.zip |
Write docs for `iced_wgpu`
Diffstat (limited to 'wgpu/src/lib.rs')
-rw-r--r-- | wgpu/src/lib.rs | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/wgpu/src/lib.rs b/wgpu/src/lib.rs index d770f872..9f9ed8db 100644 --- a/wgpu/src/lib.rs +++ b/wgpu/src/lib.rs @@ -1,3 +1,29 @@ +//! A [`wgpu`] renderer for [`iced_native`]. +//! +//!  +//! +//! 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)] +#![deny(missing_debug_implementations)] +#![deny(unused_results)] +#![deny(unsafe_code)] +#![deny(rust_2018_idioms)] mod image; mod primitive; mod quad; |