1spv.imageLoadStoreLod.frag
2// Module Version 10000
3// Generated by (magic number): 80007
4// Id's are bound by 82
5
6                              Capability Shader
7                              Capability ImageCubeArray
8                              Capability SparseResidency
9                              Capability Image1D
10                              Capability ImageReadWriteLodAMD
11                              Extension  "SPV_AMD_shader_image_load_store_lod"
12               1:             ExtInstImport  "GLSL.std.450"
13                              MemoryModel Logical GLSL450
14                              EntryPoint Fragment 4  "main" 77
15                              ExecutionMode 4 OriginUpperLeft
16                              Source GLSL 450
17                              SourceExtension  "GL_AMD_shader_image_load_store_lod"
18                              Name 4  "main"
19                              Name 9  "f4"
20                              Name 14  "i1D"
21                              Name 24  "i2D"
22                              Name 34  "i3D"
23                              Name 46  "iiCube"
24                              Name 53  "ii1DArray"
25                              Name 60  "ui2DArray"
26                              Name 64  "u4"
27                              Name 65  "ResType"
28                              Name 71  "uiCubeArray"
29                              Name 77  "fragColor"
30                              Decorate 14(i1D) DescriptorSet 0
31                              Decorate 14(i1D) Binding 0
32                              Decorate 24(i2D) DescriptorSet 0
33                              Decorate 24(i2D) Binding 1
34                              Decorate 34(i3D) DescriptorSet 0
35                              Decorate 34(i3D) Binding 2
36                              Decorate 46(iiCube) DescriptorSet 0
37                              Decorate 46(iiCube) Binding 3
38                              Decorate 53(ii1DArray) DescriptorSet 0
39                              Decorate 53(ii1DArray) Binding 4
40                              Decorate 60(ui2DArray) DescriptorSet 0
41                              Decorate 60(ui2DArray) Binding 5
42                              Decorate 71(uiCubeArray) DescriptorSet 0
43                              Decorate 71(uiCubeArray) Binding 6
44                              Decorate 77(fragColor) Location 0
45               2:             TypeVoid
46               3:             TypeFunction 2
47               6:             TypeFloat 32
48               7:             TypeVector 6(float) 4
49               8:             TypePointer Function 7(fvec4)
50              10:    6(float) Constant 0
51              11:    7(fvec4) ConstantComposite 10 10 10 10
52              12:             TypeImage 6(float) 1D nonsampled format:Rgba32f
53              13:             TypePointer UniformConstant 12
54         14(i1D):     13(ptr) Variable UniformConstant
55              16:             TypeInt 32 1
56              17:     16(int) Constant 1
57              18:     16(int) Constant 3
58              22:             TypeImage 6(float) 2D nonsampled format:Rgba32f
59              23:             TypePointer UniformConstant 22
60         24(i2D):     23(ptr) Variable UniformConstant
61              26:             TypeVector 16(int) 2
62              27:     16(int) Constant 2
63              28:   26(ivec2) ConstantComposite 27 18
64              32:             TypeImage 6(float) 3D nonsampled format:Rgba32f
65              33:             TypePointer UniformConstant 32
66         34(i3D):     33(ptr) Variable UniformConstant
67              36:             TypeVector 16(int) 3
68              37:     16(int) Constant 4
69              38:     16(int) Constant 5
70              39:     16(int) Constant 6
71              40:   36(ivec3) ConstantComposite 37 38 39
72              44:             TypeImage 16(int) Cube nonsampled format:Rgba32i
73              45:             TypePointer UniformConstant 44
74      46(iiCube):     45(ptr) Variable UniformConstant
75              49:             TypeVector 16(int) 4
76              51:             TypeImage 16(int) 1D array nonsampled format:Rgba32i
77              52:             TypePointer UniformConstant 51
78   53(ii1DArray):     52(ptr) Variable UniformConstant
79              57:             TypeInt 32 0
80              58:             TypeImage 57(int) 2D array nonsampled format:Rgba32ui
81              59:             TypePointer UniformConstant 58
82   60(ui2DArray):     59(ptr) Variable UniformConstant
83              62:             TypeVector 57(int) 4
84              63:             TypePointer Function 62(ivec4)
85     65(ResType):             TypeStruct 16(int) 62(ivec4)
86              69:             TypeImage 57(int) Cube array nonsampled format:Rgba32ui
87              70:             TypePointer UniformConstant 69
88 71(uiCubeArray):     70(ptr) Variable UniformConstant
89              76:             TypePointer Output 7(fvec4)
90   77(fragColor):     76(ptr) Variable Output
91         4(main):           2 Function None 3
92               5:             Label
93           9(f4):      8(ptr) Variable Function
94          64(u4):     63(ptr) Variable Function
95                              Store 9(f4) 11
96              15:          12 Load 14(i1D)
97              19:    7(fvec4) ImageRead 15 17 Lod 18
98              20:    7(fvec4) Load 9(f4)
99              21:    7(fvec4) FAdd 20 19
100                              Store 9(f4) 21
101              25:          22 Load 24(i2D)
102              29:    7(fvec4) ImageRead 25 28 Lod 18
103              30:    7(fvec4) Load 9(f4)
104              31:    7(fvec4) FAdd 30 29
105                              Store 9(f4) 31
106              35:          32 Load 34(i3D)
107              41:    7(fvec4) ImageRead 35 40 Lod 18
108              42:    7(fvec4) Load 9(f4)
109              43:    7(fvec4) FAdd 42 41
110                              Store 9(f4) 43
111              47:          44 Load 46(iiCube)
112              48:    7(fvec4) Load 9(f4)
113              50:   49(ivec4) ConvertFToS 48
114                              ImageWrite 47 40 50 Lod 18
115              54:          51 Load 53(ii1DArray)
116              55:    7(fvec4) Load 9(f4)
117              56:   49(ivec4) ConvertFToS 55
118                              ImageWrite 54 28 56 Lod 18
119              61:          58 Load 60(ui2DArray)
120              66: 65(ResType) ImageSparseRead 61 40 Lod 18
121              67:   62(ivec4) CompositeExtract 66 1
122                              Store 64(u4) 67
123              68:     16(int) CompositeExtract 66 0
124              72:          69 Load 71(uiCubeArray)
125              73: 65(ResType) ImageSparseRead 72 40 Lod 18
126              74:   62(ivec4) CompositeExtract 73 1
127                              Store 64(u4) 74
128              75:     16(int) CompositeExtract 73 0
129              78:    7(fvec4) Load 9(f4)
130              79:   62(ivec4) Load 64(u4)
131              80:    7(fvec4) ConvertUToF 79
132              81:    7(fvec4) FAdd 78 80
133                              Store 77(fragColor) 81
134                              Return
135                              FunctionEnd
136