blob: b92176865059c163c50f7c4722518547708460b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
use crate::Buffer;
use crate::graphics::image;
use crate::quad::{self, Quad};
use bytemuck::{Pod, Zeroable};
/// A quad filled with a background image.
#[derive(Clone, Debug)]
#[repr(C)]
pub struct BackgroundImage {
/// The image data of the quad
// TODO: representable image background
pub background_image: image::Image,
/// The [`Quad`] data of the [`BackgroundImage`].
pub quad: Quad,
}
pub struct InnerBackgroundImage {
image: image::Image,
attachment: Attachment,
clip: Sizing,
}
#[derive(Debug)]
pub struct Pipeline {
pipeline: crate::image::Pipeline,
constant_layout: wgpu::BindGroupLayout,
layers: Vec<Layer>,
prepare_layer: usize,
}
|