Adding verbiage to readme.md

This commit is contained in:
Robert Plummer 2018-07-08 21:03:04 -04:00
parent c75397d65a
commit 31fc680d23

View File

@ -370,7 +370,8 @@ const kernel = gpu.createKernel(function(a, b) {
```
## Loops
Loops just work
* Any loops defined inside the kernel must have a maximum iteration count defined by the loopMaxIterations option.
* Other than defining the iterations by a constant or fixed value as shown [Dynamic sized via constants](dynamic-sized-via-constants), you can also simply pass the number of iterations as a variable to the kernel
### Dynamic sized via constants
```js