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, prepare_layer: usize, }