mirror of
https://github.com/gpujs/gpu.js.git
synced 2026-01-18 16:04:10 +00:00
slightly improve the output of image on cpu
This commit is contained in:
parent
2e1c1c7438
commit
6b25e95649
@ -386,7 +386,7 @@ ${ this.subKernelOutputVariableNames === null
|
||||
for (let y = 0; y < image.height; y++) {
|
||||
result[y] = new Array(image.width);
|
||||
for (let x = 0; x < image.width; x++) {
|
||||
result[y][x] = [pixelsData[index + 0], pixelsData[index + 1], pixelsData[index + 2], pixelsData[index + 3]];
|
||||
result[y][x] = [pixelsData[index++], pixelsData[index++], pixelsData[index++], pixelsData[index++]];
|
||||
}
|
||||
}
|
||||
return result;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user