Skip to main content

qualia_core_db/render/
texture_streaming_plan.rs

1//! Deterministic, allocation-free mip admission for texture streaming.
2pub use etalon_render::texture_codec::streaming_plan::*;
3
4#[cfg(test)]
5fn mip_extent(base: u32, level: u32) -> u32 {
6    base.checked_shr(level).unwrap_or(0).max(1)
7}
8
9#[cfg(test)]
10#[path = "texture_streaming_plan_tests.rs"]
11mod tests;