Skip to content

Commit

Permalink
Fix the GPGPU example (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfellis authored Jan 14, 2025
1 parent f71e7e4 commit e9a631c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion home/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<form>
<textarea id="code">export fn main {
// Create a buffer of memory on the GPU
let b = GBuffer([1, 2, 3, 4]);
let b = GBuffer([1.i32, 2.i32, 3.i32, 4.i32]);
// Map the values into a new buffer on the GPU
let out = b.map(fn (val: gi32) = val + 2);
// Read the results back to RAM and print them
Expand Down

0 comments on commit e9a631c

Please sign in to comment.