diff options
author | 2023-05-30 00:56:52 +0200 | |
---|---|---|
committer | 2023-05-30 01:08:34 +0200 | |
commit | fe9da174cafffbd77eb351c51ba017cf039a4cf4 (patch) | |
tree | 0921ada9a8907ddfd46a360c21b0fd224d81216c /wgpu/src/layer.rs | |
parent | eb6c663420a28e087c91c39e376db3c294b5aea1 (diff) | |
download | iced-fe9da174cafffbd77eb351c51ba017cf039a4cf4.tar.gz iced-fe9da174cafffbd77eb351c51ba017cf039a4cf4.tar.bz2 iced-fe9da174cafffbd77eb351c51ba017cf039a4cf4.zip |
Move `layer::quad` types to `quad` module
Not sure why I split these to begin with!
Diffstat (limited to 'wgpu/src/layer.rs')
-rw-r--r-- | wgpu/src/layer.rs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/wgpu/src/layer.rs b/wgpu/src/layer.rs index 4e028eac..1a870c15 100644 --- a/wgpu/src/layer.rs +++ b/wgpu/src/layer.rs @@ -3,17 +3,16 @@ mod image; mod text; pub mod mesh; -pub mod quad; pub use image::Image; pub use mesh::Mesh; -pub use quad::Quad; pub use text::Text; use crate::core; use crate::core::alignment; use crate::core::{Color, Font, Point, Rectangle, Size, Vector}; use crate::graphics::{Primitive, Viewport}; +use crate::quad::{self, Quad}; /// A group of primitives that should be clipped together. #[derive(Debug)] @@ -22,7 +21,7 @@ pub struct Layer<'a> { pub bounds: Rectangle, /// The quads of the [`Layer`]. - pub quads: quad::Layer, + pub quads: quad::Batch, /// The triangle meshes of the [`Layer`]. pub meshes: Vec<Mesh<'a>>, @@ -39,7 +38,7 @@ impl<'a> Layer<'a> { pub fn new(bounds: Rectangle) -> Self { Self { bounds, - quads: quad::Layer::default(), + quads: quad::Batch::default(), meshes: Vec::new(), text: Vec::new(), images: Vec::new(), |