1 variableArrayIndex.frag 2 WARNING: 0:3: varying deprecated in version 130; may be removed in future release 3 4 Shader version: 130 5 0:? Sequence 6 0:29 Function Definition: main( ( global void) 7 0:29 Function Parameters: 8 0:? Sequence 9 0:32 Sequence 10 0:32 move second child to first child ( temp int) 11 0:32 'iLocal' ( temp int) 12 0:32 'Count' ( uniform int) 13 0:34 Test condition and select ( temp void) 14 0:34 Condition 15 0:34 Compare Greater Than ( temp bool) 16 0:34 i: direct index for structure ( global int) 17 0:34 direct index ( temp structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 18 0:34 s2_1: direct index for structure ( global 3-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 19 0:34 'foo3' ( uniform structure{ global 3-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1} s2_1, global int i, global float f, global structure{ global int i, global float f} s1_1}) 20 0:34 Constant: 21 0:34 0 (const int) 22 0:34 Constant: 23 0:34 1 (const int) 24 0:34 Constant: 25 0:34 0 (const int) 26 0:34 Constant: 27 0:34 0 (const int) 28 0:34 true case 29 0:35 move second child to first child ( temp float) 30 0:35 'scale' ( temp float) 31 0:35 f: direct index for structure ( global float) 32 0:35 s1_1: direct index for structure ( global structure{ global int i, global float f}) 33 0:35 indirect index ( temp structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 34 0:35 'foo2' ( uniform 5-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 35 0:35 add ( temp int) 36 0:35 add ( temp int) 37 0:35 i: direct index for structure ( global int) 38 0:35 indirect index ( temp structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 39 0:35 s2_1: direct index for structure ( global 3-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 40 0:35 'foo3' ( uniform structure{ global 3-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1} s2_1, global int i, global float f, global structure{ global int i, global float f} s1_1}) 41 0:35 Constant: 42 0:35 0 (const int) 43 0:35 i: direct index for structure ( global int) 44 0:35 'foo' ( uniform structure{ global int i, global float f}) 45 0:35 Constant: 46 0:35 0 (const int) 47 0:35 Constant: 48 0:35 0 (const int) 49 0:35 Constant: 50 0:35 2 (const int) 51 0:35 Pre-Increment ( temp int) 52 0:35 'iLocal' ( temp int) 53 0:35 Constant: 54 0:35 2 (const int) 55 0:35 Constant: 56 0:35 1 (const int) 57 0:34 false case 58 0:37 move second child to first child ( temp float) 59 0:37 'scale' ( temp float) 60 0:37 f: direct index for structure ( global float) 61 0:37 s1_1: direct index for structure ( global structure{ global int i, global float f}) 62 0:37 direct index ( temp structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 63 0:37 s2_1: direct index for structure ( global 3-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 64 0:37 'foo3' ( uniform structure{ global 3-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1} s2_1, global int i, global float f, global structure{ global int i, global float f} s1_1}) 65 0:37 Constant: 66 0:37 0 (const int) 67 0:37 Constant: 68 0:37 0 (const int) 69 0:37 Constant: 70 0:37 2 (const int) 71 0:37 Constant: 72 0:37 1 (const int) 73 0:43 move second child to first child ( temp 4-component vector of float) 74 0:43 'gl_FragColor' ( fragColor 4-component vector of float FragColor) 75 0:43 vector-scale ( temp 4-component vector of float) 76 0:43 'scale' ( temp float) 77 0:43 texture ( global 4-component vector of float) 78 0:43 'sampler' ( uniform sampler2D) 79 0:43 'coord' ( smooth in 2-component vector of float) 80 0:45 Sequence 81 0:45 move second child to first child ( temp 3-element array of 2-component vector of float) 82 0:45 'constructed' ( temp 3-element array of 2-component vector of float) 83 0:45 Construct vec2 ( temp 3-element array of 2-component vector of float) 84 0:45 'coord' ( smooth in 2-component vector of float) 85 0:45 Construct vec2 ( temp 2-component vector of float) 86 0:45 'scale' ( temp float) 87 0:45 Constant: 88 0:45 1.000000 89 0:45 2.000000 90 0:46 add second child into first child ( temp 4-component vector of float) 91 0:46 'gl_FragColor' ( fragColor 4-component vector of float FragColor) 92 0:46 Construct vec4 ( temp 4-component vector of float) 93 0:46 indirect index ( temp 2-component vector of float) 94 0:46 'constructed' ( temp 3-element array of 2-component vector of float) 95 0:46 i: direct index for structure ( global int) 96 0:46 'foo' ( uniform structure{ global int i, global float f}) 97 0:46 Constant: 98 0:46 0 (const int) 99 0:46 indirect index ( temp 2-component vector of float) 100 0:46 'constructed' ( temp 3-element array of 2-component vector of float) 101 0:46 i: direct index for structure ( global int) 102 0:46 'foo' ( uniform structure{ global int i, global float f}) 103 0:46 Constant: 104 0:46 0 (const int) 105 0:? Linker Objects 106 0:? 'sampler' ( uniform sampler2D) 107 0:? 'coord' ( smooth in 2-component vector of float) 108 0:? 'foo' ( uniform structure{ global int i, global float f}) 109 0:? 'foo2' ( uniform 5-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 110 0:? 'foo3' ( uniform structure{ global 3-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1} s2_1, global int i, global float f, global structure{ global int i, global float f} s1_1}) 111 0:? 'Count' ( uniform int) 112 113 114 Linked fragment stage: 115 116 117 Shader version: 130 118 0:? Sequence 119 0:29 Function Definition: main( ( global void) 120 0:29 Function Parameters: 121 0:? Sequence 122 0:32 Sequence 123 0:32 move second child to first child ( temp int) 124 0:32 'iLocal' ( temp int) 125 0:32 'Count' ( uniform int) 126 0:34 Test condition and select ( temp void) 127 0:34 Condition 128 0:34 Compare Greater Than ( temp bool) 129 0:34 i: direct index for structure ( global int) 130 0:34 direct index ( temp structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 131 0:34 s2_1: direct index for structure ( global 3-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 132 0:34 'foo3' ( uniform structure{ global 3-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1} s2_1, global int i, global float f, global structure{ global int i, global float f} s1_1}) 133 0:34 Constant: 134 0:34 0 (const int) 135 0:34 Constant: 136 0:34 1 (const int) 137 0:34 Constant: 138 0:34 0 (const int) 139 0:34 Constant: 140 0:34 0 (const int) 141 0:34 true case 142 0:35 move second child to first child ( temp float) 143 0:35 'scale' ( temp float) 144 0:35 f: direct index for structure ( global float) 145 0:35 s1_1: direct index for structure ( global structure{ global int i, global float f}) 146 0:35 indirect index ( temp structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 147 0:35 'foo2' ( uniform 5-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 148 0:35 add ( temp int) 149 0:35 add ( temp int) 150 0:35 i: direct index for structure ( global int) 151 0:35 indirect index ( temp structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 152 0:35 s2_1: direct index for structure ( global 3-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 153 0:35 'foo3' ( uniform structure{ global 3-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1} s2_1, global int i, global float f, global structure{ global int i, global float f} s1_1}) 154 0:35 Constant: 155 0:35 0 (const int) 156 0:35 i: direct index for structure ( global int) 157 0:35 'foo' ( uniform structure{ global int i, global float f}) 158 0:35 Constant: 159 0:35 0 (const int) 160 0:35 Constant: 161 0:35 0 (const int) 162 0:35 Constant: 163 0:35 2 (const int) 164 0:35 Pre-Increment ( temp int) 165 0:35 'iLocal' ( temp int) 166 0:35 Constant: 167 0:35 2 (const int) 168 0:35 Constant: 169 0:35 1 (const int) 170 0:34 false case 171 0:37 move second child to first child ( temp float) 172 0:37 'scale' ( temp float) 173 0:37 f: direct index for structure ( global float) 174 0:37 s1_1: direct index for structure ( global structure{ global int i, global float f}) 175 0:37 direct index ( temp structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 176 0:37 s2_1: direct index for structure ( global 3-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 177 0:37 'foo3' ( uniform structure{ global 3-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1} s2_1, global int i, global float f, global structure{ global int i, global float f} s1_1}) 178 0:37 Constant: 179 0:37 0 (const int) 180 0:37 Constant: 181 0:37 0 (const int) 182 0:37 Constant: 183 0:37 2 (const int) 184 0:37 Constant: 185 0:37 1 (const int) 186 0:43 move second child to first child ( temp 4-component vector of float) 187 0:43 'gl_FragColor' ( fragColor 4-component vector of float FragColor) 188 0:43 vector-scale ( temp 4-component vector of float) 189 0:43 'scale' ( temp float) 190 0:43 texture ( global 4-component vector of float) 191 0:43 'sampler' ( uniform sampler2D) 192 0:43 'coord' ( smooth in 2-component vector of float) 193 0:45 Sequence 194 0:45 move second child to first child ( temp 3-element array of 2-component vector of float) 195 0:45 'constructed' ( temp 3-element array of 2-component vector of float) 196 0:45 Construct vec2 ( temp 3-element array of 2-component vector of float) 197 0:45 'coord' ( smooth in 2-component vector of float) 198 0:45 Construct vec2 ( temp 2-component vector of float) 199 0:45 'scale' ( temp float) 200 0:45 Constant: 201 0:45 1.000000 202 0:45 2.000000 203 0:46 add second child into first child ( temp 4-component vector of float) 204 0:46 'gl_FragColor' ( fragColor 4-component vector of float FragColor) 205 0:46 Construct vec4 ( temp 4-component vector of float) 206 0:46 indirect index ( temp 2-component vector of float) 207 0:46 'constructed' ( temp 3-element array of 2-component vector of float) 208 0:46 i: direct index for structure ( global int) 209 0:46 'foo' ( uniform structure{ global int i, global float f}) 210 0:46 Constant: 211 0:46 0 (const int) 212 0:46 indirect index ( temp 2-component vector of float) 213 0:46 'constructed' ( temp 3-element array of 2-component vector of float) 214 0:46 i: direct index for structure ( global int) 215 0:46 'foo' ( uniform structure{ global int i, global float f}) 216 0:46 Constant: 217 0:46 0 (const int) 218 0:? Linker Objects 219 0:? 'sampler' ( uniform sampler2D) 220 0:? 'coord' ( smooth in 2-component vector of float) 221 0:? 'foo' ( uniform structure{ global int i, global float f}) 222 0:? 'foo2' ( uniform 5-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 223 0:? 'foo3' ( uniform structure{ global 3-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1} s2_1, global int i, global float f, global structure{ global int i, global float f} s1_1}) 224 0:? 'Count' ( uniform int) 225 226