Move Pipeline struct definition after Layer in quad submodules

This commit is contained in:
Héctor Ramón Jiménez 2023-05-30 01:35:06 +02:00
parent ef547469fd
commit c319f5113b
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
2 changed files with 10 additions and 10 deletions

View file

@ -15,11 +15,6 @@ pub struct Solid {
pub quad: Quad,
}
#[derive(Debug)]
pub struct Pipeline {
pipeline: wgpu::RenderPipeline,
}
#[derive(Debug)]
pub struct Layer {
instances: Buffer<Solid>,
@ -54,6 +49,11 @@ impl Layer {
}
}
#[derive(Debug)]
pub struct Pipeline {
pipeline: wgpu::RenderPipeline,
}
impl Pipeline {
pub fn new(
device: &wgpu::Device,