1 hlsl.target.frag 2 Shader version: 500 3 gl_FragCoord origin is upper left 4 0:? Sequence 5 0:7 Function Definition: @main(struct-PSInput-f1-u11;vf4;vf4; ( temp void) 6 0:7 Function Parameters: 7 0:7 'input' ( in structure{ temp float interp, temp uint no_interp}) 8 0:7 'out1' ( out 4-component vector of float) 9 0:7 'out2' ( out 4-component vector of float) 10 0:? Sequence 11 0:8 move second child to first child ( temp 4-component vector of float) 12 0:8 'out1' ( out 4-component vector of float) 13 0:8 Constant: 14 0:8 1.000000 15 0:8 1.000000 16 0:8 1.000000 17 0:8 1.000000 18 0:9 move second child to first child ( temp 4-component vector of float) 19 0:9 'out2' ( out 4-component vector of float) 20 0:9 Constant: 21 0:9 0.000000 22 0:9 0.000000 23 0:9 0.000000 24 0:9 0.000000 25 0:7 Function Definition: main( ( temp void) 26 0:7 Function Parameters: 27 0:? Sequence 28 0:7 Sequence 29 0:7 move second child to first child ( temp float) 30 0:7 interp: direct index for structure ( temp float) 31 0:? 'input' ( temp structure{ temp float interp, temp uint no_interp}) 32 0:7 Constant: 33 0:7 0 (const int) 34 0:? 'input.interp' (layout( location=0) in float) 35 0:7 move second child to first child ( temp uint) 36 0:7 no_interp: direct index for structure ( temp uint) 37 0:? 'input' ( temp structure{ temp float interp, temp uint no_interp}) 38 0:7 Constant: 39 0:7 1 (const int) 40 0:? 'input.no_interp' (layout( location=1) flat in uint) 41 0:7 Function Call: @main(struct-PSInput-f1-u11;vf4;vf4; ( temp void) 42 0:? 'input' ( temp structure{ temp float interp, temp uint no_interp}) 43 0:? 'out1' ( temp 4-component vector of float) 44 0:? 'out2' ( temp 4-component vector of float) 45 0:7 move second child to first child ( temp 4-component vector of float) 46 0:? 'out1' (layout( location=1) out 4-component vector of float) 47 0:? 'out1' ( temp 4-component vector of float) 48 0:7 move second child to first child ( temp 4-component vector of float) 49 0:? 'out2' (layout( location=3) out 4-component vector of float) 50 0:? 'out2' ( temp 4-component vector of float) 51 0:? Linker Objects 52 0:? 'input.interp' (layout( location=0) in float) 53 0:? 'input.no_interp' (layout( location=1) flat in uint) 54 0:? 'out1' (layout( location=1) out 4-component vector of float) 55 0:? 'out2' (layout( location=3) out 4-component vector of float) 56 57 58 Linked fragment stage: 59 60 61 Shader version: 500 62 gl_FragCoord origin is upper left 63 0:? Sequence 64 0:7 Function Definition: @main(struct-PSInput-f1-u11;vf4;vf4; ( temp void) 65 0:7 Function Parameters: 66 0:7 'input' ( in structure{ temp float interp, temp uint no_interp}) 67 0:7 'out1' ( out 4-component vector of float) 68 0:7 'out2' ( out 4-component vector of float) 69 0:? Sequence 70 0:8 move second child to first child ( temp 4-component vector of float) 71 0:8 'out1' ( out 4-component vector of float) 72 0:8 Constant: 73 0:8 1.000000 74 0:8 1.000000 75 0:8 1.000000 76 0:8 1.000000 77 0:9 move second child to first child ( temp 4-component vector of float) 78 0:9 'out2' ( out 4-component vector of float) 79 0:9 Constant: 80 0:9 0.000000 81 0:9 0.000000 82 0:9 0.000000 83 0:9 0.000000 84 0:7 Function Definition: main( ( temp void) 85 0:7 Function Parameters: 86 0:? Sequence 87 0:7 Sequence 88 0:7 move second child to first child ( temp float) 89 0:7 interp: direct index for structure ( temp float) 90 0:? 'input' ( temp structure{ temp float interp, temp uint no_interp}) 91 0:7 Constant: 92 0:7 0 (const int) 93 0:? 'input.interp' (layout( location=0) in float) 94 0:7 move second child to first child ( temp uint) 95 0:7 no_interp: direct index for structure ( temp uint) 96 0:? 'input' ( temp structure{ temp float interp, temp uint no_interp}) 97 0:7 Constant: 98 0:7 1 (const int) 99 0:? 'input.no_interp' (layout( location=1) flat in uint) 100 0:7 Function Call: @main(struct-PSInput-f1-u11;vf4;vf4; ( temp void) 101 0:? 'input' ( temp structure{ temp float interp, temp uint no_interp}) 102 0:? 'out1' ( temp 4-component vector of float) 103 0:? 'out2' ( temp 4-component vector of float) 104 0:7 move second child to first child ( temp 4-component vector of float) 105 0:? 'out1' (layout( location=1) out 4-component vector of float) 106 0:? 'out1' ( temp 4-component vector of float) 107 0:7 move second child to first child ( temp 4-component vector of float) 108 0:? 'out2' (layout( location=3) out 4-component vector of float) 109 0:? 'out2' ( temp 4-component vector of float) 110 0:? Linker Objects 111 0:? 'input.interp' (layout( location=0) in float) 112 0:? 'input.no_interp' (layout( location=1) flat in uint) 113 0:? 'out1' (layout( location=1) out 4-component vector of float) 114 0:? 'out2' (layout( location=3) out 4-component vector of float) 115 116 // Module Version 10000 117 // Generated by (magic number): 80007 118 // Id's are bound by 50 119 120 Capability Shader 121 1: ExtInstImport "GLSL.std.450" 122 MemoryModel Logical GLSL450 123 EntryPoint Fragment 4 "main" 26 32 46 48 124 ExecutionMode 4 OriginUpperLeft 125 Source HLSL 500 126 Name 4 "main" 127 Name 8 "PSInput" 128 MemberName 8(PSInput) 0 "interp" 129 MemberName 8(PSInput) 1 "no_interp" 130 Name 16 "@main(struct-PSInput-f1-u11;vf4;vf4;" 131 Name 13 "input" 132 Name 14 "out1" 133 Name 15 "out2" 134 Name 22 "input" 135 Name 26 "input.interp" 136 Name 32 "input.no_interp" 137 Name 36 "out1" 138 Name 37 "out2" 139 Name 38 "param" 140 Name 40 "param" 141 Name 41 "param" 142 Name 46 "out1" 143 Name 48 "out2" 144 Decorate 26(input.interp) Location 0 145 Decorate 32(input.no_interp) Flat 146 Decorate 32(input.no_interp) Location 1 147 Decorate 46(out1) Location 1 148 Decorate 48(out2) Location 3 149 2: TypeVoid 150 3: TypeFunction 2 151 6: TypeFloat 32 152 7: TypeInt 32 0 153 8(PSInput): TypeStruct 6(float) 7(int) 154 9: TypePointer Function 8(PSInput) 155 10: TypeVector 6(float) 4 156 11: TypePointer Function 10(fvec4) 157 12: TypeFunction 2 9(ptr) 11(ptr) 11(ptr) 158 18: 6(float) Constant 1065353216 159 19: 10(fvec4) ConstantComposite 18 18 18 18 160 20: 6(float) Constant 0 161 21: 10(fvec4) ConstantComposite 20 20 20 20 162 23: TypeInt 32 1 163 24: 23(int) Constant 0 164 25: TypePointer Input 6(float) 165 26(input.interp): 25(ptr) Variable Input 166 28: TypePointer Function 6(float) 167 30: 23(int) Constant 1 168 31: TypePointer Input 7(int) 169 32(input.no_interp): 31(ptr) Variable Input 170 34: TypePointer Function 7(int) 171 45: TypePointer Output 10(fvec4) 172 46(out1): 45(ptr) Variable Output 173 48(out2): 45(ptr) Variable Output 174 4(main): 2 Function None 3 175 5: Label 176 22(input): 9(ptr) Variable Function 177 36(out1): 11(ptr) Variable Function 178 37(out2): 11(ptr) Variable Function 179 38(param): 9(ptr) Variable Function 180 40(param): 11(ptr) Variable Function 181 41(param): 11(ptr) Variable Function 182 27: 6(float) Load 26(input.interp) 183 29: 28(ptr) AccessChain 22(input) 24 184 Store 29 27 185 33: 7(int) Load 32(input.no_interp) 186 35: 34(ptr) AccessChain 22(input) 30 187 Store 35 33 188 39: 8(PSInput) Load 22(input) 189 Store 38(param) 39 190 42: 2 FunctionCall 16(@main(struct-PSInput-f1-u11;vf4;vf4;) 38(param) 40(param) 41(param) 191 43: 10(fvec4) Load 40(param) 192 Store 36(out1) 43 193 44: 10(fvec4) Load 41(param) 194 Store 37(out2) 44 195 47: 10(fvec4) Load 36(out1) 196 Store 46(out1) 47 197 49: 10(fvec4) Load 37(out2) 198 Store 48(out2) 49 199 Return 200 FunctionEnd 201 16(@main(struct-PSInput-f1-u11;vf4;vf4;): 2 Function None 12 202 13(input): 9(ptr) FunctionParameter 203 14(out1): 11(ptr) FunctionParameter 204 15(out2): 11(ptr) FunctionParameter 205 17: Label 206 Store 14(out1) 19 207 Store 15(out2) 21 208 Return 209 FunctionEnd 210