Dejan Mircevski | 2ab5a37 | 2016-01-20 11:54:11 -0500 | [diff] [blame] | 1 | spv.for-complex-condition.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 | 433e9ff | 2017-01-26 20:31:11 -0700 | [diff] [blame] | 4 | // Id's are bound by 31 |
Dejan Mircevski | 2ab5a37 | 2016-01-20 11:54:11 -0500 | [diff] [blame] | 5 | |
| 6 | Capability Shader |
| 7 | 1: ExtInstImport "GLSL.std.450" |
| 8 | MemoryModel Logical GLSL450 |
John Kessenich | 433e9ff | 2017-01-26 20:31:11 -0700 | [diff] [blame] | 9 | EntryPoint Vertex 4 "main" 17 27 |
Dejan Mircevski | 2ab5a37 | 2016-01-20 11:54:11 -0500 | [diff] [blame] | 10 | Source GLSL 450 |
| 11 | Name 4 "main" |
| 12 | Name 8 "i" |
John Kessenich | 433e9ff | 2017-01-26 20:31:11 -0700 | [diff] [blame] | 13 | Name 17 "flag" |
| 14 | Name 27 "r" |
| 15 | Decorate 17(flag) RelaxedPrecision |
| 16 | Decorate 17(flag) Location 0 |
| 17 | Decorate 18 RelaxedPrecision |
| 18 | Decorate 27(r) Location 0 |
Dejan Mircevski | 2ab5a37 | 2016-01-20 11:54:11 -0500 | [diff] [blame] | 19 | 2: TypeVoid |
| 20 | 3: TypeFunction 2 |
| 21 | 6: TypeInt 32 1 |
| 22 | 7: TypePointer Function 6(int) |
| 23 | 9: 6(int) Constant 0 |
John Kessenich | 433e9ff | 2017-01-26 20:31:11 -0700 | [diff] [blame] | 24 | 16: TypePointer Input 6(int) |
| 25 | 17(flag): 16(ptr) Variable Input |
| 26 | 19: 6(int) Constant 1 |
| 27 | 20: TypeBool |
| 28 | 22: 6(int) Constant 10 |
| 29 | 23: 6(int) Constant 15 |
| 30 | 26: TypePointer Output 6(int) |
| 31 | 27(r): 26(ptr) Variable Output |
Dejan Mircevski | 2ab5a37 | 2016-01-20 11:54:11 -0500 | [diff] [blame] | 32 | 4(main): 2 Function None 3 |
| 33 | 5: Label |
| 34 | 8(i): 7(ptr) Variable Function |
Dejan Mircevski | 2ab5a37 | 2016-01-20 11:54:11 -0500 | [diff] [blame] | 35 | Store 8(i) 9 |
| 36 | Branch 10 |
| 37 | 10: Label |
| 38 | LoopMerge 12 13 None |
| 39 | Branch 14 |
| 40 | 14: Label |
| 41 | 15: 6(int) Load 8(i) |
John Kessenich | 433e9ff | 2017-01-26 20:31:11 -0700 | [diff] [blame] | 42 | 18: 6(int) Load 17(flag) |
| 43 | 21: 20(bool) IEqual 18 19 |
| 44 | 24: 6(int) Select 21 22 23 |
| 45 | 25: 20(bool) SLessThan 15 24 |
| 46 | BranchConditional 25 11 12 |
| 47 | 11: Label |
| 48 | 28: 6(int) Load 8(i) |
| 49 | Store 27(r) 28 |
| 50 | Branch 13 |
| 51 | 13: Label |
| 52 | 29: 6(int) Load 8(i) |
| 53 | 30: 6(int) IAdd 29 19 |
| 54 | Store 8(i) 30 |
| 55 | Branch 10 |
Dejan Mircevski | 2ab5a37 | 2016-01-20 11:54:11 -0500 | [diff] [blame] | 56 | 12: Label |
| 57 | Return |
| 58 | FunctionEnd |