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:
20
Test/spv.do-while-continue-break.vert
Normal file
20
Test/spv.do-while-continue-break.vert
Normal file
@@ -0,0 +1,20 @@
|
||||
#version 300 es
|
||||
void main() {
|
||||
int i = 0;
|
||||
int A, B, C, D, E, F, G;
|
||||
do {
|
||||
A = 0;
|
||||
if (i == 2) {
|
||||
B = 1;
|
||||
continue;
|
||||
C = 2;
|
||||
}
|
||||
if (i == 5) {
|
||||
D = 3;
|
||||
break;
|
||||
E = 42;
|
||||
}
|
||||
F = 99;
|
||||
} while (++i < 19);
|
||||
G = 12;
|
||||
}
|
||||
Reference in New Issue
Block a user