File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -435,21 +435,21 @@ To strongly type a function you may use options. Options take an optional hash
435
435
` paramTypes ` : optional, defaults to float for each param, a hash of param names with values of the return types
436
436
437
437
Types: that may be used for ` returnType ` or for each property of ` paramTypes ` :
438
- 'Array'
439
- 'Array(2)'
440
- 'Array(3)'
441
- 'Array(4)'
442
- 'HTMLImage'
443
- 'HTMLImageArray'
444
- 'Number'
445
- 'NumberTexture'
446
- 'ArrayTexture(4)'
438
+ * 'Array'
439
+ * 'Array(2)'
440
+ * 'Array(3)'
441
+ * 'Array(4)'
442
+ * 'HTMLImage'
443
+ * 'HTMLImageArray'
444
+ * 'Number'
445
+ * 'NumberTexture'
446
+ * 'ArrayTexture(4)'
447
447
448
448
Example:
449
449
``` js
450
450
gpu .addFunction (function mySuperFunction (a , b ) {
451
451
return [a - b[1 ], b[0 ] - a];
452
- }, { paramTypes: { a: ' Integer ' , b: ' Array(2)' }, returnType: ' Array(2)' });
452
+ }, { paramTypes: { a: ' Number ' , b: ' Array(2)' }, returnType: ' Array(2)' });
453
453
```
454
454
455
455
You can’t perform that action at this time.
0 commit comments