blob: b92176865059c163c50f7c4722518547708460b2 (
plain) (
tree)
|
|
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,
}
|