John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame^] | 1 | spv.whileLoop.frag |
| 2 | |
| 3 | Linked fragment stage: |
| 4 | |
| 5 | |
| 6 | // Module Version 10000 |
| 7 | // Generated by (magic number): 80001 |
| 8 | // Id's are bound by 34 |
| 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 22 "d" |
| 20 | Name 27 "bigColor" |
| 21 | Name 32 "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 | 16: TypeInt 32 0 |
| 30 | 17: 16(int) Constant 0 |
| 31 | 18: TypePointer Function 6(float) |
| 32 | 21: TypePointer UniformConstant 6(float) |
| 33 | 22(d): 21(ptr) Variable UniformConstant |
| 34 | 24: TypeBool |
| 35 | 26: TypePointer UniformConstant 7(fvec4) |
| 36 | 27(bigColor): 26(ptr) Variable UniformConstant |
| 37 | 31: TypePointer Output 7(fvec4) |
| 38 | 32(gl_FragColor): 31(ptr) Variable Output |
| 39 | 4(main): 2 Function None 3 |
| 40 | 5: Label |
| 41 | 9(color): 8(ptr) Variable Function |
| 42 | 12: 7(fvec4) Load 11(BaseColor) |
| 43 | Store 9(color) 12 |
| 44 | Branch 13 |
| 45 | 13: Label |
| 46 | 19: 18(ptr) AccessChain 9(color) 17 |
| 47 | 20: 6(float) Load 19 |
| 48 | 23: 6(float) Load 22(d) |
| 49 | 25: 24(bool) FOrdLessThan 20 23 |
| 50 | LoopMerge 14 13 None |
| 51 | BranchConditional 25 15 14 |
| 52 | 15: Label |
| 53 | 28: 7(fvec4) Load 27(bigColor) |
| 54 | 29: 7(fvec4) Load 9(color) |
| 55 | 30: 7(fvec4) FAdd 29 28 |
| 56 | Store 9(color) 30 |
| 57 | Branch 13 |
| 58 | 14: Label |
| 59 | 33: 7(fvec4) Load 9(color) |
| 60 | Store 32(gl_FragColor) 33 |
| 61 | Return |
| 62 | FunctionEnd |