diff options
author | 2023-06-29 07:55:52 +0200 | |
---|---|---|
committer | 2023-06-29 07:55:52 +0200 | |
commit | 6921564c9f66e8103e19ec658099c5f5c32e8cc5 (patch) | |
tree | ed833fab41f64c57a7522fea400ea42eec788e9f /wgpu/src/primitive.rs | |
parent | fa5650cfd1115e6ccec2ad795cf58fd970d5b43c (diff) | |
download | iced-6921564c9f66e8103e19ec658099c5f5c32e8cc5.tar.gz iced-6921564c9f66e8103e19ec658099c5f5c32e8cc5.tar.bz2 iced-6921564c9f66e8103e19ec658099c5f5c32e8cc5.zip |
Write missing docs in `iced_graphics` and `iced_wgpu`
Diffstat (limited to 'wgpu/src/primitive.rs')
-rw-r--r-- | wgpu/src/primitive.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/wgpu/src/primitive.rs b/wgpu/src/primitive.rs index a8f1119c..8dbf3008 100644 --- a/wgpu/src/primitive.rs +++ b/wgpu/src/primitive.rs @@ -1,10 +1,14 @@ +//! Draw using different graphical primitives. use crate::core::Rectangle; use crate::graphics::{Damage, Mesh}; +/// The graphical primitives supported by `iced_wgpu`. pub type Primitive = crate::graphics::Primitive<Custom>; +/// The custom primitives supported by `iced_wgpu`. #[derive(Debug, Clone, PartialEq)] pub enum Custom { + /// A mesh primitive. Mesh(Mesh), } |