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