SPV 1.4: Move to 1.4 validation, removing all 1.4 validation failures.
[platform/upstream/glslang.git] / Test / baseResults / spv.1.4.texture.frag.out
1 spv.1.4.texture.frag
2 // Module Version 10400
3 // Generated by (magic number): 80007
4 // Id's are bound by 79
5
6                               Capability Shader
7                1:             ExtInstImport  "GLSL.std.450"
8                               MemoryModel Logical GLSL450
9                               EntryPoint Fragment 4  "main" 15 19 28 40 51 54 76 78
10                               ExecutionMode 4 OriginUpperLeft
11                               Source GLSL 450
12                               Name 4  "main"
13                               Name 9  "color"
14                               Name 15  "texSampler2D"
15                               Name 19  "coords2D"
16                               Name 28  "itexSampler2D"
17                               Name 40  "utexSampler2D"
18                               Name 51  "iCoords2D"
19                               Name 54  "iLod"
20                               Name 76  "t"
21                               Name 78  "color"
22                               Decorate 15(texSampler2D) DescriptorSet 0
23                               Decorate 15(texSampler2D) Binding 0
24                               Decorate 28(itexSampler2D) DescriptorSet 0
25                               Decorate 28(itexSampler2D) Binding 0
26                               Decorate 40(utexSampler2D) DescriptorSet 0
27                               Decorate 40(utexSampler2D) Binding 0
28                               Decorate 51(iCoords2D) Flat
29                               Decorate 54(iLod) Flat
30                2:             TypeVoid
31                3:             TypeFunction 2
32                6:             TypeFloat 32
33                7:             TypeVector 6(float) 4
34                8:             TypePointer Function 7(fvec4)
35               10:    6(float) Constant 0
36               11:    7(fvec4) ConstantComposite 10 10 10 10
37               12:             TypeImage 6(float) 2D sampled format:Unknown
38               13:             TypeSampledImage 12
39               14:             TypePointer UniformConstant 13
40 15(texSampler2D):     14(ptr) Variable UniformConstant
41               17:             TypeVector 6(float) 2
42               18:             TypePointer Input 17(fvec2)
43     19(coords2D):     18(ptr) Variable Input
44               24:             TypeInt 32 1
45               25:             TypeImage 24(int) 2D sampled format:Unknown
46               26:             TypeSampledImage 25
47               27:             TypePointer UniformConstant 26
48 28(itexSampler2D):     27(ptr) Variable UniformConstant
49               31:             TypeVector 24(int) 4
50               36:             TypeInt 32 0
51               37:             TypeImage 36(int) 2D sampled format:Unknown
52               38:             TypeSampledImage 37
53               39:             TypePointer UniformConstant 38
54 40(utexSampler2D):     39(ptr) Variable UniformConstant
55               43:             TypeVector 36(int) 4
56               49:             TypeVector 24(int) 2
57               50:             TypePointer Input 49(ivec2)
58    51(iCoords2D):     50(ptr) Variable Input
59               53:             TypePointer Input 24(int)
60         54(iLod):     53(ptr) Variable Input
61            76(t):     18(ptr) Variable Input
62               77:             TypePointer Output 7(fvec4)
63        78(color):     77(ptr) Variable Output
64          4(main):           2 Function None 3
65                5:             Label
66         9(color):      8(ptr) Variable Function
67                               Store 9(color) 11
68               16:          13 Load 15(texSampler2D)
69               20:   17(fvec2) Load 19(coords2D)
70               21:    7(fvec4) ImageSampleImplicitLod 16 20
71               22:    7(fvec4) Load 9(color)
72               23:    7(fvec4) FAdd 22 21
73                               Store 9(color) 23
74               29:          26 Load 28(itexSampler2D)
75               30:   17(fvec2) Load 19(coords2D)
76               32:   31(ivec4) ImageSampleImplicitLod 29 30 SignExtend 
77               33:    7(fvec4) ConvertSToF 32
78               34:    7(fvec4) Load 9(color)
79               35:    7(fvec4) FAdd 34 33
80                               Store 9(color) 35
81               41:          38 Load 40(utexSampler2D)
82               42:   17(fvec2) Load 19(coords2D)
83               44:   43(ivec4) ImageSampleImplicitLod 41 42 ZeroExtend 
84               45:    7(fvec4) ConvertUToF 44
85               46:    7(fvec4) Load 9(color)
86               47:    7(fvec4) FAdd 46 45
87                               Store 9(color) 47
88               48:          13 Load 15(texSampler2D)
89               52:   49(ivec2) Load 51(iCoords2D)
90               55:     24(int) Load 54(iLod)
91               56:          12 Image 48
92               57:    7(fvec4) ImageFetch 56 52 Lod 55
93               58:    7(fvec4) Load 9(color)
94               59:    7(fvec4) FAdd 58 57
95                               Store 9(color) 59
96               60:          26 Load 28(itexSampler2D)
97               61:   49(ivec2) Load 51(iCoords2D)
98               62:     24(int) Load 54(iLod)
99               63:          25 Image 60
100               64:   31(ivec4) ImageFetch 63 61 Lod SignExtend 62
101               65:    7(fvec4) ConvertSToF 64
102               66:    7(fvec4) Load 9(color)
103               67:    7(fvec4) FAdd 66 65
104                               Store 9(color) 67
105               68:          38 Load 40(utexSampler2D)
106               69:   49(ivec2) Load 51(iCoords2D)
107               70:     24(int) Load 54(iLod)
108               71:          37 Image 68
109               72:   43(ivec4) ImageFetch 71 69 Lod ZeroExtend 70
110               73:    7(fvec4) ConvertUToF 72
111               74:    7(fvec4) Load 9(color)
112               75:    7(fvec4) FAdd 74 73
113                               Store 9(color) 75
114                               Return
115                               FunctionEnd