• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1spv.varyingArray.frag
2// Module Version 10000
3// Generated by (magic number): 80007
4// Id's are bound by 61
5
6                              Capability Shader
7               1:             ExtInstImport  "GLSL.std.450"
8                              MemoryModel Logical GLSL450
9                              EntryPoint Fragment 4  "main" 19 34 39 45 48
10                              ExecutionMode 4 OriginUpperLeft
11                              Source GLSL 140
12                              Name 4  "main"
13                              Name 9  "texColor"
14                              Name 13  "texSampler2D"
15                              Name 19  "TexCoord"
16                              Name 34  "color"
17                              Name 39  "alpha"
18                              Name 45  "gl_FragColor"
19                              Name 48  "foo"
20                              Decorate 13(texSampler2D) DescriptorSet 0
21                              Decorate 13(texSampler2D) Binding 0
22                              Decorate 45(gl_FragColor) Location 0
23               2:             TypeVoid
24               3:             TypeFunction 2
25               6:             TypeFloat 32
26               7:             TypeVector 6(float) 4
27               8:             TypePointer Function 7(fvec4)
28              10:             TypeImage 6(float) 2D sampled format:Unknown
29              11:             TypeSampledImage 10
30              12:             TypePointer UniformConstant 11
3113(texSampler2D):     12(ptr) Variable UniformConstant
32              15:             TypeInt 32 0
33              16:     15(int) Constant 6
34              17:             TypeArray 7(fvec4) 16
35              18:             TypePointer Input 17
36    19(TexCoord):     18(ptr) Variable Input
37              20:             TypeInt 32 1
38              21:     20(int) Constant 4
39              22:             TypePointer Input 7(fvec4)
40              25:     20(int) Constant 5
41              29:             TypeVector 6(float) 2
42       34(color):     22(ptr) Variable Input
43              38:             TypePointer Input 6(float)
44       39(alpha):     38(ptr) Variable Input
45              41:     15(int) Constant 3
46              42:             TypePointer Function 6(float)
47              44:             TypePointer Output 7(fvec4)
4845(gl_FragColor):     44(ptr) Variable Output
49              46:             TypeArray 7(fvec4) 41
50              47:             TypePointer Input 46
51         48(foo):     47(ptr) Variable Input
52              49:     20(int) Constant 1
53              52:     20(int) Constant 0
54         4(main):           2 Function None 3
55               5:             Label
56     9(texColor):      8(ptr) Variable Function
57              14:          11 Load 13(texSampler2D)
58              23:     22(ptr) AccessChain 19(TexCoord) 21
59              24:    7(fvec4) Load 23
60              26:     22(ptr) AccessChain 19(TexCoord) 25
61              27:    7(fvec4) Load 26
62              28:    7(fvec4) FAdd 24 27
63              30:    6(float) CompositeExtract 28 0
64              31:    6(float) CompositeExtract 28 1
65              32:   29(fvec2) CompositeConstruct 30 31
66              33:    7(fvec4) ImageSampleImplicitLod 14 32
67                              Store 9(texColor) 33
68              35:    7(fvec4) Load 34(color)
69              36:    7(fvec4) Load 9(texColor)
70              37:    7(fvec4) FAdd 36 35
71                              Store 9(texColor) 37
72              40:    6(float) Load 39(alpha)
73              43:     42(ptr) AccessChain 9(texColor) 41
74                              Store 43 40
75              50:     22(ptr) AccessChain 48(foo) 49
76              51:    7(fvec4) Load 50
77              53:     22(ptr) AccessChain 19(TexCoord) 52
78              54:    7(fvec4) Load 53
79              55:    7(fvec4) FAdd 51 54
80              56:     22(ptr) AccessChain 19(TexCoord) 21
81              57:    7(fvec4) Load 56
82              58:    7(fvec4) FAdd 55 57
83              59:    7(fvec4) Load 9(texColor)
84              60:    7(fvec4) FAdd 58 59
85                              Store 45(gl_FragColor) 60
86                              Return
87                              FunctionEnd
88