fast image operations
Diffstat (limited to 'benches/drawing.rs')
-rw-r--r--benches/drawing.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/benches/drawing.rs b/benches/drawing.rs
index b0668d3..8375bf3 100644
--- a/benches/drawing.rs
+++ b/benches/drawing.rs
@@ -1,7 +1,7 @@
use fimg::*;
fn tri() {
- let mut i: Image<_, 4> = fimg::make!(4 channels 1000 x 1000);
- i.as_mut()
- .tri((0., 0.), (1000., 500.), (0., 999.), [255, 255, 255, 255]);
+ let mut i: Image<_, 4> = fimg::make!(4 channels 1000 x 1000).boxed();
+ i.tri((0., 0.), (1000., 500.), (0., 999.), [255, 255, 255, 255]);
+ std::hint::black_box(i);
}
iai::main!(tri);