summaryrefslogtreecommitdiffstats
path: root/wgpu/src/primitive.rs
blob: 8e311d2b81fe868a8f1637a69bba6373d320fe99 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
//! Draw using different graphical primitives.
pub mod pipeline;

pub use pipeline::Pipeline;

use crate::graphics::Mesh;

use std::fmt::Debug;

/// 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),
    /// A custom pipeline primitive.
    Pipeline(Pipeline),
}