diff options
Diffstat (limited to 'chromium/third_party/glslang/src/Test/spv.whileLoop.frag')
-rw-r--r-- | chromium/third_party/glslang/src/Test/spv.whileLoop.frag | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chromium/third_party/glslang/src/Test/spv.whileLoop.frag b/chromium/third_party/glslang/src/Test/spv.whileLoop.frag new file mode 100644 index 00000000000..062bff2c5a1 --- /dev/null +++ b/chromium/third_party/glslang/src/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; +} |