Skip to content

Commit 9913eea

Browse files
Add documentation
1 parent 20745c8 commit 9913eea

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,15 @@ myFunc();
157157
// Result: [0, 1, 2, 3, ... 99]
158158
```
159159
## Accepting Input
160-
161-
Kernel functions can accept numbers, or 1D, 2D or 3D array of numbers as input. To define an argument, simply add it to the kernel function like regular JavaScript.
162-
160+
### Supported Input Types
161+
* Numbers
162+
* 1d Array
163+
* 2d Array
164+
* 3d Array
165+
* HTML Image
166+
To define an argument, simply add it to the kernel function like regular JavaScript.
167+
168+
### Input Examples
163169
```js
164170
const myFunc = gpu.createKernel(function(x) {
165171
return x;

0 commit comments

Comments
 (0)