qining | 1354520 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 1 | spv.specConstantOperations.vert |
John Kessenich | 2b5ea9f | 2018-01-31 18:35:56 -0700 | [diff] [blame] | 2 | // Module Version 10000 |
John Kessenich | d6c9755 | 2018-06-04 15:33:31 -0600 | [diff] [blame] | 3 | // Generated by (magic number): 80007 |
John Kessenich | e434ad9 | 2017-03-30 10:09:28 -0600 | [diff] [blame] | 4 | // Id's are bound by 162 |
qining | 1354520 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 5 | |
| 6 | Capability Shader |
Rex Xu | 64bcfdb | 2016-09-05 16:10:14 +0800 | [diff] [blame] | 7 | Capability Float64 |
qining | 1354520 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 8 | 1: ExtInstImport "GLSL.std.450" |
| 9 | MemoryModel Logical GLSL450 |
| 10 | EntryPoint Vertex 4 "main" |
| 11 | Source GLSL 450 |
| 12 | Name 4 "main" |
qining | 4c91261 | 2016-04-01 10:35:16 -0400 | [diff] [blame] | 13 | Name 8 "non_const_array_size_from_spec_const(" |
qining | e24aa5e | 2016-04-07 15:40:27 -0400 | [diff] [blame] | 14 | Name 11 "i" |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 15 | Name 19 "sp_int" |
qining | e24aa5e | 2016-04-07 15:40:27 -0400 | [diff] [blame] | 16 | Name 27 "array" |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 17 | Name 40 "sp_float" |
| 18 | Name 42 "sp_uint" |
| 19 | Name 43 "sp_sint" |
| 20 | Name 45 "sp_double" |
John Kessenich | 8e6c6ce | 2017-01-28 19:29:42 -0700 | [diff] [blame] | 21 | Name 135 "a" |
| 22 | Name 136 "b" |
| 23 | Name 137 "c" |
| 24 | Name 142 "ternayArray1" |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 25 | Decorate 19(sp_int) SpecId 201 |
| 26 | Decorate 40(sp_float) SpecId 200 |
| 27 | Decorate 42(sp_uint) SpecId 202 |
| 28 | Decorate 43(sp_sint) SpecId 203 |
| 29 | Decorate 45(sp_double) SpecId 204 |
John Kessenich | 8e6c6ce | 2017-01-28 19:29:42 -0700 | [diff] [blame] | 30 | Decorate 135(a) SpecId 210 |
| 31 | Decorate 136(b) SpecId 211 |
| 32 | Decorate 137(c) SpecId 212 |
qining | 1354520 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 33 | 2: TypeVoid |
| 34 | 3: TypeFunction 2 |
qining | 4c91261 | 2016-04-01 10:35:16 -0400 | [diff] [blame] | 35 | 6: TypeInt 32 1 |
| 36 | 7: TypeFunction 6(int) |
qining | e24aa5e | 2016-04-07 15:40:27 -0400 | [diff] [blame] | 37 | 10: TypePointer Function 6(int) |
| 38 | 12: 6(int) Constant 0 |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 39 | 19(sp_int): 6(int) SpecConstant 10 |
qining | e24aa5e | 2016-04-07 15:40:27 -0400 | [diff] [blame] | 40 | 20: 6(int) Constant 2 |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 41 | 21: 6(int) SpecConstantOp 128 19(sp_int) 20 |
qining | e24aa5e | 2016-04-07 15:40:27 -0400 | [diff] [blame] | 42 | 22: TypeBool |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 43 | 24: 6(int) SpecConstantOp 128 19(sp_int) 20 |
qining | e24aa5e | 2016-04-07 15:40:27 -0400 | [diff] [blame] | 44 | 25: TypeArray 6(int) 24 |
| 45 | 26: TypePointer Function 25 |
| 46 | 29: 6(int) Constant 1023 |
| 47 | 32: 6(int) Constant 1 |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 48 | 34: 6(int) SpecConstantOp 128 19(sp_int) 32 |
qining | e24aa5e | 2016-04-07 15:40:27 -0400 | [diff] [blame] | 49 | 39: TypeFloat 32 |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 50 | 40(sp_float): 39(float) SpecConstant 1078530010 |
qining | e24aa5e | 2016-04-07 15:40:27 -0400 | [diff] [blame] | 51 | 41: TypeInt 32 0 |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 52 | 42(sp_uint): 41(int) SpecConstant 100 |
| 53 | 43(sp_sint): 6(int) SpecConstant 4294967286 |
Rex Xu | 64bcfdb | 2016-09-05 16:10:14 +0800 | [diff] [blame] | 54 | 44: TypeFloat 64 |
Jeff Bolz | af7a948 | 2018-05-22 23:13:30 -0500 | [diff] [blame] | 55 | 45(sp_double):44(float64_t) SpecConstant 2333366019 1074118410 |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 56 | 46: 39(float) SpecConstantOp 115 45(sp_double) |
Jeff Bolz | af7a948 | 2018-05-22 23:13:30 -0500 | [diff] [blame] | 57 | 47:44(float64_t) SpecConstantOp 115 40(sp_float) |
Rex Xu | 64bcfdb | 2016-09-05 16:10:14 +0800 | [diff] [blame] | 58 | 48: 41(int) Constant 0 |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 59 | 49: 22(bool) SpecConstantOp 171 19(sp_int) 48 |
| 60 | 50: 22(bool) SpecConstantOp 171 42(sp_uint) 48 |
Rex Xu | 64bcfdb | 2016-09-05 16:10:14 +0800 | [diff] [blame] | 61 | 51: 6(int) SpecConstantOp 169 49 32 12 |
| 62 | 52: 41(int) Constant 1 |
| 63 | 53: 41(int) SpecConstantOp 169 49 52 48 |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 64 | 54: 41(int) SpecConstantOp 128 43(sp_sint) 48 |
| 65 | 55: 6(int) SpecConstantOp 128 42(sp_uint) 48 |
| 66 | 56: 6(int) SpecConstantOp 126 19(sp_int) |
| 67 | 57: 6(int) SpecConstantOp 200 19(sp_int) |
| 68 | 58: 6(int) SpecConstantOp 128 19(sp_int) 20 |
| 69 | 59: 6(int) SpecConstantOp 128 19(sp_int) 20 |
Rex Xu | 64bcfdb | 2016-09-05 16:10:14 +0800 | [diff] [blame] | 70 | 60: 6(int) Constant 3 |
| 71 | 61: 6(int) SpecConstantOp 130 59 60 |
| 72 | 62: 6(int) Constant 4 |
| 73 | 63: 6(int) SpecConstantOp 130 58 62 |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 74 | 64: 6(int) SpecConstantOp 132 43(sp_sint) 20 |
Rex Xu | 64bcfdb | 2016-09-05 16:10:14 +0800 | [diff] [blame] | 75 | 65: 41(int) Constant 2 |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 76 | 66: 41(int) SpecConstantOp 132 42(sp_uint) 65 |
Rex Xu | 64bcfdb | 2016-09-05 16:10:14 +0800 | [diff] [blame] | 77 | 67: 6(int) Constant 5 |
| 78 | 68: 6(int) SpecConstantOp 135 64 67 |
| 79 | 69: 41(int) Constant 5 |
| 80 | 70: 41(int) SpecConstantOp 134 66 69 |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 81 | 71: 6(int) SpecConstantOp 139 43(sp_sint) 62 |
Rex Xu | 64bcfdb | 2016-09-05 16:10:14 +0800 | [diff] [blame] | 82 | 72: 41(int) Constant 4 |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 83 | 73: 41(int) SpecConstantOp 137 42(sp_uint) 72 |
| 84 | 74: 6(int) SpecConstantOp 132 43(sp_sint) 60 |
Rex Xu | 64bcfdb | 2016-09-05 16:10:14 +0800 | [diff] [blame] | 85 | 75: 6(int) SpecConstantOp 135 74 67 |
| 86 | 76: 6(int) Constant 10 |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 87 | 77: 6(int) SpecConstantOp 195 43(sp_sint) 76 |
Rex Xu | 64bcfdb | 2016-09-05 16:10:14 +0800 | [diff] [blame] | 88 | 78: 6(int) Constant 20 |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 89 | 79: 41(int) SpecConstantOp 194 42(sp_uint) 78 |
| 90 | 80: 6(int) SpecConstantOp 196 43(sp_sint) 32 |
| 91 | 81: 41(int) SpecConstantOp 196 42(sp_uint) 20 |
Rex Xu | 64bcfdb | 2016-09-05 16:10:14 +0800 | [diff] [blame] | 92 | 82: 6(int) Constant 256 |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 93 | 83: 6(int) SpecConstantOp 197 43(sp_sint) 82 |
Rex Xu | 64bcfdb | 2016-09-05 16:10:14 +0800 | [diff] [blame] | 94 | 84: 41(int) Constant 512 |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 95 | 85: 41(int) SpecConstantOp 198 42(sp_uint) 84 |
| 96 | 86: 22(bool) SpecConstantOp 177 19(sp_int) 43(sp_sint) |
| 97 | 87: 22(bool) SpecConstantOp 170 42(sp_uint) 42(sp_uint) |
| 98 | 88: 22(bool) SpecConstantOp 173 19(sp_int) 43(sp_sint) |
Rex Xu | 64bcfdb | 2016-09-05 16:10:14 +0800 | [diff] [blame] | 99 | 89: 6(int) Constant 30 |
| 100 | 90: TypeVector 6(int) 4 |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 101 | 91: 90(ivec4) SpecConstantComposite 78 89 19(sp_int) 19(sp_int) |
Rex Xu | 64bcfdb | 2016-09-05 16:10:14 +0800 | [diff] [blame] | 102 | 92: 41(int) Constant 4294967295 |
| 103 | 93: 41(int) Constant 4294967294 |
| 104 | 94: TypeVector 41(int) 4 |
Endre Oma | ad58d45 | 2017-01-31 21:08:19 +0100 | [diff] [blame] | 105 | 95: 94(ivec4) SpecConstantComposite 42(sp_uint) 42(sp_uint) 92 93 |
Rex Xu | 64bcfdb | 2016-09-05 16:10:14 +0800 | [diff] [blame] | 106 | 96: TypeVector 22(bool) 4 |
| 107 | 97: 94(ivec4) ConstantComposite 48 48 48 48 |
| 108 | 98: 96(bvec4) SpecConstantOp 171 91 97 |
| 109 | 99: 96(bvec4) SpecConstantOp 171 95 97 |
| 110 | 100: 90(ivec4) ConstantComposite 12 12 12 12 |
| 111 | 101: 90(ivec4) ConstantComposite 32 32 32 32 |
| 112 | 102: 90(ivec4) SpecConstantOp 169 98 101 100 |
| 113 | 103: 94(ivec4) ConstantComposite 52 52 52 52 |
| 114 | 104: 94(ivec4) SpecConstantOp 169 98 103 97 |
| 115 | 105: 94(ivec4) SpecConstantOp 128 91 97 |
| 116 | 106: 90(ivec4) SpecConstantOp 128 95 97 |
| 117 | 107: 90(ivec4) SpecConstantOp 200 91 |
| 118 | 108: 90(ivec4) SpecConstantOp 126 91 |
| 119 | 109: 90(ivec4) ConstantComposite 20 20 20 20 |
| 120 | 110: 90(ivec4) SpecConstantOp 128 91 109 |
| 121 | 111: 90(ivec4) SpecConstantOp 128 91 109 |
| 122 | 112: 90(ivec4) ConstantComposite 60 60 60 60 |
| 123 | 113: 90(ivec4) SpecConstantOp 130 111 112 |
| 124 | 114: 90(ivec4) ConstantComposite 62 62 62 62 |
| 125 | 115: 90(ivec4) SpecConstantOp 130 113 114 |
| 126 | 116: 90(ivec4) SpecConstantOp 132 91 109 |
| 127 | 117: 90(ivec4) ConstantComposite 67 67 67 67 |
| 128 | 118: 90(ivec4) SpecConstantOp 135 116 117 |
| 129 | 119: 90(ivec4) SpecConstantOp 139 91 114 |
| 130 | 120: 90(ivec4) ConstantComposite 76 76 76 76 |
| 131 | 121: 90(ivec4) SpecConstantOp 195 91 120 |
| 132 | 122: 90(ivec4) SpecConstantOp 196 91 109 |
| 133 | 123: 6(int) Constant 1024 |
| 134 | 124: 90(ivec4) ConstantComposite 123 123 123 123 |
| 135 | 125: 90(ivec4) SpecConstantOp 197 91 124 |
| 136 | 126: 41(int) Constant 2048 |
| 137 | 127: 94(ivec4) ConstantComposite 126 126 126 126 |
| 138 | 128: 94(ivec4) SpecConstantOp 198 95 127 |
| 139 | 129: 6(int) SpecConstantOp 81 91 0 |
| 140 | 130: TypeVector 6(int) 2 |
| 141 | 131: 130(ivec2) SpecConstantOp 79 91 91 1(GLSL.std.450) 0 |
| 142 | 132: TypeVector 6(int) 3 |
| 143 | 133: 132(ivec3) SpecConstantOp 79 91 91 2 1(GLSL.std.450) 0 |
| 144 | 134: 90(ivec4) SpecConstantOp 79 91 91 1(GLSL.std.450) 2 0 3 |
John Kessenich | 8e6c6ce | 2017-01-28 19:29:42 -0700 | [diff] [blame] | 145 | 135(a): 6(int) SpecConstant 4 |
| 146 | 136(b): 6(int) SpecConstant 6 |
| 147 | 137(c): 22(bool) SpecConstantTrue |
| 148 | 138: 22(bool) SpecConstantOp 173 135(a) 136(b) |
| 149 | 139: 6(int) SpecConstantOp 169 138 135(a) 136(b) |
| 150 | 140: TypeArray 6(int) 139 |
| 151 | 141: TypePointer Private 140 |
| 152 | 142(ternayArray1): 141(ptr) Variable Private |
| 153 | 143: 6(int) Constant 13 |
| 154 | 144: 6(int) Constant 17 |
| 155 | 145: 6(int) SpecConstantOp 169 137(c) 143 144 |
| 156 | 146: 6(int) SpecConstantOp 169 137(c) 135(a) 144 |
| 157 | 147: 22(bool) ConstantTrue |
| 158 | 148: 6(int) SpecConstantOp 169 147 135(a) 144 |
| 159 | 149: 22(bool) SpecConstantOp 173 135(a) 136(b) |
| 160 | 150: 6(int) SpecConstantOp 128 143 135(a) |
| 161 | 151: 6(int) SpecConstantOp 132 144 136(b) |
| 162 | 152: 6(int) SpecConstantOp 169 149 150 151 |
| 163 | 153: 22(bool) SpecConstantOp 168 137(c) |
| 164 | 154: TypeVector 39(float) 2 |
| 165 | 155: 39(float) Constant 1065353216 |
| 166 | 156: 154(fvec2) ConstantComposite 155 155 |
| 167 | 157: 39(float) Constant 1073741824 |
| 168 | 158: 154(fvec2) ConstantComposite 157 157 |
John Kessenich | e434ad9 | 2017-03-30 10:09:28 -0600 | [diff] [blame] | 169 | 159: TypeVector 22(bool) 2 |
| 170 | 160: 159(bvec2) SpecConstantComposite 153 153 |
| 171 | 161: 154(fvec2) SpecConstantOp 169 160 156 158 |
qining | 1354520 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 172 | 4(main): 2 Function None 3 |
| 173 | 5: Label |
| 174 | Return |
| 175 | FunctionEnd |
qining | 4c91261 | 2016-04-01 10:35:16 -0400 | [diff] [blame] | 176 | 8(non_const_array_size_from_spec_const(): 6(int) Function None 7 |
| 177 | 9: Label |
qining | e24aa5e | 2016-04-07 15:40:27 -0400 | [diff] [blame] | 178 | 11(i): 10(ptr) Variable Function |
| 179 | 27(array): 26(ptr) Variable Function |
| 180 | Store 11(i) 12 |
| 181 | Branch 13 |
| 182 | 13: Label |
| 183 | LoopMerge 15 16 None |
| 184 | Branch 17 |
| 185 | 17: Label |
| 186 | 18: 6(int) Load 11(i) |
| 187 | 23: 22(bool) SLessThan 18 21 |
| 188 | BranchConditional 23 14 15 |
| 189 | 14: Label |
| 190 | 28: 6(int) Load 11(i) |
| 191 | 30: 10(ptr) AccessChain 27(array) 28 |
| 192 | Store 30 29 |
| 193 | Branch 16 |
| 194 | 16: Label |
| 195 | 31: 6(int) Load 11(i) |
| 196 | 33: 6(int) IAdd 31 32 |
| 197 | Store 11(i) 33 |
| 198 | Branch 13 |
| 199 | 15: Label |
| 200 | 35: 10(ptr) AccessChain 27(array) 34 |
| 201 | 36: 6(int) Load 35 |
| 202 | ReturnValue 36 |
qining | 4c91261 | 2016-04-01 10:35:16 -0400 | [diff] [blame] | 203 | FunctionEnd |