From 31fc680d23e2ab0d11edaf1fda9f065dac8a178f Mon Sep 17 00:00:00 2001 From: Robert Plummer Date: Sun, 8 Jul 2018 21:03:04 -0400 Subject: [PATCH] Adding verbiage to readme.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 198599cb..75696655 100644 --- a/README.md +++ b/README.md @@ -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