fast image operations
bendn 12 days ago
parent 6efb0e3 · commit 0f5d209
-rw-r--r--Cargo.toml2
-rw-r--r--src/wgpu_convert.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 172e8e0..1d1544f 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "fimg"
-version = "0.4.54"
+version = "0.4.55"
authors = ["bend-n <[email protected]>"]
license = "MIT"
edition = "2024"
diff --git a/src/wgpu_convert.rs b/src/wgpu_convert.rs
index 1c668ce..069d924 100644
--- a/src/wgpu_convert.rs
+++ b/src/wgpu_convert.rs
@@ -97,7 +97,7 @@ impl Image<Box<[u8]>, 4> {
.chunks_exact(pad)
.zip(out.buf().chunks_exact_mut(row))
{
- ::core::mem::MaybeUninit::copy_from_slice(pixels, &padded[..row]);
+ pixels.write_copy_of_slice(&padded[..row]);
}
unsafe { out.assume_init().boxed() }