ispc_tex/lib.rs
1#[macro_use]
2extern crate ispc_rt;
3
4pub mod bindings {
5 ispc_module!(kernel);
6}
7
8pub mod bc1;
9pub mod bc3;
10pub mod bc6h;
11pub mod bc7;
12
13#[derive(Debug, Copy, Clone)]
14pub struct RgbaSurface<'a> {
15 pub data: &'a [u8],
16 pub width: u32,
17 pub height: u32,
18 pub stride: u32,
19}
20
21#[inline(always)]
22pub fn divide_up_by_multiple(val: u32, align: u32) -> u32 {
23 let mask: u32 = align - 1;
24 (val + mask) / align
25}