aboutsummaryrefslogtreecommitdiff
path: root/stockton-render/src/texture/mod.rs
blob: aef1b03ddf6ba1e0c95950c949f856eb3d4dc233 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//! Everything related to loading textures into GPU memory

mod block;
mod image;
mod load;
mod loader;
mod repo;
pub mod resolver;
mod staging_buffer;

pub use self::block::TexturesBlock;
pub use self::image::LoadableImage;
pub use self::load::TextureLoadConfig;
pub use self::loader::BlockRef;
pub use self::repo::{TexLoadQueue, TextureRepo};

/// The size of each pixel in an image
pub const PIXEL_SIZE: usize = std::mem::size_of::<u8>() * 4;