John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 1 | spv.prepost.frag |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 2 | // Module Version 10000 |
John Kessenich | 07ed11f | 2017-10-07 11:33:11 -0600 | [diff] [blame^] | 3 | // Generated by (magic number): 80002 |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 4 | // Id's are bound by 94 |
| 5 | |
| 6 | Capability Shader |
| 7 | 1: ExtInstImport "GLSL.std.450" |
| 8 | MemoryModel Logical GLSL450 |
John Kessenich | 7ba6341 | 2015-12-20 17:37:07 -0700 | [diff] [blame] | 9 | EntryPoint Fragment 4 "main" 90 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 10 | ExecutionMode 4 OriginUpperLeft |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 11 | Source GLSL 140 |
| 12 | Name 4 "main" |
| 13 | Name 8 "index" |
| 14 | Name 14 "s" |
| 15 | MemberName 14(s) 0 "y" |
| 16 | Name 16 "str" |
| 17 | Name 22 "t" |
| 18 | Name 50 "x" |
| 19 | Name 61 "y" |
| 20 | Name 66 "z" |
| 21 | Name 73 "v" |
| 22 | Name 90 "gl_FragColor" |
John Kessenich | 2c6f48b | 2017-05-20 13:23:25 -0600 | [diff] [blame] | 23 | Decorate 90(gl_FragColor) Location 0 |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 24 | 2: TypeVoid |
| 25 | 3: TypeFunction 2 |
| 26 | 6: TypeInt 32 1 |
| 27 | 7: TypePointer Function 6(int) |
| 28 | 9: 6(int) Constant 5 |
| 29 | 10: TypeFloat 32 |
| 30 | 11: TypeInt 32 0 |
| 31 | 12: 11(int) Constant 5 |
| 32 | 13: TypeArray 10(float) 12 |
| 33 | 14(s): TypeStruct 13 |
| 34 | 15: TypePointer Function 14(s) |
| 35 | 17: 6(int) Constant 0 |
| 36 | 18: 6(int) Constant 4 |
| 37 | 19: 10(float) Constant 1073741824 |
| 38 | 20: TypePointer Function 10(float) |
| 39 | 24: 6(int) Constant 1 |
| 40 | 28: 10(float) Constant 1065353216 |
| 41 | 71: TypeVector 10(float) 4 |
| 42 | 72: TypePointer Function 71(fvec4) |
| 43 | 74: 10(float) Constant 1077936128 |
| 44 | 75: 10(float) Constant 1082130432 |
| 45 | 76: 71(fvec4) ConstantComposite 28 19 74 75 |
| 46 | 77: 11(int) Constant 2 |
| 47 | 81: 11(int) Constant 1 |
| 48 | 83: 11(int) Constant 3 |
| 49 | 87: 11(int) Constant 0 |
| 50 | 89: TypePointer Output 71(fvec4) |
| 51 | 90(gl_FragColor): 89(ptr) Variable Output |
| 52 | 4(main): 2 Function None 3 |
| 53 | 5: Label |
| 54 | 8(index): 7(ptr) Variable Function |
| 55 | 16(str): 15(ptr) Variable Function |
| 56 | 22(t): 20(ptr) Variable Function |
| 57 | 50(x): 20(ptr) Variable Function |
| 58 | 61(y): 20(ptr) Variable Function |
| 59 | 66(z): 20(ptr) Variable Function |
| 60 | 73(v): 72(ptr) Variable Function |
| 61 | Store 8(index) 9 |
| 62 | 21: 20(ptr) AccessChain 16(str) 17 18 |
| 63 | Store 21 19 |
| 64 | 23: 6(int) Load 8(index) |
| 65 | 25: 6(int) ISub 23 24 |
| 66 | Store 8(index) 25 |
| 67 | 26: 20(ptr) AccessChain 16(str) 17 25 |
| 68 | 27: 10(float) Load 26 |
| 69 | 29: 10(float) FAdd 27 28 |
| 70 | Store 26 29 |
| 71 | Store 22(t) 29 |
| 72 | 30: 10(float) Load 22(t) |
| 73 | 31: 20(ptr) AccessChain 16(str) 17 18 |
| 74 | 32: 10(float) Load 31 |
| 75 | 33: 10(float) FAdd 32 30 |
| 76 | 34: 20(ptr) AccessChain 16(str) 17 18 |
| 77 | Store 34 33 |
| 78 | 35: 20(ptr) AccessChain 16(str) 17 18 |
| 79 | 36: 10(float) Load 35 |
| 80 | 37: 10(float) FSub 36 28 |
| 81 | Store 35 37 |
| 82 | Store 22(t) 36 |
| 83 | 38: 6(int) Load 8(index) |
| 84 | 39: 6(int) IAdd 38 24 |
| 85 | Store 8(index) 39 |
| 86 | 40: 10(float) Load 22(t) |
| 87 | 41: 20(ptr) AccessChain 16(str) 17 38 |
| 88 | 42: 10(float) Load 41 |
| 89 | 43: 10(float) FAdd 42 40 |
| 90 | 44: 20(ptr) AccessChain 16(str) 17 38 |
| 91 | Store 44 43 |
| 92 | 45: 6(int) Load 8(index) |
| 93 | 46: 6(int) ISub 45 24 |
| 94 | Store 8(index) 46 |
| 95 | 47: 20(ptr) AccessChain 16(str) 17 46 |
| 96 | 48: 10(float) Load 47 |
| 97 | 49: 10(float) FSub 48 28 |
| 98 | Store 47 49 |
| 99 | 51: 20(ptr) AccessChain 16(str) 17 18 |
| 100 | 52: 10(float) Load 51 |
| 101 | Store 50(x) 52 |
| 102 | 53: 10(float) Load 50(x) |
| 103 | 54: 10(float) FAdd 53 28 |
| 104 | Store 50(x) 54 |
| 105 | 55: 10(float) Load 50(x) |
| 106 | 56: 10(float) FSub 55 28 |
| 107 | Store 50(x) 56 |
| 108 | 57: 10(float) Load 50(x) |
| 109 | 58: 10(float) FAdd 57 28 |
| 110 | Store 50(x) 58 |
| 111 | 59: 10(float) Load 50(x) |
| 112 | 60: 10(float) FSub 59 28 |
| 113 | Store 50(x) 60 |
| 114 | 62: 10(float) Load 50(x) |
| 115 | 63: 10(float) Load 50(x) |
| 116 | 64: 10(float) FAdd 63 28 |
| 117 | Store 50(x) 64 |
| 118 | 65: 10(float) FMul 62 64 |
| 119 | Store 61(y) 65 |
| 120 | 67: 10(float) Load 61(y) |
| 121 | 68: 10(float) Load 50(x) |
| 122 | 69: 10(float) FSub 68 28 |
| 123 | Store 50(x) 69 |
| 124 | 70: 10(float) FMul 67 68 |
| 125 | Store 66(z) 70 |
| 126 | Store 73(v) 76 |
| 127 | 78: 20(ptr) AccessChain 73(v) 77 |
| 128 | 79: 10(float) Load 78 |
| 129 | 80: 10(float) FSub 79 28 |
| 130 | Store 78 80 |
| 131 | 82: 20(ptr) AccessChain 73(v) 81 |
| 132 | Store 82 79 |
| 133 | 84: 20(ptr) AccessChain 73(v) 83 |
| 134 | 85: 10(float) Load 84 |
| 135 | 86: 10(float) FSub 85 28 |
| 136 | Store 84 86 |
| 137 | 88: 20(ptr) AccessChain 73(v) 87 |
| 138 | Store 88 86 |
| 139 | 91: 10(float) Load 66(z) |
| 140 | 92: 71(fvec4) Load 73(v) |
| 141 | 93: 71(fvec4) VectorTimesScalar 92 91 |
| 142 | Store 90(gl_FragColor) 93 |
| 143 | Return |
| 144 | FunctionEnd |