1spv.precision.frag 2// Module Version 10000 3// Generated by (magic number): 8000a 4// Id's are bound by 146 5 6 Capability Shader 7 1: ExtInstImport "GLSL.std.450" 8 MemoryModel Logical GLSL450 9 EntryPoint Fragment 4 "main" 23 62 64 76 119 10 ExecutionMode 4 OriginUpperLeft 11 Source ESSL 310 12 Name 4 "main" 13 Name 12 "foo(vf3;" 14 Name 11 "mv3" 15 Name 19 "boolfun(vb2;" 16 Name 18 "bv2" 17 Name 23 "highfin" 18 Name 41 "sum" 19 Name 43 "uniform_medium" 20 Name 45 "uniform_high" 21 Name 51 "uniform_low" 22 Name 56 "arg1" 23 Name 58 "arg2" 24 Name 60 "d" 25 Name 62 "lowfin" 26 Name 64 "mediumfin" 27 Name 68 "global_highp" 28 Name 72 "local_highp" 29 Name 76 "mediumfout" 30 Name 107 "ub2" 31 Name 108 "param" 32 Name 117 "S" 33 MemberName 117(S) 0 "a" 34 MemberName 117(S) 1 "b" 35 Name 119 "s" 36 Decorate 12(foo(vf3;) RelaxedPrecision 37 Decorate 11(mv3) RelaxedPrecision 38 Decorate 23(highfin) Location 2 39 Decorate 27 RelaxedPrecision 40 Decorate 28 RelaxedPrecision 41 Decorate 41(sum) RelaxedPrecision 42 Decorate 43(uniform_medium) RelaxedPrecision 43 Decorate 44 RelaxedPrecision 44 Decorate 49 RelaxedPrecision 45 Decorate 51(uniform_low) RelaxedPrecision 46 Decorate 52 RelaxedPrecision 47 Decorate 53 RelaxedPrecision 48 Decorate 54 RelaxedPrecision 49 Decorate 56(arg1) RelaxedPrecision 50 Decorate 58(arg2) RelaxedPrecision 51 Decorate 60(d) RelaxedPrecision 52 Decorate 62(lowfin) RelaxedPrecision 53 Decorate 62(lowfin) Location 0 54 Decorate 63 RelaxedPrecision 55 Decorate 64(mediumfin) RelaxedPrecision 56 Decorate 64(mediumfin) Location 1 57 Decorate 65 RelaxedPrecision 58 Decorate 66 RelaxedPrecision 59 Decorate 76(mediumfout) RelaxedPrecision 60 Decorate 76(mediumfout) Location 0 61 Decorate 77 RelaxedPrecision 62 Decorate 78 RelaxedPrecision 63 Decorate 79 RelaxedPrecision 64 Decorate 80 RelaxedPrecision 65 Decorate 81 RelaxedPrecision 66 Decorate 82 RelaxedPrecision 67 Decorate 86 RelaxedPrecision 68 Decorate 88 RelaxedPrecision 69 Decorate 90 RelaxedPrecision 70 Decorate 91 RelaxedPrecision 71 Decorate 93 RelaxedPrecision 72 Decorate 94 RelaxedPrecision 73 Decorate 97 RelaxedPrecision 74 Decorate 98 RelaxedPrecision 75 Decorate 99 RelaxedPrecision 76 Decorate 100 RelaxedPrecision 77 Decorate 101 RelaxedPrecision 78 Decorate 102 RelaxedPrecision 79 Decorate 103 RelaxedPrecision 80 Decorate 104 RelaxedPrecision 81 Decorate 105 RelaxedPrecision 82 Decorate 113 RelaxedPrecision 83 Decorate 115 RelaxedPrecision 84 Decorate 116 RelaxedPrecision 85 MemberDecorate 117(S) 1 RelaxedPrecision 86 Decorate 119(s) Location 3 87 Decorate 123 RelaxedPrecision 88 Decorate 127 RelaxedPrecision 89 Decorate 128 RelaxedPrecision 90 Decorate 129 RelaxedPrecision 91 Decorate 130 RelaxedPrecision 92 Decorate 131 RelaxedPrecision 93 Decorate 132 RelaxedPrecision 94 Decorate 135 RelaxedPrecision 95 Decorate 139 RelaxedPrecision 96 Decorate 140 RelaxedPrecision 97 Decorate 143 RelaxedPrecision 98 Decorate 144 RelaxedPrecision 99 Decorate 145 RelaxedPrecision 100 2: TypeVoid 101 3: TypeFunction 2 102 6: TypeFloat 32 103 7: TypeVector 6(float) 3 104 8: TypePointer Function 7(fvec3) 105 9: TypeVector 6(float) 2 106 10: TypeFunction 9(fvec2) 8(ptr) 107 14: TypeBool 108 15: TypeVector 14(bool) 2 109 16: TypePointer Function 15(bvec2) 110 17: TypeFunction 14(bool) 16(ptr) 111 21: TypeVector 6(float) 4 112 22: TypePointer Input 21(fvec4) 113 23(highfin): 22(ptr) Variable Input 114 26: TypePointer Function 9(fvec2) 115 32: 14(bool) ConstantFalse 116 33: 14(bool) ConstantTrue 117 34: 15(bvec2) ConstantComposite 32 33 118 39: TypeInt 32 1 119 40: TypePointer Function 39(int) 120 42: TypePointer Private 39(int) 12143(uniform_medium): 42(ptr) Variable Private 12245(uniform_high): 42(ptr) Variable Private 123 51(uniform_low): 42(ptr) Variable Private 124 55: TypePointer Function 6(float) 125 57: 6(float) Constant 1078774989 126 59: 6(float) Constant 1232730691 127 61: TypePointer Input 6(float) 128 62(lowfin): 61(ptr) Variable Input 129 64(mediumfin): 61(ptr) Variable Input 130 67: TypePointer Private 6(float) 13168(global_highp): 67(ptr) Variable Private 132 71: TypePointer Function 21(fvec4) 133 75: TypePointer Output 21(fvec4) 134 76(mediumfout): 75(ptr) Variable Output 135 85: 39(int) Constant 4 136 87: TypeVector 39(int) 2 137 95: TypeInt 32 0 138 96: 95(int) Constant 0 139 106: TypePointer Private 15(bvec2) 140 107(ub2): 106(ptr) Variable Private 141 114: 6(float) Constant 1065353216 142 117(S): TypeStruct 6(float) 6(float) 143 118: TypePointer Input 117(S) 144 119(s): 118(ptr) Variable Input 145 120: 39(int) Constant 0 146 125: 39(int) Constant 1 147 133: 6(float) Constant 1082549862 148 138: 6(float) Constant 1073741824 149 142: 6(float) Constant 1077936128 150 4(main): 2 Function None 3 151 5: Label 152 41(sum): 40(ptr) Variable Function 153 56(arg1): 55(ptr) Variable Function 154 58(arg2): 55(ptr) Variable Function 155 60(d): 55(ptr) Variable Function 156 72(local_highp): 71(ptr) Variable Function 157 108(param): 16(ptr) Variable Function 158 135: 71(ptr) Variable Function 159 44: 39(int) Load 43(uniform_medium) 160 46: 39(int) Load 45(uniform_high) 161 47: 39(int) IAdd 44 46 162 Store 41(sum) 47 163 48: 39(int) Load 45(uniform_high) 164 49: 39(int) Load 41(sum) 165 50: 39(int) IAdd 49 48 166 Store 41(sum) 50 167 52: 39(int) Load 51(uniform_low) 168 53: 39(int) Load 41(sum) 169 54: 39(int) IAdd 53 52 170 Store 41(sum) 54 171 Store 56(arg1) 57 172 Store 58(arg2) 59 173 63: 6(float) Load 62(lowfin) 174 65: 6(float) Load 64(mediumfin) 175 66: 6(float) ExtInst 1(GLSL.std.450) 67(Distance) 63 65 176 Store 60(d) 66 177 69: 21(fvec4) Load 23(highfin) 178 70: 6(float) ExtInst 1(GLSL.std.450) 66(Length) 69 179 Store 68(global_highp) 70 180 73: 6(float) Load 68(global_highp) 181 74: 21(fvec4) CompositeConstruct 73 73 73 73 182 Store 72(local_highp) 74 183 77: 6(float) Load 60(d) 184 78: 6(float) ExtInst 1(GLSL.std.450) 13(Sin) 77 185 79: 21(fvec4) CompositeConstruct 78 78 78 78 186 80: 6(float) Load 58(arg2) 187 81: 21(fvec4) CompositeConstruct 80 80 80 80 188 82: 21(fvec4) FAdd 79 81 189 83: 21(fvec4) Load 72(local_highp) 190 84: 21(fvec4) FAdd 82 83 191 Store 76(mediumfout) 84 192 86: 39(int) Load 51(uniform_low) 193 88: 87(ivec2) CompositeConstruct 86 86 194 89: 39(int) Load 45(uniform_high) 195 90: 87(ivec2) CompositeConstruct 89 89 196 91: 87(ivec2) IMul 88 90 197 92: 39(int) Load 45(uniform_high) 198 93: 87(ivec2) CompositeConstruct 92 92 199 94: 87(ivec2) IAdd 91 93 200 97: 39(int) CompositeExtract 94 0 201 98: 39(int) IAdd 85 97 202 99: 39(int) Load 41(sum) 203 100: 39(int) IAdd 99 98 204 Store 41(sum) 100 205 101: 39(int) Load 41(sum) 206 102: 6(float) ConvertSToF 101 207 103: 21(fvec4) CompositeConstruct 102 102 102 102 208 104: 21(fvec4) Load 76(mediumfout) 209 105: 21(fvec4) FAdd 104 103 210 Store 76(mediumfout) 105 211 109: 15(bvec2) Load 107(ub2) 212 Store 108(param) 109 213 110: 14(bool) FunctionCall 19(boolfun(vb2;) 108(param) 214 SelectionMerge 112 None 215 BranchConditional 110 111 112 216 111: Label 217 113: 21(fvec4) Load 76(mediumfout) 218 115: 21(fvec4) CompositeConstruct 114 114 114 114 219 116: 21(fvec4) FAdd 113 115 220 Store 76(mediumfout) 116 221 Branch 112 222 112: Label 223 121: 61(ptr) AccessChain 119(s) 120 224 122: 6(float) Load 121 225 123: 21(fvec4) Load 76(mediumfout) 226 124: 21(fvec4) VectorTimesScalar 123 122 227 Store 76(mediumfout) 124 228 126: 61(ptr) AccessChain 119(s) 125 229 127: 6(float) Load 126 230 128: 21(fvec4) Load 76(mediumfout) 231 129: 21(fvec4) VectorTimesScalar 128 127 232 Store 76(mediumfout) 129 233 130: 6(float) Load 64(mediumfin) 234 131: 6(float) Load 64(mediumfin) 235 132: 6(float) FMul 130 131 236 134: 14(bool) FOrdGreaterThan 132 133 237 SelectionMerge 137 None 238 BranchConditional 134 136 141 239 136: Label 240 139: 21(fvec4) Load 76(mediumfout) 241 140: 21(fvec4) VectorTimesScalar 139 138 242 Store 135 140 243 Branch 137 244 141: Label 245 143: 21(fvec4) Load 76(mediumfout) 246 144: 21(fvec4) VectorTimesScalar 143 142 247 Store 135 144 248 Branch 137 249 137: Label 250 145: 21(fvec4) Load 135 251 Store 76(mediumfout) 145 252 Return 253 FunctionEnd 254 12(foo(vf3;): 9(fvec2) Function None 10 255 11(mv3): 8(ptr) FunctionParameter 256 13: Label 257 27: 26(ptr) Variable Function 258 24: 21(fvec4) Load 23(highfin) 259 25: 9(fvec2) VectorShuffle 24 24 0 1 260 Store 27 25 261 28: 9(fvec2) Load 27 262 ReturnValue 28 263 FunctionEnd 26419(boolfun(vb2;): 14(bool) Function None 17 265 18(bv2): 16(ptr) FunctionParameter 266 20: Label 267 31: 15(bvec2) Load 18(bv2) 268 35: 15(bvec2) LogicalEqual 31 34 269 36: 14(bool) All 35 270 ReturnValue 36 271 FunctionEnd 272