[Phi] adding foundations for image blitting
Mirror Gitea refs to GitHub / mirror (push) Successful in 12s
Test / build_and_test (push) Successful in 5m58s
Build / build (push) Successful in 7m26s

This commit is contained in:
2026-08-20 16:12:15 +02:00
parent b9c12eb599
commit 1fe3bacbee
9 changed files with 332 additions and 18 deletions
+1 -1
View File
@@ -45,7 +45,7 @@ const BlitData = struct {
width_ratio: f32,
};
fn computeOffset3D(x: usize, y: usize, z: usize, slice_bytes: usize, pitch_bytes: usize, texel_bytes: usize) usize {
inline fn computeOffset3D(x: usize, y: usize, z: usize, slice_bytes: usize, pitch_bytes: usize, texel_bytes: usize) usize {
return z * slice_bytes + y * pitch_bytes + x * texel_bytes;
}