Skip to content

Commit 4e1bf1f

Browse files
fix: #398 docs
1 parent 62d4ea7 commit 4e1bf1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,7 +535,7 @@ const megaKernel = gpu.createKernelMap({
535535
},
536536
}, function(a, b, c) {
537537
return multiply(add(a[this.thread.x], b[this.thread.x]), c[this.thread.x]);
538-
});
538+
}, { output: [10] });
539539
540540
megaKernel(a, b, c);
541541
// Result: { addResult: Float32Array, multiplyResult: Float32Array, result: Float32Array }
@@ -551,7 +551,7 @@ const megaKernel = gpu.createKernelMap([
551551
}
552552
], function(a, b, c) {
553553
return multiply(add(a[this.thread.x], b[this.thread.x]), c[this.thread.x]);
554-
});
554+
}, { output: [10] });
555555
556556
megaKernel(a, b, c);
557557
// Result: { 0: Float32Array, 1: Float32Array, result: Float32Array }

0 commit comments

Comments
 (0)