summaryrefslogblamecommitdiffstats
path: root/wgpu/src/widget/canvas/geometry.rs
blob: db7b40544bbbdfc1030a5f440105cef6bb68fa06 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15














                                                                     
use crate::Primitive;
use std::sync::Arc;

#[derive(Debug)]
pub struct Geometry(Arc<Primitive>);

impl Geometry {
    pub(crate) fn from_primitive(primitive: Arc<Primitive>) -> Self {
        Self(primitive)
    }

    pub(crate) fn into_primitive(self) -> Arc<Primitive> {
        self.0
    }
}