John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 1 | spv.uniformArray.frag |
John Kessenich | 2b5ea9f | 2018-01-31 18:35:56 -0700 | [diff] [blame] | 2 | // Module Version 10000 |
John Kessenich | d6c9755 | 2018-06-04 15:33:31 -0600 | [diff] [blame] | 3 | // Generated by (magic number): 80007 |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 4 | // Id's are bound by 53 |
| 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" 14 25 35 47 |
| 10 | ExecutionMode 4 OriginUpperLeft |
John Kessenich | f6eae2a | 2016-01-22 17:47:22 -0700 | [diff] [blame] | 11 | Source GLSL 140 |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 12 | Name 4 "main" |
| 13 | Name 9 "texColor" |
| 14 | Name 14 "color" |
| 15 | Name 25 "inColor" |
| 16 | Name 35 "alpha" |
| 17 | Name 47 "gl_FragColor" |
| 18 | Name 52 "texSampler2D" |
John Kessenich | 2c6f48b | 2017-05-20 13:23:25 -0600 | [diff] [blame] | 19 | Decorate 47(gl_FragColor) Location 0 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 20 | Decorate 52(texSampler2D) DescriptorSet 0 |
Jeff Bolz | 0a93cfb | 2018-12-11 20:53:59 -0600 | [diff] [blame^] | 21 | Decorate 52(texSampler2D) Binding 0 |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 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: TypeInt 32 0 |
| 28 | 11: 10(int) Constant 6 |
| 29 | 12: TypeArray 7(fvec4) 11 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 30 | 13: TypePointer Input 12 |
| 31 | 14(color): 13(ptr) Variable Input |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 32 | 15: TypeInt 32 1 |
| 33 | 16: 15(int) Constant 1 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 34 | 17: TypePointer Input 7(fvec4) |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 35 | 23: TypeVector 6(float) 3 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 36 | 24: TypePointer Input 23(fvec3) |
| 37 | 25(inColor): 24(ptr) Variable Input |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 38 | 32: 10(int) Constant 16 |
| 39 | 33: TypeArray 6(float) 32 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 40 | 34: TypePointer Input 33 |
| 41 | 35(alpha): 34(ptr) Variable Input |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 42 | 36: 15(int) Constant 12 |
John Kessenich | 6c292d3 | 2016-02-15 20:58:50 -0700 | [diff] [blame] | 43 | 37: TypePointer Input 6(float) |
John Kessenich | cc16fa0 | 2015-12-10 18:01:54 -0700 | [diff] [blame] | 44 | 40: 10(int) Constant 3 |
| 45 | 41: TypePointer Function 6(float) |
| 46 | 46: TypePointer Output 7(fvec4) |
| 47 | 47(gl_FragColor): 46(ptr) Variable Output |
| 48 | 49: TypeImage 6(float) 2D sampled format:Unknown |
| 49 | 50: TypeSampledImage 49 |
| 50 | 51: TypePointer UniformConstant 50 |
| 51 | 52(texSampler2D): 51(ptr) Variable UniformConstant |
| 52 | 4(main): 2 Function None 3 |
| 53 | 5: Label |
| 54 | 9(texColor): 8(ptr) Variable Function |
| 55 | 18: 17(ptr) AccessChain 14(color) 16 |
| 56 | 19: 7(fvec4) Load 18 |
| 57 | 20: 17(ptr) AccessChain 14(color) 16 |
| 58 | 21: 7(fvec4) Load 20 |
| 59 | 22: 7(fvec4) FAdd 19 21 |
| 60 | Store 9(texColor) 22 |
| 61 | 26: 23(fvec3) Load 25(inColor) |
| 62 | 27: 7(fvec4) Load 9(texColor) |
| 63 | 28: 23(fvec3) VectorShuffle 27 27 0 1 2 |
| 64 | 29: 23(fvec3) FAdd 28 26 |
| 65 | 30: 7(fvec4) Load 9(texColor) |
| 66 | 31: 7(fvec4) VectorShuffle 30 29 4 5 6 3 |
| 67 | Store 9(texColor) 31 |
| 68 | 38: 37(ptr) AccessChain 35(alpha) 36 |
| 69 | 39: 6(float) Load 38 |
| 70 | 42: 41(ptr) AccessChain 9(texColor) 40 |
| 71 | 43: 6(float) Load 42 |
| 72 | 44: 6(float) FAdd 43 39 |
| 73 | 45: 41(ptr) AccessChain 9(texColor) 40 |
| 74 | Store 45 44 |
| 75 | 48: 7(fvec4) Load 9(texColor) |
| 76 | Store 47(gl_FragColor) 48 |
| 77 | Return |
| 78 | FunctionEnd |