use wgpu::BindGroup;
use crate::draw::Color;
pub enum Draw {
Color(Color),
Texture { texture: BindGroup, color: Color },
}
impl Draw {
pub fn get_color(&self) -> &Color {
match self {
Draw::Color(color) => color,
Draw::Texture { color, .. } => color,
}
}
}