1617a3babSopenharmony_civariableArrayIndex.frag 2617a3babSopenharmony_ciWARNING: 0:3: varying deprecated in version 130; may be removed in future release 3617a3babSopenharmony_ci 4617a3babSopenharmony_ciShader version: 130 5617a3babSopenharmony_ci0:? Sequence 6617a3babSopenharmony_ci0:29 Function Definition: main( ( global void) 7617a3babSopenharmony_ci0:29 Function Parameters: 8617a3babSopenharmony_ci0:? Sequence 9617a3babSopenharmony_ci0:32 Sequence 10617a3babSopenharmony_ci0:32 move second child to first child ( temp int) 11617a3babSopenharmony_ci0:32 'iLocal' ( temp int) 12617a3babSopenharmony_ci0:32 'Count' ( uniform int) 13617a3babSopenharmony_ci0:34 Test condition and select ( temp void) 14617a3babSopenharmony_ci0:34 Condition 15617a3babSopenharmony_ci0:34 Compare Greater Than ( temp bool) 16617a3babSopenharmony_ci0:34 i: direct index for structure ( global int) 17617a3babSopenharmony_ci0:34 direct index ( temp structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 18617a3babSopenharmony_ci0: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}) 19617a3babSopenharmony_ci0: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}) 20617a3babSopenharmony_ci0:34 Constant: 21617a3babSopenharmony_ci0:34 0 (const int) 22617a3babSopenharmony_ci0:34 Constant: 23617a3babSopenharmony_ci0:34 1 (const int) 24617a3babSopenharmony_ci0:34 Constant: 25617a3babSopenharmony_ci0:34 0 (const int) 26617a3babSopenharmony_ci0:34 Constant: 27617a3babSopenharmony_ci0:34 0 (const int) 28617a3babSopenharmony_ci0:34 true case 29617a3babSopenharmony_ci0:35 move second child to first child ( temp float) 30617a3babSopenharmony_ci0:35 'scale' ( temp float) 31617a3babSopenharmony_ci0:35 f: direct index for structure ( global float) 32617a3babSopenharmony_ci0:35 s1_1: direct index for structure ( global structure{ global int i, global float f}) 33617a3babSopenharmony_ci0:35 indirect index ( temp structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 34617a3babSopenharmony_ci0:35 'foo2' ( uniform 5-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 35617a3babSopenharmony_ci0:35 add ( temp int) 36617a3babSopenharmony_ci0:35 add ( temp int) 37617a3babSopenharmony_ci0:35 i: direct index for structure ( global int) 38617a3babSopenharmony_ci0:35 indirect index ( temp structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 39617a3babSopenharmony_ci0: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}) 40617a3babSopenharmony_ci0: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}) 41617a3babSopenharmony_ci0:35 Constant: 42617a3babSopenharmony_ci0:35 0 (const int) 43617a3babSopenharmony_ci0:35 i: direct index for structure ( global int) 44617a3babSopenharmony_ci0:35 'foo' ( uniform structure{ global int i, global float f}) 45617a3babSopenharmony_ci0:35 Constant: 46617a3babSopenharmony_ci0:35 0 (const int) 47617a3babSopenharmony_ci0:35 Constant: 48617a3babSopenharmony_ci0:35 0 (const int) 49617a3babSopenharmony_ci0:35 Constant: 50617a3babSopenharmony_ci0:35 2 (const int) 51617a3babSopenharmony_ci0:35 Pre-Increment ( temp int) 52617a3babSopenharmony_ci0:35 'iLocal' ( temp int) 53617a3babSopenharmony_ci0:35 Constant: 54617a3babSopenharmony_ci0:35 2 (const int) 55617a3babSopenharmony_ci0:35 Constant: 56617a3babSopenharmony_ci0:35 1 (const int) 57617a3babSopenharmony_ci0:34 false case 58617a3babSopenharmony_ci0:37 move second child to first child ( temp float) 59617a3babSopenharmony_ci0:37 'scale' ( temp float) 60617a3babSopenharmony_ci0:37 f: direct index for structure ( global float) 61617a3babSopenharmony_ci0:37 s1_1: direct index for structure ( global structure{ global int i, global float f}) 62617a3babSopenharmony_ci0:37 direct index ( temp structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 63617a3babSopenharmony_ci0: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}) 64617a3babSopenharmony_ci0: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}) 65617a3babSopenharmony_ci0:37 Constant: 66617a3babSopenharmony_ci0:37 0 (const int) 67617a3babSopenharmony_ci0:37 Constant: 68617a3babSopenharmony_ci0:37 0 (const int) 69617a3babSopenharmony_ci0:37 Constant: 70617a3babSopenharmony_ci0:37 2 (const int) 71617a3babSopenharmony_ci0:37 Constant: 72617a3babSopenharmony_ci0:37 1 (const int) 73617a3babSopenharmony_ci0:43 move second child to first child ( temp 4-component vector of float) 74617a3babSopenharmony_ci0:43 'gl_FragColor' ( fragColor 4-component vector of float FragColor) 75617a3babSopenharmony_ci0:43 vector-scale ( temp 4-component vector of float) 76617a3babSopenharmony_ci0:43 'scale' ( temp float) 77617a3babSopenharmony_ci0:43 texture ( global 4-component vector of float) 78617a3babSopenharmony_ci0:43 'sampler' ( uniform sampler2D) 79617a3babSopenharmony_ci0:43 'coord' ( smooth in 2-component vector of float) 80617a3babSopenharmony_ci0:45 Sequence 81617a3babSopenharmony_ci0:45 move second child to first child ( temp 3-element array of 2-component vector of float) 82617a3babSopenharmony_ci0:45 'constructed' ( temp 3-element array of 2-component vector of float) 83617a3babSopenharmony_ci0:45 Construct vec2 ( temp 3-element array of 2-component vector of float) 84617a3babSopenharmony_ci0:45 'coord' ( smooth in 2-component vector of float) 85617a3babSopenharmony_ci0:45 Construct vec2 ( temp 2-component vector of float) 86617a3babSopenharmony_ci0:45 'scale' ( temp float) 87617a3babSopenharmony_ci0:45 Constant: 88617a3babSopenharmony_ci0:45 1.000000 89617a3babSopenharmony_ci0:45 2.000000 90617a3babSopenharmony_ci0:46 add second child into first child ( temp 4-component vector of float) 91617a3babSopenharmony_ci0:46 'gl_FragColor' ( fragColor 4-component vector of float FragColor) 92617a3babSopenharmony_ci0:46 Construct vec4 ( temp 4-component vector of float) 93617a3babSopenharmony_ci0:46 indirect index ( temp 2-component vector of float) 94617a3babSopenharmony_ci0:46 'constructed' ( temp 3-element array of 2-component vector of float) 95617a3babSopenharmony_ci0:46 i: direct index for structure ( global int) 96617a3babSopenharmony_ci0:46 'foo' ( uniform structure{ global int i, global float f}) 97617a3babSopenharmony_ci0:46 Constant: 98617a3babSopenharmony_ci0:46 0 (const int) 99617a3babSopenharmony_ci0:46 indirect index ( temp 2-component vector of float) 100617a3babSopenharmony_ci0:46 'constructed' ( temp 3-element array of 2-component vector of float) 101617a3babSopenharmony_ci0:46 i: direct index for structure ( global int) 102617a3babSopenharmony_ci0:46 'foo' ( uniform structure{ global int i, global float f}) 103617a3babSopenharmony_ci0:46 Constant: 104617a3babSopenharmony_ci0:46 0 (const int) 105617a3babSopenharmony_ci0:? Linker Objects 106617a3babSopenharmony_ci0:? 'sampler' ( uniform sampler2D) 107617a3babSopenharmony_ci0:? 'coord' ( smooth in 2-component vector of float) 108617a3babSopenharmony_ci0:? 'foo' ( uniform structure{ global int i, global float f}) 109617a3babSopenharmony_ci0:? 'foo2' ( uniform 5-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 110617a3babSopenharmony_ci0:? '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}) 111617a3babSopenharmony_ci0:? 'Count' ( uniform int) 112617a3babSopenharmony_ci 113617a3babSopenharmony_ci 114617a3babSopenharmony_ciLinked fragment stage: 115617a3babSopenharmony_ci 116617a3babSopenharmony_ci 117617a3babSopenharmony_ciShader version: 130 118617a3babSopenharmony_ci0:? Sequence 119617a3babSopenharmony_ci0:29 Function Definition: main( ( global void) 120617a3babSopenharmony_ci0:29 Function Parameters: 121617a3babSopenharmony_ci0:? Sequence 122617a3babSopenharmony_ci0:32 Sequence 123617a3babSopenharmony_ci0:32 move second child to first child ( temp int) 124617a3babSopenharmony_ci0:32 'iLocal' ( temp int) 125617a3babSopenharmony_ci0:32 'Count' ( uniform int) 126617a3babSopenharmony_ci0:34 Test condition and select ( temp void) 127617a3babSopenharmony_ci0:34 Condition 128617a3babSopenharmony_ci0:34 Compare Greater Than ( temp bool) 129617a3babSopenharmony_ci0:34 i: direct index for structure ( global int) 130617a3babSopenharmony_ci0:34 direct index ( temp structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 131617a3babSopenharmony_ci0: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}) 132617a3babSopenharmony_ci0: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}) 133617a3babSopenharmony_ci0:34 Constant: 134617a3babSopenharmony_ci0:34 0 (const int) 135617a3babSopenharmony_ci0:34 Constant: 136617a3babSopenharmony_ci0:34 1 (const int) 137617a3babSopenharmony_ci0:34 Constant: 138617a3babSopenharmony_ci0:34 0 (const int) 139617a3babSopenharmony_ci0:34 Constant: 140617a3babSopenharmony_ci0:34 0 (const int) 141617a3babSopenharmony_ci0:34 true case 142617a3babSopenharmony_ci0:35 move second child to first child ( temp float) 143617a3babSopenharmony_ci0:35 'scale' ( temp float) 144617a3babSopenharmony_ci0:35 f: direct index for structure ( global float) 145617a3babSopenharmony_ci0:35 s1_1: direct index for structure ( global structure{ global int i, global float f}) 146617a3babSopenharmony_ci0:35 indirect index ( temp structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 147617a3babSopenharmony_ci0:35 'foo2' ( uniform 5-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 148617a3babSopenharmony_ci0:35 add ( temp int) 149617a3babSopenharmony_ci0:35 add ( temp int) 150617a3babSopenharmony_ci0:35 i: direct index for structure ( global int) 151617a3babSopenharmony_ci0:35 indirect index ( temp structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 152617a3babSopenharmony_ci0: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}) 153617a3babSopenharmony_ci0: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}) 154617a3babSopenharmony_ci0:35 Constant: 155617a3babSopenharmony_ci0:35 0 (const int) 156617a3babSopenharmony_ci0:35 i: direct index for structure ( global int) 157617a3babSopenharmony_ci0:35 'foo' ( uniform structure{ global int i, global float f}) 158617a3babSopenharmony_ci0:35 Constant: 159617a3babSopenharmony_ci0:35 0 (const int) 160617a3babSopenharmony_ci0:35 Constant: 161617a3babSopenharmony_ci0:35 0 (const int) 162617a3babSopenharmony_ci0:35 Constant: 163617a3babSopenharmony_ci0:35 2 (const int) 164617a3babSopenharmony_ci0:35 Pre-Increment ( temp int) 165617a3babSopenharmony_ci0:35 'iLocal' ( temp int) 166617a3babSopenharmony_ci0:35 Constant: 167617a3babSopenharmony_ci0:35 2 (const int) 168617a3babSopenharmony_ci0:35 Constant: 169617a3babSopenharmony_ci0:35 1 (const int) 170617a3babSopenharmony_ci0:34 false case 171617a3babSopenharmony_ci0:37 move second child to first child ( temp float) 172617a3babSopenharmony_ci0:37 'scale' ( temp float) 173617a3babSopenharmony_ci0:37 f: direct index for structure ( global float) 174617a3babSopenharmony_ci0:37 s1_1: direct index for structure ( global structure{ global int i, global float f}) 175617a3babSopenharmony_ci0:37 direct index ( temp structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 176617a3babSopenharmony_ci0: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}) 177617a3babSopenharmony_ci0: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}) 178617a3babSopenharmony_ci0:37 Constant: 179617a3babSopenharmony_ci0:37 0 (const int) 180617a3babSopenharmony_ci0:37 Constant: 181617a3babSopenharmony_ci0:37 0 (const int) 182617a3babSopenharmony_ci0:37 Constant: 183617a3babSopenharmony_ci0:37 2 (const int) 184617a3babSopenharmony_ci0:37 Constant: 185617a3babSopenharmony_ci0:37 1 (const int) 186617a3babSopenharmony_ci0:43 move second child to first child ( temp 4-component vector of float) 187617a3babSopenharmony_ci0:43 'gl_FragColor' ( fragColor 4-component vector of float FragColor) 188617a3babSopenharmony_ci0:43 vector-scale ( temp 4-component vector of float) 189617a3babSopenharmony_ci0:43 'scale' ( temp float) 190617a3babSopenharmony_ci0:43 texture ( global 4-component vector of float) 191617a3babSopenharmony_ci0:43 'sampler' ( uniform sampler2D) 192617a3babSopenharmony_ci0:43 'coord' ( smooth in 2-component vector of float) 193617a3babSopenharmony_ci0:45 Sequence 194617a3babSopenharmony_ci0:45 move second child to first child ( temp 3-element array of 2-component vector of float) 195617a3babSopenharmony_ci0:45 'constructed' ( temp 3-element array of 2-component vector of float) 196617a3babSopenharmony_ci0:45 Construct vec2 ( temp 3-element array of 2-component vector of float) 197617a3babSopenharmony_ci0:45 'coord' ( smooth in 2-component vector of float) 198617a3babSopenharmony_ci0:45 Construct vec2 ( temp 2-component vector of float) 199617a3babSopenharmony_ci0:45 'scale' ( temp float) 200617a3babSopenharmony_ci0:45 Constant: 201617a3babSopenharmony_ci0:45 1.000000 202617a3babSopenharmony_ci0:45 2.000000 203617a3babSopenharmony_ci0:46 add second child into first child ( temp 4-component vector of float) 204617a3babSopenharmony_ci0:46 'gl_FragColor' ( fragColor 4-component vector of float FragColor) 205617a3babSopenharmony_ci0:46 Construct vec4 ( temp 4-component vector of float) 206617a3babSopenharmony_ci0:46 indirect index ( temp 2-component vector of float) 207617a3babSopenharmony_ci0:46 'constructed' ( temp 3-element array of 2-component vector of float) 208617a3babSopenharmony_ci0:46 i: direct index for structure ( global int) 209617a3babSopenharmony_ci0:46 'foo' ( uniform structure{ global int i, global float f}) 210617a3babSopenharmony_ci0:46 Constant: 211617a3babSopenharmony_ci0:46 0 (const int) 212617a3babSopenharmony_ci0:46 indirect index ( temp 2-component vector of float) 213617a3babSopenharmony_ci0:46 'constructed' ( temp 3-element array of 2-component vector of float) 214617a3babSopenharmony_ci0:46 i: direct index for structure ( global int) 215617a3babSopenharmony_ci0:46 'foo' ( uniform structure{ global int i, global float f}) 216617a3babSopenharmony_ci0:46 Constant: 217617a3babSopenharmony_ci0:46 0 (const int) 218617a3babSopenharmony_ci0:? Linker Objects 219617a3babSopenharmony_ci0:? 'sampler' ( uniform sampler2D) 220617a3babSopenharmony_ci0:? 'coord' ( smooth in 2-component vector of float) 221617a3babSopenharmony_ci0:? 'foo' ( uniform structure{ global int i, global float f}) 222617a3babSopenharmony_ci0:? 'foo2' ( uniform 5-element array of structure{ global int i, global float f, global structure{ global int i, global float f} s1_1}) 223617a3babSopenharmony_ci0:? '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}) 224617a3babSopenharmony_ci0:? 'Count' ( uniform int) 225617a3babSopenharmony_ci 226