diff options
Diffstat (limited to '3rdparty/bgfx/3rdparty/glslang/Test/spv.whileLoop.frag')
-rw-r--r-- | 3rdparty/bgfx/3rdparty/glslang/Test/spv.whileLoop.frag | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/3rdparty/bgfx/3rdparty/glslang/Test/spv.whileLoop.frag b/3rdparty/bgfx/3rdparty/glslang/Test/spv.whileLoop.frag new file mode 100644 index 00000000000..f7b7141eae7 --- /dev/null +++ b/3rdparty/bgfx/3rdparty/glslang/Test/spv.whileLoop.frag @@ -0,0 +1,16 @@ +#version 140
+
+in vec4 bigColor;
+in vec4 BaseColor;
+in float d;
+
+void main()
+{
+ vec4 color = BaseColor;
+
+ while (color.x < d) {
+ color += bigColor;
+ }
+
+ gl_FragColor = color;
+}
|