use super::{MaterialDraw, TextureId};
use crate::Rect;
use std::ops::Range;
pub const MAX_BACKDROP_SIGMA: f32 = 64.0;
#[derive(Clone, Debug, PartialEq)]
pub struct DrawCommand {
pub indices: Range<u32>,
pub clip_rect: Rect,
pub texture: TextureId,
pub blur: Option<f32>,
pub scroll_hint: bool,
pub material: Option<MaterialDraw>,
}
impl Default for DrawCommand {
fn default() -> Self {
Self {
indices: 0..0,
clip_rect: Rect::default(),
texture: TextureId::WHITE,
blur: None,
scroll_hint: false,
material: None,
}
}
}