summaryrefslogtreecommitdiffstats
path: root/wgpu/src/layer/pipeline.rs
blob: 6dfe67503c1f2f4805a4f682819839494d412924 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::core::Rectangle;
use crate::primitive::pipeline::Primitive;

use std::sync::Arc;

#[derive(Clone, Debug)]
/// A custom primitive which can be used to render primitives associated with a custom pipeline.
pub struct Pipeline {
    /// The bounds of the [`Pipeline`].
    pub bounds: Rectangle,

    /// The viewport of the [`Pipeline`].
    pub viewport: Rectangle,

    /// The [`Primitive`] to render.
    pub primitive: Arc<dyn Primitive>,
}