John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame^] | 1 | spv.precision.frag |
| 2 | |
| 3 | Linked fragment stage: |
| 4 | |
| 5 | |
| 6 | // Module Version 10000 |
| 7 | // Generated by (magic number): 80001 |
| 8 | // Id's are bound by 112 |
| 9 | |
| 10 | Capability Shader |
| 11 | 1: ExtInstImport "GLSL.std.450" |
| 12 | MemoryModel Logical GLSL450 |
| 13 | EntryPoint Fragment 4 "main" 57 59 23 71 |
| 14 | ExecutionMode 4 OriginLowerLeft |
| 15 | Source ESSL 300 |
| 16 | Name 4 "main" |
| 17 | Name 12 "foo(vf3;" |
| 18 | Name 11 "mv3" |
| 19 | Name 19 "boolfun(vb2;" |
| 20 | Name 18 "bv2" |
| 21 | Name 23 "highfin" |
| 22 | Name 36 "sum" |
| 23 | Name 38 "uniform_medium" |
| 24 | Name 40 "uniform_high" |
| 25 | Name 46 "uniform_low" |
| 26 | Name 51 "arg1" |
| 27 | Name 53 "arg2" |
| 28 | Name 55 "d" |
| 29 | Name 57 "lowfin" |
| 30 | Name 59 "mediumfin" |
| 31 | Name 63 "global_highp" |
| 32 | Name 67 "local_highp" |
| 33 | Name 71 "mediumfout" |
| 34 | Name 102 "ub2" |
| 35 | Name 103 "param" |
| 36 | Decorate 36(sum) RelaxedPrecision |
| 37 | Decorate 38(uniform_medium) RelaxedPrecision |
| 38 | Decorate 46(uniform_low) RelaxedPrecision |
| 39 | Decorate 51(arg1) RelaxedPrecision |
| 40 | Decorate 53(arg2) RelaxedPrecision |
| 41 | Decorate 55(d) RelaxedPrecision |
| 42 | Decorate 57(lowfin) RelaxedPrecision |
| 43 | Decorate 59(mediumfin) RelaxedPrecision |
| 44 | Decorate 71(mediumfout) RelaxedPrecision |
| 45 | 2: TypeVoid |
| 46 | 3: TypeFunction 2 |
| 47 | 6: TypeFloat 32 |
| 48 | 7: TypeVector 6(float) 3 |
| 49 | 8: TypePointer Function 7(fvec3) |
| 50 | 9: TypeVector 6(float) 2 |
| 51 | 10: TypeFunction 9(fvec2) 8(ptr) |
| 52 | 14: TypeBool |
| 53 | 15: TypeVector 14(bool) 2 |
| 54 | 16: TypePointer Function 15(bvec2) |
| 55 | 17: TypeFunction 14(bool) 16(ptr) |
| 56 | 21: TypeVector 6(float) 4 |
| 57 | 22: TypePointer Input 21(fvec4) |
| 58 | 23(highfin): 22(ptr) Variable Input |
| 59 | 28: 14(bool) ConstantFalse |
| 60 | 29: 14(bool) ConstantTrue |
| 61 | 30: 15(bvec2) ConstantComposite 28 29 |
| 62 | 34: TypeInt 32 1 |
| 63 | 35: TypePointer Function 34(int) |
| 64 | 37: TypePointer UniformConstant 34(int) |
| 65 | 38(uniform_medium): 37(ptr) Variable UniformConstant |
| 66 | 40(uniform_high): 37(ptr) Variable UniformConstant |
| 67 | 46(uniform_low): 37(ptr) Variable UniformConstant |
| 68 | 50: TypePointer Function 6(float) |
| 69 | 52: 6(float) Constant 1078774989 |
| 70 | 54: 6(float) Constant 1232730691 |
| 71 | 56: TypePointer Input 6(float) |
| 72 | 57(lowfin): 56(ptr) Variable Input |
| 73 | 59(mediumfin): 56(ptr) Variable Input |
| 74 | 62: TypePointer Private 6(float) |
| 75 | 63(global_highp): 62(ptr) Variable Private |
| 76 | 66: TypePointer Function 21(fvec4) |
| 77 | 70: TypePointer Output 21(fvec4) |
| 78 | 71(mediumfout): 70(ptr) Variable Output |
| 79 | 80: 34(int) Constant 4 |
| 80 | 82: TypeVector 34(int) 2 |
| 81 | 90: TypeInt 32 0 |
| 82 | 91: 90(int) Constant 0 |
| 83 | 101: TypePointer UniformConstant 15(bvec2) |
| 84 | 102(ub2): 101(ptr) Variable UniformConstant |
| 85 | 109: 6(float) Constant 1065353216 |
| 86 | 4(main): 2 Function None 3 |
| 87 | 5: Label |
| 88 | 36(sum): 35(ptr) Variable Function |
| 89 | 51(arg1): 50(ptr) Variable Function |
| 90 | 53(arg2): 50(ptr) Variable Function |
| 91 | 55(d): 50(ptr) Variable Function |
| 92 | 67(local_highp): 66(ptr) Variable Function |
| 93 | 103(param): 16(ptr) Variable Function |
| 94 | 39: 34(int) Load 38(uniform_medium) |
| 95 | 41: 34(int) Load 40(uniform_high) |
| 96 | 42: 34(int) IAdd 39 41 |
| 97 | Store 36(sum) 42 |
| 98 | 43: 34(int) Load 40(uniform_high) |
| 99 | 44: 34(int) Load 36(sum) |
| 100 | 45: 34(int) IAdd 44 43 |
| 101 | Store 36(sum) 45 |
| 102 | 47: 34(int) Load 46(uniform_low) |
| 103 | 48: 34(int) Load 36(sum) |
| 104 | 49: 34(int) IAdd 48 47 |
| 105 | Store 36(sum) 49 |
| 106 | Store 51(arg1) 52 |
| 107 | Store 53(arg2) 54 |
| 108 | 58: 6(float) Load 57(lowfin) |
| 109 | 60: 6(float) Load 59(mediumfin) |
| 110 | 61: 6(float) ExtInst 1(GLSL.std.450) 67(Distance) 58 60 |
| 111 | Store 55(d) 61 |
| 112 | 64: 21(fvec4) Load 23(highfin) |
| 113 | 65: 6(float) ExtInst 1(GLSL.std.450) 66(Length) 64 |
| 114 | Store 63(global_highp) 65 |
| 115 | 68: 6(float) Load 63(global_highp) |
| 116 | 69: 21(fvec4) CompositeConstruct 68 68 68 68 |
| 117 | Store 67(local_highp) 69 |
| 118 | 72: 6(float) Load 55(d) |
| 119 | 73: 6(float) ExtInst 1(GLSL.std.450) 13(Sin) 72 |
| 120 | 74: 21(fvec4) CompositeConstruct 73 73 73 73 |
| 121 | 75: 6(float) Load 53(arg2) |
| 122 | 76: 21(fvec4) CompositeConstruct 75 75 75 75 |
| 123 | 77: 21(fvec4) FAdd 74 76 |
| 124 | 78: 21(fvec4) Load 67(local_highp) |
| 125 | 79: 21(fvec4) FAdd 77 78 |
| 126 | Store 71(mediumfout) 79 |
| 127 | 81: 34(int) Load 46(uniform_low) |
| 128 | 83: 82(ivec2) CompositeConstruct 81 81 |
| 129 | 84: 34(int) Load 40(uniform_high) |
| 130 | 85: 82(ivec2) CompositeConstruct 84 84 |
| 131 | 86: 82(ivec2) IMul 83 85 |
| 132 | 87: 34(int) Load 40(uniform_high) |
| 133 | 88: 82(ivec2) CompositeConstruct 87 87 |
| 134 | 89: 82(ivec2) IAdd 86 88 |
| 135 | 92: 34(int) CompositeExtract 89 0 |
| 136 | 93: 34(int) IAdd 80 92 |
| 137 | 94: 34(int) Load 36(sum) |
| 138 | 95: 34(int) IAdd 94 93 |
| 139 | Store 36(sum) 95 |
| 140 | 96: 34(int) Load 36(sum) |
| 141 | 97: 6(float) ConvertSToF 96 |
| 142 | 98: 21(fvec4) CompositeConstruct 97 97 97 97 |
| 143 | 99: 21(fvec4) Load 71(mediumfout) |
| 144 | 100: 21(fvec4) FAdd 99 98 |
| 145 | Store 71(mediumfout) 100 |
| 146 | 104: 15(bvec2) Load 102(ub2) |
| 147 | Store 103(param) 104 |
| 148 | 105: 14(bool) FunctionCall 19(boolfun(vb2;) 103(param) |
| 149 | SelectionMerge 107 None |
| 150 | BranchConditional 105 106 107 |
| 151 | 106: Label |
| 152 | 108: 21(fvec4) Load 71(mediumfout) |
| 153 | 110: 21(fvec4) CompositeConstruct 109 109 109 109 |
| 154 | 111: 21(fvec4) FAdd 108 110 |
| 155 | Store 71(mediumfout) 111 |
| 156 | Branch 107 |
| 157 | 107: Label |
| 158 | Return |
| 159 | FunctionEnd |
| 160 | 12(foo(vf3;): 9(fvec2) Function None 10 |
| 161 | 11(mv3): 8(ptr) FunctionParameter |
| 162 | 13: Label |
| 163 | 24: 21(fvec4) Load 23(highfin) |
| 164 | 25: 9(fvec2) VectorShuffle 24 24 0 1 |
| 165 | ReturnValue 25 |
| 166 | FunctionEnd |
| 167 | 19(boolfun(vb2;): 14(bool) Function None 17 |
| 168 | 18(bv2): 16(ptr) FunctionParameter |
| 169 | 20: Label |
| 170 | 27: 15(bvec2) Load 18(bv2) |
| 171 | 31: 15(bvec2) IEqual 27 30 |
| 172 | 32: 14(bool) All 31 |
| 173 | ReturnValue 32 |
| 174 | FunctionEnd |