glslang -> SPV: improved support for do-while/continue. Contributed by David Neto (dneto@google.com).

git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@31205 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich
2015-05-15 18:44:16 +00:00
parent 93dfbe1309
commit 593a3f7f6b
15 changed files with 473 additions and 20 deletions

View File

@@ -0,0 +1,20 @@
#version 300 es
void main() {
int i;
int A, B, C, D, E, F, G;
for (i=0; i < 10 ; i++) {
A = 1;
if (i%2 ==0) {
B = 1;
continue;
C = 1;
}
if (i%3 == 0) {
D = 1;
break;
E = 1;
}
F = 12;
}
G = 99;
}