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