Put in basic propagation algorithm for precision qualifiers. Some corner cases are document as TODO.
git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@20360 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
parent
cc2f8022d4
commit
e406f1c71c
5 changed files with 61 additions and 11 deletions
|
|
@ -35,17 +35,19 @@ void main()
|
|||
int level2_high;
|
||||
sum += level2_high;
|
||||
do {
|
||||
if (1) {
|
||||
if (true) {
|
||||
precision mediump int;
|
||||
int level4_medium;
|
||||
sum += level4_medium;
|
||||
}
|
||||
int level3_high;
|
||||
sum += level3_high;
|
||||
} while (1);
|
||||
} while (true);
|
||||
int level2_high2;
|
||||
sum += level2_high2;
|
||||
}
|
||||
int level1_low3;
|
||||
sum += level1_low3;
|
||||
|
||||
sum += 4 + ((ivec2(level1_low3) * ivec2(level1_high) + ivec2((/* comma operator */level1_low3, level1_high)))).x;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue