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