fimg/benches/tile.rs
bendn 43da761a4e
optimize Image::repeat
also removes some unsafe
2023-10-02 13:30:35 +07:00

7 lines
198 B
Rust

use fimg::*;
fn repeat() {
let x: Image<&[u8], 3> = Image::build(8, 8).buf(include_bytes!("3_8x8.imgbuf"));
let _ = unsafe { x.repeated(128, 128) }; // repeat 16 times
}
iai::main!(repeat);