d84914ef1e5a
streamed_map.rs
use std::sync::Arc;
use texturecraft_core::BakedMap;
/// One finished map of a streamed bake (see [`crate::BakeTask::run_streaming`]).
#[derive(Clone, Debug)]
pub struct StreamedMap {
pub map: BakedMap,
/// Position among the maps this bake makes, from 0, and how many there are.
pub index: usize,
pub total: usize,
/// Width and height in texels.
pub resolution: u32,
pub height: u32,
/// Row-major, `map.components()` floats per texel, padded.
pub data: Arc<Vec<f32>>,
}
No file is open. Choose one in the tree, or press Ctrl+O (⌘O on a Mac) to find one by name.
Syntax highlighting could not load. The unmodified read-only text remains available above.