use super::*;
pub(crate) static EMPTY_FRAMEBUFFER: Framebuffer = Framebuffer {
width: 0,
height: 0,
pixels: Vec::new(),
};
#[cfg(not(target_arch = "wasm32"))]
pub(crate) static BAND_POOL_STATE: AtomicUsize = AtomicUsize::new(BAND_POOL_UNINITIALIZED);
#[cfg(not(target_arch = "wasm32"))]
pub(crate) static BAND_ACTIVE_SPIN_LIMIT: AtomicUsize =
AtomicUsize::new(BAND_WORKER_SPIN_LIMIT_IDLE as usize);
#[cfg(not(target_arch = "wasm32"))]
pub(crate) static BAND_WORKER_POOL: OnceLock<BandWorkerPool> = OnceLock::new();
thread_local! {
pub(crate) static BAND_CORNER_SCRATCH: RefCell<BandCornerScratch> =
RefCell::new(BandCornerScratch::default());
pub(crate) static BAND_SHADOW_SCRATCH: RefCell<BandShadowScratch> =
RefCell::new(BandShadowScratch::default());
pub(crate) static BAND_IMAGE_X_LUT: RefCell<Vec<(usize, usize, u32)>> =
const { RefCell::new(Vec::new()) };
pub(crate) static BAND_BLUR_COL_SCRATCH: RefCell<Vec<[u32; 4]>> =
const { RefCell::new(Vec::new()) };
pub(crate) static BAND_BLUR_HORIZ_SCRATCH: RefCell<Vec<[u8; 4]>> =
const { RefCell::new(Vec::new()) };
}