1 spv.functionSemantics.frag 2 // Module Version 10000 3 // Generated by (magic number): 80007 4 // Id's are bound by 156 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint Fragment 4 "main" 76 152 10 ExecutionMode 4 OriginUpperLeft 11 Source GLSL 400 12 Name 4 "main" 13 Name 15 "foo(i1;i1;i1;i1;i1;i1;" 14 Name 9 "a" 15 Name 10 "b" 16 Name 11 "c" 17 Name 12 "d" 18 Name 13 "e" 19 Name 14 "f" 20 Name 25 "foo2(f1;vf3;i1;" 21 Name 22 "a" 22 Name 23 "b" 23 Name 24 "r" 24 Name 28 "foo3(" 25 Name 30 "sum" 26 Name 76 "u" 27 Name 89 "t" 28 Name 92 "s" 29 MemberName 92(s) 0 "t" 30 Name 94 "f" 31 Name 98 "color" 32 Name 104 "e" 33 Name 105 "param" 34 Name 106 "param" 35 Name 107 "param" 36 Name 108 "param" 37 Name 123 "ret" 38 Name 125 "tempReturn" 39 Name 130 "tempArg" 40 Name 131 "param" 41 Name 132 "param" 42 Name 133 "param" 43 Name 136 "arg" 44 Name 152 "gl_FragColor" 45 Decorate 152(gl_FragColor) Location 0 46 2: TypeVoid 47 3: TypeFunction 2 48 6: TypeInt 32 1 49 7: TypePointer Function 6(int) 50 8: TypeFunction 6(int) 7(ptr) 6(int) 7(ptr) 6(int) 7(ptr) 7(ptr) 51 17: TypeFloat 32 52 18: TypePointer Function 17(float) 53 19: TypeVector 17(float) 3 54 20: TypePointer Function 19(fvec3) 55 21: TypeFunction 6(int) 18(ptr) 20(ptr) 7(ptr) 56 27: TypeFunction 6(int) 57 38: 6(int) Constant 64 58 43: 6(int) Constant 1024 59 62: 17(float) Constant 1077936128 60 66: 17(float) Constant 1084227584 61 67: TypeInt 32 0 62 68: 67(int) Constant 1 63 75: TypePointer Input 17(float) 64 76(u): 75(ptr) Variable Input 65 78: 17(float) Constant 1078774989 66 79: TypeBool 67 84: 6(int) Constant 1000000 68 86: 6(int) Constant 2000000 69 90: 6(int) Constant 2 70 91: TypeVector 6(int) 4 71 92(s): TypeStruct 91(ivec4) 72 93: TypePointer Function 92(s) 73 95: 6(int) Constant 0 74 96: 6(int) Constant 32 75 99: 6(int) Constant 1 76 103: 6(int) Constant 8 77 115: 6(int) Constant 128 78 124: TypePointer Private 6(int) 79 125(tempReturn): 124(ptr) Variable Private 80 126: 17(float) Constant 1082130432 81 127: 17(float) Constant 1065353216 82 128: 17(float) Constant 1073741824 83 129: 19(fvec3) ConstantComposite 127 128 62 84 150: TypeVector 17(float) 4 85 151: TypePointer Output 150(fvec4) 86 152(gl_FragColor): 151(ptr) Variable Output 87 4(main): 2 Function None 3 88 5: Label 89 89(t): 7(ptr) Variable Function 90 94(f): 93(ptr) Variable Function 91 98(color): 7(ptr) Variable Function 92 104(e): 7(ptr) Variable Function 93 105(param): 7(ptr) Variable Function 94 106(param): 7(ptr) Variable Function 95 107(param): 7(ptr) Variable Function 96 108(param): 7(ptr) Variable Function 97 123(ret): 18(ptr) Variable Function 98 130(tempArg): 7(ptr) Variable Function 99 131(param): 18(ptr) Variable Function 100 132(param): 20(ptr) Variable Function 101 133(param): 7(ptr) Variable Function 102 136(arg): 18(ptr) Variable Function 103 Store 89(t) 90 104 97: 7(ptr) AccessChain 94(f) 95 68 105 Store 97 96 106 100: 6(int) Load 89(t) 107 101: 6(int) Load 89(t) 108 102: 6(int) IAdd 100 101 109 Store 105(param) 99 110 Store 106(param) 102 111 109: 7(ptr) AccessChain 94(f) 95 68 112 110: 6(int) Load 109 113 Store 108(param) 110 114 111: 6(int) FunctionCall 15(foo(i1;i1;i1;i1;i1;i1;) 105(param) 90 106(param) 103 107(param) 108(param) 115 112: 6(int) Load 107(param) 116 Store 104(e) 112 117 113: 6(int) Load 108(param) 118 114: 7(ptr) AccessChain 94(f) 95 68 119 Store 114 113 120 Store 98(color) 111 121 116: 6(int) Load 104(e) 122 117: 7(ptr) AccessChain 94(f) 95 68 123 118: 6(int) Load 117 124 119: 6(int) IAdd 116 118 125 120: 6(int) IMul 115 119 126 121: 6(int) Load 98(color) 127 122: 6(int) IAdd 121 120 128 Store 98(color) 122 129 Store 131(param) 126 130 Store 132(param) 129 131 134: 6(int) FunctionCall 25(foo2(f1;vf3;i1;) 131(param) 132(param) 133(param) 132 135: 6(int) Load 133(param) 133 Store 130(tempArg) 135 134 Store 125(tempReturn) 134 135 137: 6(int) Load 130(tempArg) 136 138: 17(float) ConvertSToF 137 137 Store 136(arg) 138 138 139: 6(int) Load 125(tempReturn) 139 140: 17(float) ConvertSToF 139 140 Store 123(ret) 140 141 141: 17(float) Load 123(ret) 142 142: 17(float) Load 136(arg) 143 143: 17(float) FAdd 141 142 144 144: 6(int) ConvertFToS 143 145 145: 6(int) Load 98(color) 146 146: 6(int) IAdd 145 144 147 Store 98(color) 146 148 147: 6(int) FunctionCall 28(foo3() 149 148: 6(int) Load 98(color) 150 149: 6(int) IAdd 148 147 151 Store 98(color) 149 152 153: 6(int) Load 98(color) 153 154: 17(float) ConvertSToF 153 154 155: 150(fvec4) CompositeConstruct 154 154 154 154 155 Store 152(gl_FragColor) 155 156 Return 157 FunctionEnd 158 15(foo(i1;i1;i1;i1;i1;i1;): 6(int) Function None 8 159 9(a): 7(ptr) FunctionParameter 160 10(b): 6(int) FunctionParameter 161 11(c): 7(ptr) FunctionParameter 162 12(d): 6(int) FunctionParameter 163 13(e): 7(ptr) FunctionParameter 164 14(f): 7(ptr) FunctionParameter 165 16: Label 166 30(sum): 7(ptr) Variable Function 167 31: 6(int) Load 9(a) 168 32: 6(int) IAdd 31 10(b) 169 33: 6(int) Load 11(c) 170 34: 6(int) IAdd 32 33 171 35: 6(int) IAdd 34 12(d) 172 36: 6(int) Load 14(f) 173 37: 6(int) IAdd 35 36 174 Store 30(sum) 37 175 39: 6(int) Load 9(a) 176 40: 6(int) IMul 39 38 177 Store 9(a) 40 178 41: 6(int) Load 11(c) 179 42: 6(int) IMul 41 38 180 Store 11(c) 42 181 Store 13(e) 43 182 44: 6(int) Load 14(f) 183 45: 6(int) IMul 44 38 184 Store 14(f) 45 185 46: 6(int) Load 9(a) 186 47: 6(int) IMul 38 10(b) 187 48: 6(int) IAdd 46 47 188 49: 6(int) Load 11(c) 189 50: 6(int) IAdd 48 49 190 51: 6(int) IMul 38 12(d) 191 52: 6(int) IAdd 50 51 192 53: 6(int) Load 13(e) 193 54: 6(int) IAdd 52 53 194 55: 6(int) Load 14(f) 195 56: 6(int) IAdd 54 55 196 57: 6(int) Load 30(sum) 197 58: 6(int) IAdd 57 56 198 Store 30(sum) 58 199 59: 6(int) Load 30(sum) 200 ReturnValue 59 201 FunctionEnd 202 25(foo2(f1;vf3;i1;): 6(int) Function None 21 203 22(a): 18(ptr) FunctionParameter 204 23(b): 20(ptr) FunctionParameter 205 24(r): 7(ptr) FunctionParameter 206 26: Label 207 63: 17(float) Load 22(a) 208 64: 17(float) FMul 62 63 209 65: 6(int) ConvertFToS 64 210 Store 24(r) 65 211 69: 18(ptr) AccessChain 23(b) 68 212 70: 17(float) Load 69 213 71: 17(float) FMul 66 70 214 72: 6(int) ConvertFToS 71 215 ReturnValue 72 216 FunctionEnd 217 28(foo3(): 6(int) Function None 27 218 29: Label 219 77: 17(float) Load 76(u) 220 80: 79(bool) FOrdGreaterThan 77 78 221 SelectionMerge 82 None 222 BranchConditional 80 81 82 223 81: Label 224 Kill 225 82: Label 226 ReturnValue 86 227 FunctionEnd 228