Add full support for uniforms with initializers, including intra-stage link validation of aggregate constant initializers.

This included 
 - encapsulating aggregate constants
 - removal of constant-aggregate comparison algorithms, instead using a flattened and direct std::vector comparison
 - adding structure type comparison for independently declared structures that still might match types



git-svn-id: https://cvs.khronos.org/svn/repos/ogl/trunk/ecosystem/public/sdk/tools/glslang@23274 e7fa87d3-cd2b-0410-9028-fcbf551c1848
This commit is contained in:
John Kessenich
2013-09-28 04:02:08 +00:00
parent b3345c422d
commit f2ee3dd46a
98 changed files with 3007 additions and 1715 deletions

View File

@@ -3,7 +3,8 @@ WARNING: 0:4: varying deprecated in version 130; may be removed in future releas
0:7 Sequence
0:7 move second child to first child (float)
0:7 'h' (float)
0:7 0.000000
0:7 Constant:
0:7 0.000000
0:9 Function Definition: foo(vf4; (float)
0:9 Function Parameters:
0:9 'bar' (in 4-component vector of float)
@@ -12,10 +13,12 @@ WARNING: 0:4: varying deprecated in version 130; may be removed in future releas
0:11 add (float)
0:11 direct index (float)
0:11 'bar' (in 4-component vector of float)
0:11 0 (const int)
0:11 Constant:
0:11 0 (const int)
0:11 direct index (float)
0:11 'bar' (in 4-component vector of float)
0:11 1 (const int)
0:11 Constant:
0:11 1 (const int)
0:14 Function Definition: bar( (void)
0:14 Function Parameters:
0:18 Function Definition: unreachableReturn( (float)
@@ -25,13 +28,16 @@ WARNING: 0:4: varying deprecated in version 130; may be removed in future releas
0:20 Condition
0:20 Compare Less Than (bool)
0:20 'd' (uniform float)
0:20 4.200000
0:20 Constant:
0:20 4.200000
0:20 true case
0:21 Branch: Return with expression
0:21 1.200000
0:21 Constant:
0:21 1.200000
0:20 false case
0:23 Branch: Return with expression
0:23 4.500000
0:23 Constant:
0:23 4.500000
0:27 Function Definition: missingReturn( (float)
0:27 Function Parameters:
0:29 Sequence
@@ -39,14 +45,16 @@ WARNING: 0:4: varying deprecated in version 130; may be removed in future releas
0:29 Condition
0:29 Compare Less Than (bool)
0:29 'd' (uniform float)
0:29 4.500000
0:29 Constant:
0:29 4.500000
0:29 true case
0:30 Sequence
0:30 move second child to first child (float)
0:30 'h' (float)
0:30 'd' (uniform float)
0:31 Branch: Return with expression
0:31 3.900000
0:31 Constant:
0:31 3.900000
0:35 Function Definition: main( (void)
0:35 Function Parameters:
0:37 Sequence