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