John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame^] | 1 | spv.doWhileLoop.frag |
| 2 | |
| 3 | Linked fragment stage: |
| 4 | |
| 5 | |
| 6 | // Module Version 10000 |
| 7 | // Generated by (magic number): 80001 |
| 8 | // Id's are bound by 40 |
| 9 | |
| 10 | Capability Shader |
| 11 | 1: ExtInstImport "GLSL.std.450" |
| 12 | MemoryModel Logical GLSL450 |
| 13 | EntryPoint Fragment 4 "main" 11 |
| 14 | ExecutionMode 4 OriginLowerLeft |
| 15 | Source GLSL 110 |
| 16 | Name 4 "main" |
| 17 | Name 9 "color" |
| 18 | Name 11 "BaseColor" |
| 19 | Name 27 "d" |
| 20 | Name 32 "bigColor" |
| 21 | Name 38 "gl_FragColor" |
| 22 | 2: TypeVoid |
| 23 | 3: TypeFunction 2 |
| 24 | 6: TypeFloat 32 |
| 25 | 7: TypeVector 6(float) 4 |
| 26 | 8: TypePointer Function 7(fvec4) |
| 27 | 10: TypePointer Input 7(fvec4) |
| 28 | 11(BaseColor): 10(ptr) Variable Input |
| 29 | 17: TypeBool |
| 30 | 18: 17(bool) ConstantTrue |
| 31 | 21: TypeInt 32 0 |
| 32 | 22: 21(int) Constant 0 |
| 33 | 23: TypePointer Function 6(float) |
| 34 | 26: TypePointer UniformConstant 6(float) |
| 35 | 27(d): 26(ptr) Variable UniformConstant |
| 36 | 31: TypePointer UniformConstant 7(fvec4) |
| 37 | 32(bigColor): 31(ptr) Variable UniformConstant |
| 38 | 36: 17(bool) ConstantFalse |
| 39 | 37: TypePointer Output 7(fvec4) |
| 40 | 38(gl_FragColor): 37(ptr) Variable Output |
| 41 | 4(main): 2 Function None 3 |
| 42 | 5: Label |
| 43 | 9(color): 8(ptr) Variable Function |
| 44 | 12: 7(fvec4) Load 11(BaseColor) |
| 45 | Store 9(color) 12 |
| 46 | Branch 13 |
| 47 | 13: Label |
| 48 | 16: 17(bool) Phi 18 5 36 15 |
| 49 | LoopMerge 14 13 None |
| 50 | Branch 19 |
| 51 | 19: Label |
| 52 | SelectionMerge 15 None |
| 53 | BranchConditional 16 15 20 |
| 54 | 20: Label |
| 55 | 24: 23(ptr) AccessChain 9(color) 22 |
| 56 | 25: 6(float) Load 24 |
| 57 | 28: 6(float) Load 27(d) |
| 58 | 29: 17(bool) FOrdLessThan 25 28 |
| 59 | SelectionMerge 30 None |
| 60 | BranchConditional 29 30 14 |
| 61 | 30: Label |
| 62 | Branch 15 |
| 63 | 15: Label |
| 64 | 33: 7(fvec4) Load 32(bigColor) |
| 65 | 34: 7(fvec4) Load 9(color) |
| 66 | 35: 7(fvec4) FAdd 34 33 |
| 67 | Store 9(color) 35 |
| 68 | Branch 13 |
| 69 | 14: Label |
| 70 | 39: 7(fvec4) Load 9(color) |
| 71 | Store 38(gl_FragColor) 39 |
| 72 | Return |
| 73 | FunctionEnd |