qining | 1354520 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 1 | spv.specConstantOperations.vert |
| 2 | Warning, version 450 is not yet complete; most version-specific features are present, but some are missing. |
| 3 | |
| 4 | |
| 5 | Linked vertex stage: |
| 6 | |
| 7 | |
| 8 | // Module Version 10000 |
| 9 | // Generated by (magic number): 80001 |
qining | e24aa5e | 2016-04-07 15:40:27 -0400 | [diff] [blame^] | 10 | // Id's are bound by 134 |
qining | 1354520 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 11 | |
| 12 | Capability Shader |
qining | 1354520 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 13 | 1: ExtInstImport "GLSL.std.450" |
| 14 | MemoryModel Logical GLSL450 |
| 15 | EntryPoint Vertex 4 "main" |
| 16 | Source GLSL 450 |
| 17 | Name 4 "main" |
qining | 4c91261 | 2016-04-01 10:35:16 -0400 | [diff] [blame] | 18 | Name 8 "non_const_array_size_from_spec_const(" |
qining | e24aa5e | 2016-04-07 15:40:27 -0400 | [diff] [blame^] | 19 | Name 11 "i" |
| 20 | Name 27 "array" |
| 21 | Decorate 19 SpecId 201 |
| 22 | Decorate 40 SpecId 200 |
| 23 | Decorate 42 SpecId 202 |
| 24 | Decorate 43 SpecId 203 |
qining | 1354520 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 25 | 2: TypeVoid |
| 26 | 3: TypeFunction 2 |
qining | 4c91261 | 2016-04-01 10:35:16 -0400 | [diff] [blame] | 27 | 6: TypeInt 32 1 |
| 28 | 7: TypeFunction 6(int) |
qining | e24aa5e | 2016-04-07 15:40:27 -0400 | [diff] [blame^] | 29 | 10: TypePointer Function 6(int) |
| 30 | 12: 6(int) Constant 0 |
| 31 | 19: 6(int) SpecConstant 10 |
| 32 | 20: 6(int) Constant 2 |
| 33 | 21: 6(int) SpecConstantOp 128 19 20 |
| 34 | 22: TypeBool |
| 35 | 24: 6(int) SpecConstantOp 128 19 20 |
| 36 | 25: TypeArray 6(int) 24 |
| 37 | 26: TypePointer Function 25 |
| 38 | 29: 6(int) Constant 1023 |
| 39 | 32: 6(int) Constant 1 |
| 40 | 34: 6(int) SpecConstantOp 128 19 32 |
| 41 | 39: TypeFloat 32 |
| 42 | 40: 39(float) SpecConstant 1078530010 |
| 43 | 41: TypeInt 32 0 |
| 44 | 42: 41(int) SpecConstant 100 |
| 45 | 43: 6(int) SpecConstant 4294967286 |
| 46 | 44: 41(int) Constant 0 |
| 47 | 45: 22(bool) SpecConstantOp 171 19 44 |
| 48 | 46: 22(bool) SpecConstantOp 171 42 44 |
| 49 | 47: 6(int) SpecConstantOp 169 45 32 12 |
| 50 | 48: 41(int) Constant 1 |
| 51 | 49: 41(int) SpecConstantOp 169 45 48 44 |
| 52 | 50: 41(int) SpecConstantOp 128 43 44 |
| 53 | 51: 6(int) SpecConstantOp 128 42 12 |
| 54 | 52: 6(int) SpecConstantOp 126 19 |
| 55 | 53: 6(int) SpecConstantOp 200 19 |
| 56 | 54: 6(int) SpecConstantOp 128 19 20 |
| 57 | 55: 6(int) SpecConstantOp 128 19 20 |
| 58 | 56: 6(int) Constant 3 |
| 59 | 57: 6(int) SpecConstantOp 130 55 56 |
| 60 | 58: 6(int) Constant 4 |
| 61 | 59: 6(int) SpecConstantOp 130 54 58 |
| 62 | 60: 6(int) SpecConstantOp 132 43 20 |
| 63 | 61: 41(int) Constant 2 |
| 64 | 62: 41(int) SpecConstantOp 132 42 61 |
| 65 | 63: 6(int) Constant 5 |
| 66 | 64: 6(int) SpecConstantOp 135 60 63 |
| 67 | 65: 41(int) Constant 5 |
| 68 | 66: 41(int) SpecConstantOp 134 62 65 |
| 69 | 67: 6(int) SpecConstantOp 139 43 58 |
| 70 | 68: 41(int) Constant 4 |
| 71 | 69: 41(int) SpecConstantOp 137 42 68 |
| 72 | 70: 6(int) SpecConstantOp 132 43 56 |
| 73 | 71: 6(int) SpecConstantOp 135 70 63 |
| 74 | 72: 6(int) Constant 10 |
| 75 | 73: 6(int) SpecConstantOp 195 43 72 |
| 76 | 74: 6(int) Constant 20 |
| 77 | 75: 41(int) SpecConstantOp 194 42 74 |
| 78 | 76: 6(int) SpecConstantOp 196 43 32 |
| 79 | 77: 41(int) SpecConstantOp 196 42 20 |
| 80 | 78: 6(int) Constant 256 |
| 81 | 79: 6(int) SpecConstantOp 197 43 78 |
| 82 | 80: 41(int) Constant 512 |
| 83 | 81: 41(int) SpecConstantOp 198 42 80 |
| 84 | 82: 22(bool) SpecConstantOp 177 19 43 |
| 85 | 83: 22(bool) SpecConstantOp 170 42 42 |
| 86 | 84: 22(bool) SpecConstantOp 173 19 43 |
| 87 | 85: TypeVector 6(int) 4 |
| 88 | 86: 6(int) Constant 30 |
| 89 | 87: 85(ivec4) SpecConstantComposite 74 86 19 19 |
| 90 | 88: TypeVector 41(int) 4 |
| 91 | 89: 41(int) Constant 4294967295 |
| 92 | 90: 41(int) Constant 4294967294 |
| 93 | 91: 88(ivec4) SpecConstantComposite 42 42 89 90 |
| 94 | 92: TypeVector 39(float) 4 |
| 95 | 93: 39(float) Constant 1067450368 |
| 96 | 94: 92(fvec4) SpecConstantComposite 40 93 40 93 |
| 97 | 95: TypeVector 22(bool) 4 |
| 98 | 96: 88(ivec4) ConstantComposite 44 44 44 44 |
| 99 | 97: 95(bvec4) SpecConstantOp 171 87 96 |
| 100 | 98: 95(bvec4) SpecConstantOp 171 91 96 |
| 101 | 99: 85(ivec4) ConstantComposite 12 12 12 12 |
| 102 | 100: 85(ivec4) ConstantComposite 32 32 32 32 |
| 103 | 101: 85(ivec4) SpecConstantOp 169 97 100 99 |
| 104 | 102: 88(ivec4) ConstantComposite 48 48 48 48 |
| 105 | 103: 88(ivec4) SpecConstantOp 169 97 102 96 |
| 106 | 104: 88(ivec4) SpecConstantOp 128 87 96 |
| 107 | 105: 85(ivec4) SpecConstantOp 128 91 99 |
| 108 | 106: 85(ivec4) SpecConstantOp 200 87 |
| 109 | 107: 85(ivec4) SpecConstantOp 126 87 |
| 110 | 108: 85(ivec4) ConstantComposite 20 20 20 20 |
| 111 | 109: 85(ivec4) SpecConstantOp 128 87 108 |
| 112 | 110: 85(ivec4) SpecConstantOp 128 87 108 |
| 113 | 111: 85(ivec4) ConstantComposite 56 56 56 56 |
| 114 | 112: 85(ivec4) SpecConstantOp 130 110 111 |
| 115 | 113: 85(ivec4) ConstantComposite 58 58 58 58 |
| 116 | 114: 85(ivec4) SpecConstantOp 130 112 113 |
| 117 | 115: 85(ivec4) SpecConstantOp 132 87 108 |
| 118 | 116: 85(ivec4) ConstantComposite 63 63 63 63 |
| 119 | 117: 85(ivec4) SpecConstantOp 135 115 116 |
| 120 | 118: 85(ivec4) SpecConstantOp 139 87 113 |
| 121 | 119: 85(ivec4) ConstantComposite 72 72 72 72 |
| 122 | 120: 85(ivec4) SpecConstantOp 195 87 119 |
| 123 | 121: 85(ivec4) SpecConstantOp 196 87 108 |
| 124 | 122: 6(int) Constant 1024 |
| 125 | 123: 85(ivec4) ConstantComposite 122 122 122 122 |
| 126 | 124: 85(ivec4) SpecConstantOp 197 87 123 |
| 127 | 125: 41(int) Constant 2048 |
| 128 | 126: 88(ivec4) ConstantComposite 125 125 125 125 |
| 129 | 127: 88(ivec4) SpecConstantOp 198 91 126 |
| 130 | 128: 6(int) SpecConstantOp 81 87 0 |
| 131 | 129: TypeVector 6(int) 2 |
| 132 | 130: 129(ivec2) SpecConstantOp 79 87 87 1(GLSL.std.450) 0 |
| 133 | 131: TypeVector 6(int) 3 |
| 134 | 132: 131(ivec3) SpecConstantOp 79 87 87 2 1(GLSL.std.450) 0 |
| 135 | 133: 85(ivec4) SpecConstantOp 79 87 87 1(GLSL.std.450) 2 0 3 |
qining | 1354520 | 2016-03-21 09:51:37 -0400 | [diff] [blame] | 136 | 4(main): 2 Function None 3 |
| 137 | 5: Label |
| 138 | Return |
| 139 | FunctionEnd |
qining | 4c91261 | 2016-04-01 10:35:16 -0400 | [diff] [blame] | 140 | 8(non_const_array_size_from_spec_const(): 6(int) Function None 7 |
| 141 | 9: Label |
qining | e24aa5e | 2016-04-07 15:40:27 -0400 | [diff] [blame^] | 142 | 11(i): 10(ptr) Variable Function |
| 143 | 27(array): 26(ptr) Variable Function |
| 144 | Store 11(i) 12 |
| 145 | Branch 13 |
| 146 | 13: Label |
| 147 | LoopMerge 15 16 None |
| 148 | Branch 17 |
| 149 | 17: Label |
| 150 | 18: 6(int) Load 11(i) |
| 151 | 23: 22(bool) SLessThan 18 21 |
| 152 | BranchConditional 23 14 15 |
| 153 | 14: Label |
| 154 | 28: 6(int) Load 11(i) |
| 155 | 30: 10(ptr) AccessChain 27(array) 28 |
| 156 | Store 30 29 |
| 157 | Branch 16 |
| 158 | 16: Label |
| 159 | 31: 6(int) Load 11(i) |
| 160 | 33: 6(int) IAdd 31 32 |
| 161 | Store 11(i) 33 |
| 162 | Branch 13 |
| 163 | 15: Label |
| 164 | 35: 10(ptr) AccessChain 27(array) 34 |
| 165 | 36: 6(int) Load 35 |
| 166 | ReturnValue 36 |
qining | 4c91261 | 2016-04-01 10:35:16 -0400 | [diff] [blame] | 167 | FunctionEnd |