steve-lunarg | a845641 | 2016-08-17 16:18:06 -0600 | [diff] [blame] | 1 | remap.switch.none.frag |
steve-lunarg | a845641 | 2016-08-17 16:18:06 -0600 | [diff] [blame] | 2 | WARNING: 0:5: '' : all default precisions are highp; use precision statements to quiet warning, e.g.: |
| 3 | "precision mediump int; precision highp float;" |
| 4 | |
John Kessenich | 2b5ea9f | 2018-01-31 18:35:56 -0700 | [diff] [blame] | 5 | // Module Version 10000 |
John Kessenich | 0216f24 | 2018-03-03 11:47:07 -0700 | [diff] [blame^] | 6 | // Generated by (magic number): 80005 |
steve-lunarg | 297754c | 2016-12-09 11:13:23 -0700 | [diff] [blame] | 7 | // Id's are bound by 48 |
steve-lunarg | a845641 | 2016-08-17 16:18:06 -0600 | [diff] [blame] | 8 | |
| 9 | Capability Shader |
| 10 | 1: ExtInstImport "GLSL.std.450" |
| 11 | MemoryModel Logical GLSL450 |
| 12 | EntryPoint Fragment 4 "main" 9 23 |
| 13 | ExecutionMode 4 OriginUpperLeft |
| 14 | Source GLSL 450 |
| 15 | Name 4 "main" |
| 16 | Name 9 "in0" |
| 17 | Name 23 "FragColor" |
| 18 | Decorate 9(in0) Location 0 |
| 19 | Decorate 23(FragColor) RelaxedPrecision |
| 20 | Decorate 23(FragColor) Location 0 |
| 21 | Decorate 29 RelaxedPrecision |
steve-lunarg | 297754c | 2016-12-09 11:13:23 -0700 | [diff] [blame] | 22 | Decorate 36 RelaxedPrecision |
| 23 | Decorate 43 RelaxedPrecision |
steve-lunarg | a845641 | 2016-08-17 16:18:06 -0600 | [diff] [blame] | 24 | 2: TypeVoid |
| 25 | 3: TypeFunction 2 |
| 26 | 6: TypeFloat 32 |
| 27 | 7: TypeVector 6(float) 4 |
| 28 | 8: TypePointer Input 7(fvec4) |
| 29 | 9(in0): 8(ptr) Variable Input |
| 30 | 10: TypeInt 32 0 |
| 31 | 11: 10(int) Constant 3 |
| 32 | 12: TypePointer Input 6(float) |
| 33 | 15: TypeInt 32 1 |
| 34 | 22: TypePointer Output 7(fvec4) |
| 35 | 23(FragColor): 22(ptr) Variable Output |
| 36 | 24: 10(int) Constant 0 |
| 37 | 27: 6(float) Constant 0 |
steve-lunarg | 297754c | 2016-12-09 11:13:23 -0700 | [diff] [blame] | 38 | 31: 10(int) Constant 1 |
| 39 | 34: 6(float) Constant 1065353216 |
| 40 | 38: 10(int) Constant 2 |
| 41 | 41: 6(float) Constant 1073741824 |
| 42 | 45: 6(float) Constant 3212836864 |
| 43 | 46: 7(fvec4) ConstantComposite 45 45 45 45 |
steve-lunarg | a845641 | 2016-08-17 16:18:06 -0600 | [diff] [blame] | 44 | 4(main): 2 Function None 3 |
| 45 | 5: Label |
| 46 | 13: 12(ptr) AccessChain 9(in0) 11 |
| 47 | 14: 6(float) Load 13 |
| 48 | 16: 15(int) ConvertFToS 14 |
| 49 | SelectionMerge 21 None |
| 50 | Switch 16 20 |
| 51 | case 0: 17 |
| 52 | case 1: 18 |
| 53 | case 2: 19 |
| 54 | 20: Label |
steve-lunarg | 297754c | 2016-12-09 11:13:23 -0700 | [diff] [blame] | 55 | Store 23(FragColor) 46 |
steve-lunarg | a845641 | 2016-08-17 16:18:06 -0600 | [diff] [blame] | 56 | Branch 21 |
| 57 | 17: Label |
| 58 | 25: 12(ptr) AccessChain 9(in0) 24 |
| 59 | 26: 6(float) Load 25 |
| 60 | 28: 6(float) FAdd 26 27 |
| 61 | 29: 7(fvec4) CompositeConstruct 28 28 28 28 |
| 62 | Store 23(FragColor) 29 |
| 63 | Branch 21 |
| 64 | 18: Label |
steve-lunarg | 297754c | 2016-12-09 11:13:23 -0700 | [diff] [blame] | 65 | 32: 12(ptr) AccessChain 9(in0) 31 |
| 66 | 33: 6(float) Load 32 |
| 67 | 35: 6(float) FAdd 33 34 |
| 68 | 36: 7(fvec4) CompositeConstruct 35 35 35 35 |
| 69 | Store 23(FragColor) 36 |
steve-lunarg | a845641 | 2016-08-17 16:18:06 -0600 | [diff] [blame] | 70 | Branch 21 |
| 71 | 19: Label |
steve-lunarg | 297754c | 2016-12-09 11:13:23 -0700 | [diff] [blame] | 72 | 39: 12(ptr) AccessChain 9(in0) 38 |
| 73 | 40: 6(float) Load 39 |
| 74 | 42: 6(float) FAdd 40 41 |
| 75 | 43: 7(fvec4) CompositeConstruct 42 42 42 42 |
| 76 | Store 23(FragColor) 43 |
steve-lunarg | a845641 | 2016-08-17 16:18:06 -0600 | [diff] [blame] | 77 | Branch 21 |
| 78 | 21: Label |
| 79 | Return |
| 80 | FunctionEnd |