diff options
Diffstat (limited to 'wgpu/src/quad/background_image.rs')
-rw-r--r-- | wgpu/src/quad/background_image.rs | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/wgpu/src/quad/background_image.rs b/wgpu/src/quad/background_image.rs new file mode 100644 index 00000000..b9217686 --- /dev/null +++ b/wgpu/src/quad/background_image.rs @@ -0,0 +1,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, +} |