John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame^] | 1 | spv.140.frag |
| 2 | |
| 3 | Linked fragment stage: |
| 4 | |
| 5 | |
| 6 | // Module Version 10000 |
| 7 | // Generated by (magic number): 80001 |
| 8 | // Id's are bound by 99 |
| 9 | |
| 10 | Capability Shader |
| 11 | 1: ExtInstImport "GLSL.std.450" |
| 12 | MemoryModel Logical GLSL450 |
| 13 | EntryPoint Fragment 4 "main" 43 28 33 33 |
| 14 | ExecutionMode 4 OriginLowerLeft |
| 15 | Source GLSL 140 |
| 16 | Name 4 "main" |
| 17 | Name 8 "foo(" |
| 18 | Name 11 "i1" |
| 19 | Name 16 "gl_FrontFacing" |
| 20 | Name 24 "i2" |
| 21 | Name 28 "o" |
| 22 | Name 33 "gl_ClipDistance" |
| 23 | Name 43 "k" |
| 24 | Name 55 "sampR" |
| 25 | Name 63 "sampB" |
| 26 | Name 86 "samp2Da" |
| 27 | Name 90 "bn" |
| 28 | MemberName 90(bn) 0 "matra" |
| 29 | MemberName 90(bn) 1 "matca" |
| 30 | MemberName 90(bn) 2 "matr" |
| 31 | MemberName 90(bn) 3 "matc" |
| 32 | MemberName 90(bn) 4 "matrdef" |
| 33 | Name 92 "" |
| 34 | Name 95 "bi" |
| 35 | MemberName 95(bi) 0 "v" |
| 36 | Name 98 "bname" |
| 37 | Decorate 16(gl_FrontFacing) BuiltIn FrontFacing |
| 38 | Decorate 33(gl_ClipDistance) BuiltIn ClipDistance |
| 39 | Decorate 89 ArrayStride 64 |
| 40 | Decorate 89 ArrayStride 64 |
| 41 | MemberDecorate 90(bn) 0 RowMajor |
| 42 | MemberDecorate 90(bn) 0 Offset 0 |
| 43 | MemberDecorate 90(bn) 0 MatrixStride 16 |
| 44 | MemberDecorate 90(bn) 1 ColMajor |
| 45 | MemberDecorate 90(bn) 1 Offset 256 |
| 46 | MemberDecorate 90(bn) 1 MatrixStride 16 |
| 47 | MemberDecorate 90(bn) 2 RowMajor |
| 48 | MemberDecorate 90(bn) 2 Offset 512 |
| 49 | MemberDecorate 90(bn) 2 MatrixStride 16 |
| 50 | MemberDecorate 90(bn) 3 ColMajor |
| 51 | MemberDecorate 90(bn) 3 Offset 576 |
| 52 | MemberDecorate 90(bn) 3 MatrixStride 16 |
| 53 | MemberDecorate 90(bn) 4 RowMajor |
| 54 | MemberDecorate 90(bn) 4 Offset 640 |
| 55 | MemberDecorate 90(bn) 4 MatrixStride 16 |
| 56 | Decorate 90(bn) Block |
| 57 | Decorate 94 ArrayStride 16 |
| 58 | MemberDecorate 95(bi) 0 Offset 0 |
| 59 | Decorate 95(bi) Block |
| 60 | 2: TypeVoid |
| 61 | 3: TypeFunction 2 |
| 62 | 6: TypeFloat 32 |
| 63 | 7: TypeFunction 6(float) |
| 64 | 10: TypePointer Private 6(float) |
| 65 | 11(i1): 10(ptr) Variable Private |
| 66 | 12: TypePointer Function 6(float) |
| 67 | 14: TypeBool |
| 68 | 15: TypePointer Input 14(bool) |
| 69 | 16(gl_FrontFacing): 15(ptr) Variable Input |
| 70 | 20: 6(float) Constant 3221225472 |
| 71 | 22: 6(float) Constant 1073741824 |
| 72 | 24(i2): 10(ptr) Variable Private |
| 73 | 25: 6(float) Constant 1120665600 |
| 74 | 26: TypeVector 6(float) 4 |
| 75 | 27: TypePointer Output 26(fvec4) |
| 76 | 28(o): 27(ptr) Variable Output |
| 77 | 29: TypeInt 32 0 |
| 78 | 30: 29(int) Constant 5 |
| 79 | 31: TypeArray 6(float) 30 |
| 80 | 32: TypePointer Input 31 |
| 81 | 33(gl_ClipDistance): 32(ptr) Variable Input |
| 82 | 34: TypeInt 32 1 |
| 83 | 35: 34(int) Constant 2 |
| 84 | 36: TypePointer Input 6(float) |
| 85 | 39: 29(int) Constant 1 |
| 86 | 40: TypePointer Output 6(float) |
| 87 | 42: TypePointer Input 26(fvec4) |
| 88 | 43(k): 42(ptr) Variable Input |
| 89 | 45: TypeVector 34(int) 4 |
| 90 | 50: 29(int) Constant 2 |
| 91 | 52: TypeImage 6(float) Rect sampled format:Unknown |
| 92 | 53: TypeSampledImage 52 |
| 93 | 54: TypePointer UniformConstant 53 |
| 94 | 55(sampR): 54(ptr) Variable UniformConstant |
| 95 | 58: TypeVector 34(int) 2 |
| 96 | 60: TypeImage 34(int) Buffer sampled format:Unknown |
| 97 | 61: TypeSampledImage 60 |
| 98 | 62: TypePointer UniformConstant 61 |
| 99 | 63(sampB): 62(ptr) Variable UniformConstant |
| 100 | 69: TypeVector 6(float) 2 |
| 101 | 72: 6(float) Constant 1120403456 |
| 102 | 74: 29(int) Constant 3 |
| 103 | 82: TypeImage 6(float) 2D sampled format:Unknown |
| 104 | 83: TypeSampledImage 82 |
| 105 | 84: TypeArray 83 74 |
| 106 | 85: TypePointer UniformConstant 84 |
| 107 | 86(samp2Da): 85(ptr) Variable UniformConstant |
| 108 | 87: TypeMatrix 26(fvec4) 4 |
| 109 | 88: 29(int) Constant 4 |
| 110 | 89: TypeArray 87 88 |
| 111 | 90(bn): TypeStruct 89 89 87 87 87 |
| 112 | 91: TypePointer Uniform 90(bn) |
| 113 | 92: 91(ptr) Variable Uniform |
| 114 | 93: TypeVector 6(float) 3 |
| 115 | 94: TypeArray 93(fvec3) 50 |
| 116 | 95(bi): TypeStruct 94 |
| 117 | 96: TypeArray 95(bi) 88 |
| 118 | 97: TypePointer Uniform 96 |
| 119 | 98(bname): 97(ptr) Variable Uniform |
| 120 | 4(main): 2 Function None 3 |
| 121 | 5: Label |
| 122 | 13: 12(ptr) Variable Function |
| 123 | 17: 14(bool) Load 16(gl_FrontFacing) |
| 124 | SelectionMerge 19 None |
| 125 | BranchConditional 17 18 21 |
| 126 | 18: Label |
| 127 | Store 13 20 |
| 128 | Branch 19 |
| 129 | 21: Label |
| 130 | Store 13 22 |
| 131 | Branch 19 |
| 132 | 19: Label |
| 133 | 23: 6(float) Load 13 |
| 134 | Store 11(i1) 23 |
| 135 | Store 24(i2) 25 |
| 136 | 37: 36(ptr) AccessChain 33(gl_ClipDistance) 35 |
| 137 | 38: 6(float) Load 37 |
| 138 | 41: 40(ptr) AccessChain 28(o) 39 |
| 139 | Store 41 38 |
| 140 | 44: 26(fvec4) Load 43(k) |
| 141 | 46: 45(ivec4) ConvertFToS 44 |
| 142 | 47: 34(int) CompositeExtract 46 0 |
| 143 | 48: 36(ptr) AccessChain 33(gl_ClipDistance) 47 |
| 144 | 49: 6(float) Load 48 |
| 145 | 51: 40(ptr) AccessChain 28(o) 50 |
| 146 | Store 51 49 |
| 147 | 56: 53 Load 55(sampR) |
| 148 | 57: 52 Image 56 |
| 149 | 59: 58(ivec2) ImageQuerySize 57 |
| 150 | 64: 61 Load 63(sampB) |
| 151 | 65: 60 Image 64 |
| 152 | 66: 34(int) ImageQuerySize 65 |
| 153 | 67: 58(ivec2) CompositeConstruct 66 66 |
| 154 | 68: 58(ivec2) IAdd 59 67 |
| 155 | 70: 69(fvec2) ConvertSToF 68 |
| 156 | 71: 6(float) CompositeExtract 70 0 |
| 157 | 73: 6(float) FDiv 71 72 |
| 158 | 75: 40(ptr) AccessChain 28(o) 74 |
| 159 | Store 75 73 |
| 160 | 76: 6(float) FunctionCall 8(foo() |
| 161 | 77: 40(ptr) AccessChain 28(o) 50 |
| 162 | Store 77 76 |
| 163 | Return |
| 164 | FunctionEnd |
| 165 | 8(foo(): 6(float) Function None 7 |
| 166 | 9: Label |
| 167 | 78: 6(float) Load 11(i1) |
| 168 | 79: 6(float) Load 24(i2) |
| 169 | 80: 6(float) FAdd 78 79 |
| 170 | ReturnValue 80 |
| 171 | FunctionEnd |