John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 1 | spv.100ops.frag |
John Kessenich | 2b5ea9f | 2018-01-31 18:35:56 -0700 | [diff] [blame] | 2 | // Module Version 10000 |
John Kessenich | 31c3370 | 2019-11-02 21:26:40 -0600 | [diff] [blame^] | 3 | // Generated by (magic number): 80008 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 4 | // Id's are bound by 49 |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 5 | |
| 6 | Capability Shader |
| 7 | 1: ExtInstImport "GLSL.std.450" |
| 8 | MemoryModel Logical GLSL450 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 9 | EntryPoint Fragment 4 "main" 21 26 37 |
| 10 | ExecutionMode 4 OriginUpperLeft |
John Kessenich | f6eae2a | 2016-01-22 17:47:22 -0700 | [diff] [blame] | 11 | Source ESSL 310 |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 12 | Name 4 "main" |
| 13 | Name 8 "foo(" |
| 14 | Name 11 "face1" |
| 15 | Name 13 "face2" |
| 16 | Name 17 "z" |
| 17 | Name 21 "low" |
| 18 | Name 26 "high" |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 19 | Name 37 "Color" |
John Kessenich | 32cfd49 | 2016-02-02 12:37:46 -0700 | [diff] [blame] | 20 | Decorate 8(foo() RelaxedPrecision |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 21 | Decorate 11(face1) RelaxedPrecision |
| 22 | Decorate 13(face2) RelaxedPrecision |
| 23 | Decorate 17(z) RelaxedPrecision |
| 24 | Decorate 21(low) RelaxedPrecision |
John Kessenich | 32cfd49 | 2016-02-02 12:37:46 -0700 | [diff] [blame] | 25 | Decorate 22 RelaxedPrecision |
| 26 | Decorate 23 RelaxedPrecision |
| 27 | Decorate 25 RelaxedPrecision |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 28 | Decorate 26(high) RelaxedPrecision |
John Kessenich | 32cfd49 | 2016-02-02 12:37:46 -0700 | [diff] [blame] | 29 | Decorate 27 RelaxedPrecision |
| 30 | Decorate 32 RelaxedPrecision |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 31 | Decorate 34 RelaxedPrecision |
| 32 | Decorate 37(Color) RelaxedPrecision |
John Kessenich | 32cfd49 | 2016-02-02 12:37:46 -0700 | [diff] [blame] | 33 | Decorate 38 RelaxedPrecision |
| 34 | Decorate 39 RelaxedPrecision |
| 35 | Decorate 40 RelaxedPrecision |
| 36 | Decorate 41 RelaxedPrecision |
| 37 | Decorate 42 RelaxedPrecision |
| 38 | Decorate 43 RelaxedPrecision |
| 39 | Decorate 44 RelaxedPrecision |
| 40 | Decorate 45 RelaxedPrecision |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 41 | Decorate 46 RelaxedPrecision |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 42 | 2: TypeVoid |
| 43 | 3: TypeFunction 2 |
| 44 | 6: TypeFloat 32 |
| 45 | 7: TypeFunction 6(float) |
| 46 | 10: TypePointer Private 6(float) |
| 47 | 11(face1): 10(ptr) Variable Private |
| 48 | 12: 6(float) Constant 1093664768 |
| 49 | 13(face2): 10(ptr) Variable Private |
| 50 | 14: 6(float) Constant 3221225472 |
| 51 | 15: TypeInt 32 1 |
| 52 | 16: TypePointer Function 15(int) |
| 53 | 18: 15(int) Constant 3 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 54 | 19: 6(float) Constant 1073741824 |
| 55 | 20: TypePointer Input 6(float) |
| 56 | 21(low): 20(ptr) Variable Input |
| 57 | 24: 6(float) Constant 1065353216 |
| 58 | 26(high): 20(ptr) Variable Input |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 59 | 28: TypeBool |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 60 | 33: 15(int) Constant 1 |
| 61 | 35: TypeVector 6(float) 4 |
| 62 | 36: TypePointer Output 35(fvec4) |
| 63 | 37(Color): 36(ptr) Variable Output |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 64 | 4(main): 2 Function None 3 |
| 65 | 5: Label |
| 66 | 17(z): 16(ptr) Variable Function |
| 67 | Store 11(face1) 12 |
| 68 | Store 13(face2) 14 |
| 69 | Store 17(z) 18 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 70 | 22: 6(float) Load 21(low) |
| 71 | 23: 6(float) FMul 19 22 |
| 72 | 25: 6(float) FAdd 23 24 |
| 73 | 27: 6(float) Load 26(high) |
| 74 | 29: 28(bool) FOrdLessThan 25 27 |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 75 | SelectionMerge 31 None |
| 76 | BranchConditional 29 30 31 |
| 77 | 30: Label |
| 78 | 32: 15(int) Load 17(z) |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 79 | 34: 15(int) IAdd 32 33 |
| 80 | Store 17(z) 34 |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 81 | Branch 31 |
| 82 | 31: Label |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 83 | 38: 6(float) Load 11(face1) |
| 84 | 39: 15(int) Load 17(z) |
| 85 | 40: 6(float) ConvertSToF 39 |
| 86 | 41: 35(fvec4) CompositeConstruct 40 40 40 40 |
| 87 | 42: 35(fvec4) VectorTimesScalar 41 38 |
| 88 | 43: 6(float) FunctionCall 8(foo() |
| 89 | 44: 35(fvec4) CompositeConstruct 43 43 43 43 |
| 90 | 45: 35(fvec4) FAdd 42 44 |
| 91 | Store 37(Color) 45 |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 92 | Return |
| 93 | FunctionEnd |
| 94 | 8(foo(): 6(float) Function None 7 |
| 95 | 9: Label |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 96 | 46: 6(float) Load 13(face2) |
| 97 | ReturnValue 46 |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 98 | FunctionEnd |