1spv.pp.line.frag
2WARNING: spv.pp.line.frag:6: varying deprecated in version 130; may be removed in future release
3WARNING: spv.pp.line.frag:7: varying deprecated in version 130; may be removed in future release
4
5// Module Version 10000
6// Generated by (magic number): 8000a
7// Id's are bound by 65
8
9                              Capability Shader
10                              Capability Sampled1D
11               2:             ExtInstImport  "GLSL.std.450"
12                              MemoryModel Logical GLSL450
13                              EntryPoint Fragment 5  "main" 41 53 56 59
14                              ExecutionMode 5 OriginUpperLeft
15               1:             String  "spv.pp.line.frag"
16                              Source GLSL 140 1  "// OpModuleProcessed auto-map-locations
17// OpModuleProcessed auto-map-bindings
18// OpModuleProcessed client vulkan100
19// OpModuleProcessed target-env vulkan1.0
20// OpModuleProcessed keep-uncalled
21// OpModuleProcessed entry-point main
22#line 1
23#version 140
24
25uniform sampler1D       texSampler1D;
26uniform sampler2D       texSampler2D;
27
28varying float blend;
29varying vec4 u;
30
31in  vec2 coords2D;
32
33void main()
34{
35    float blendscale = 1.789;
36    float bias       = 2.0;
37    float coords1D   = 1.789;
38    vec4  color      = vec4(0.0, 0.0, 0.0, 0.0);
39#line 53
40    color += texture    (texSampler1D, coords1D);
41    color += texture    (texSampler1D, coords1D, bias);
42#line 102
43    color += texture        (texSampler2D, coords2D);
44    color += texture        (texSampler2D, coords2D, bias);
45
46    gl_FragColor = mix(color, u, blend * blendscale);
47}
48"
49                              Name 5  "main"
50                              Name 9  "blendscale"
51                              Name 11  "bias"
52                              Name 13  "coords1D"
53                              Name 16  "color"
54                              Name 22  "texSampler1D"
55                              Name 37  "texSampler2D"
56                              Name 41  "coords2D"
57                              Name 53  "gl_FragColor"
58                              Name 56  "u"
59                              Name 59  "blend"
60                              Decorate 22(texSampler1D) DescriptorSet 0
61                              Decorate 22(texSampler1D) Binding 0
62                              Decorate 37(texSampler2D) DescriptorSet 0
63                              Decorate 37(texSampler2D) Binding 1
64                              Decorate 41(coords2D) Location 2
65                              Decorate 53(gl_FragColor) Location 0
66                              Decorate 56(u) Location 1
67                              Decorate 59(blend) Location 0
68               3:             TypeVoid
69               4:             TypeFunction 3
70               7:             TypeFloat 32
71               8:             TypePointer Function 7(float)
72              10:    7(float) Constant 1071971828
73              12:    7(float) Constant 1073741824
74              14:             TypeVector 7(float) 4
75              15:             TypePointer Function 14(fvec4)
76              17:    7(float) Constant 0
77              18:   14(fvec4) ConstantComposite 17 17 17 17
78              19:             TypeImage 7(float) 1D sampled format:Unknown
79              20:             TypeSampledImage 19
80              21:             TypePointer UniformConstant 20
8122(texSampler1D):     21(ptr) Variable UniformConstant
82              34:             TypeImage 7(float) 2D sampled format:Unknown
83              35:             TypeSampledImage 34
84              36:             TypePointer UniformConstant 35
8537(texSampler2D):     36(ptr) Variable UniformConstant
86              39:             TypeVector 7(float) 2
87              40:             TypePointer Input 39(fvec2)
88    41(coords2D):     40(ptr) Variable Input
89              52:             TypePointer Output 14(fvec4)
9053(gl_FragColor):     52(ptr) Variable Output
91              55:             TypePointer Input 14(fvec4)
92           56(u):     55(ptr) Variable Input
93              58:             TypePointer Input 7(float)
94       59(blend):     58(ptr) Variable Input
95         5(main):           3 Function None 4
96               6:             Label
97   9(blendscale):      8(ptr) Variable Function
98        11(bias):      8(ptr) Variable Function
99    13(coords1D):      8(ptr) Variable Function
100       16(color):     15(ptr) Variable Function
101                              Line 1 13 0
102                              Store 9(blendscale) 10
103                              Line 1 14 0
104                              Store 11(bias) 12
105                              Line 1 15 0
106                              Store 13(coords1D) 10
107                              Line 1 16 0
108                              Store 16(color) 18
109                              Line 1 54 0
110              23:          20 Load 22(texSampler1D)
111              24:    7(float) Load 13(coords1D)
112              25:   14(fvec4) ImageSampleImplicitLod 23 24
113              26:   14(fvec4) Load 16(color)
114              27:   14(fvec4) FAdd 26 25
115                              Store 16(color) 27
116                              Line 1 55 0
117              28:          20 Load 22(texSampler1D)
118              29:    7(float) Load 13(coords1D)
119              30:    7(float) Load 11(bias)
120              31:   14(fvec4) ImageSampleImplicitLod 28 29 Bias 30
121              32:   14(fvec4) Load 16(color)
122              33:   14(fvec4) FAdd 32 31
123                              Store 16(color) 33
124                              Line 1 103 0
125              38:          35 Load 37(texSampler2D)
126              42:   39(fvec2) Load 41(coords2D)
127              43:   14(fvec4) ImageSampleImplicitLod 38 42
128              44:   14(fvec4) Load 16(color)
129              45:   14(fvec4) FAdd 44 43
130                              Store 16(color) 45
131                              Line 1 104 0
132              46:          35 Load 37(texSampler2D)
133              47:   39(fvec2) Load 41(coords2D)
134              48:    7(float) Load 11(bias)
135              49:   14(fvec4) ImageSampleImplicitLod 46 47 Bias 48
136              50:   14(fvec4) Load 16(color)
137              51:   14(fvec4) FAdd 50 49
138                              Store 16(color) 51
139                              Line 1 106 0
140              54:   14(fvec4) Load 16(color)
141              57:   14(fvec4) Load 56(u)
142              60:    7(float) Load 59(blend)
143              61:    7(float) Load 9(blendscale)
144              62:    7(float) FMul 60 61
145              63:   14(fvec4) CompositeConstruct 62 62 62 62
146              64:   14(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 54 57 63
147                              Store 53(gl_FragColor) 64
148                              Return
149                              FunctionEnd
150