Skip to content

Commit

Permalink
fix: Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
robertleeplummerjr committed Oct 31, 2018
1 parent d051256 commit 1d7174f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -435,21 +435,21 @@ To strongly type a function you may use options. Options take an optional hash
`paramTypes`: optional, defaults to float for each param, a hash of param names with values of the return types

Types: that may be used for `returnType` or for each property of `paramTypes`:
'Array'
'Array(2)'
'Array(3)'
'Array(4)'
'HTMLImage'
'HTMLImageArray'
'Number'
'NumberTexture'
'ArrayTexture(4)'
* 'Array'
* 'Array(2)'
* 'Array(3)'
* 'Array(4)'
* 'HTMLImage'
* 'HTMLImageArray'
* 'Number'
* 'NumberTexture'
* 'ArrayTexture(4)'

Example:
```js
gpu.addFunction(function mySuperFunction(a, b) {
return [a - b[1], b[0] - a];
}, { paramTypes: { a: 'Integer', b: 'Array(2)'}, returnType: 'Array(2)' });
}, { paramTypes: { a: 'Number', b: 'Array(2)'}, returnType: 'Array(2)' });
```


Expand Down

0 comments on commit 1d7174f

Please sign in to comment.