Demos (master): Add an infinite loop GLSL example.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Fri Oct 14 11:55:49 PDT 2011


Module: Demos
Branch: master
Commit: 8e59bcc8cbd18062b315a47019d86797a29421d7
URL:    http://cgit.freedesktop.org/mesa/demos/commit/?id=8e59bcc8cbd18062b315a47019d86797a29421d7

Author: José Fonseca <jfonseca at vmware.com>
Date:   Fri Oct  7 12:32:18 2011 +0100

Add an infinite loop GLSL example.

---

 src/fpglsl/infinite-loop.glsl |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/fpglsl/infinite-loop.glsl b/src/fpglsl/infinite-loop.glsl
new file mode 100644
index 0000000..88d3781
--- /dev/null
+++ b/src/fpglsl/infinite-loop.glsl
@@ -0,0 +1,7 @@
+void main() {
+    vec4 sum;
+    for (int i = 1; i != 2; i += 2) {
+        sum += vec4(0.1, 0.1, 0.1, 0.1);
+    }
+    gl_FragColor = sum;
+}



More information about the mesa-commit mailing list