yum-mirror/glslang

git clone https://git.yummers.dev/yum-mirror/glslang

Wooyoung KimAdd the GLSL_QCOM_tile_shading support10ae0e16

main
8.4 KiB169 linesraw
1spv.qcom.tileShading.0.frag
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 108
5
6                              Capability Shader
7                              Capability TileShadingQCOM
8                              Extension  "SPV_QCOM_tile_shading"
9               1:             ExtInstImport  "GLSL.std.450"
10                              MemoryModel Logical GLSL450
11                              EntryPoint Fragment 4  "main" 22 26 102
12                              ExecutionMode 4 OriginUpperLeft
13                              Source GLSL 460
14                              SourceExtension  "GL_QCOM_tile_shading"
15                              Name 4  "main"
16                              Name 9  "o2"
17                              Name 20  "offset"
18                              Name 22  "gl_TileOffsetQCOM"
19                              Name 26  "gl_TileDimensionQCOM"
20                              Name 36  "colorA"
21                              Name 39  "color0"
22                              Name 45  "icolorB"
23                              Name 48  "color1"
24                              Name 52  "colorB"
25                              Name 55  "colorC"
26                              Name 56  "input0"
27                              Name 61  "d"
28                              Name 62  "depth"
29                              Name 69  "s"
30                              Name 72  "stencil"
31                              Name 78  "outColor"
32                              Name 102  "fragColor"
33                              Decorate 22(gl_TileOffsetQCOM) BuiltIn TileOffsetQCOM
34                              Decorate 22(gl_TileOffsetQCOM) Flat
35                              Decorate 26(gl_TileDimensionQCOM) BuiltIn TileDimensionQCOM
36                              Decorate 26(gl_TileDimensionQCOM) Flat
37                              Decorate 39(color0) Binding 1
38                              Decorate 39(color0) DescriptorSet 0
39                              Decorate 48(color1) Binding 2
40                              Decorate 48(color1) DescriptorSet 0
41                              Decorate 56(input0) Binding 0
42                              Decorate 56(input0) DescriptorSet 0
43                              Decorate 62(depth) Binding 3
44                              Decorate 62(depth) DescriptorSet 0
45                              Decorate 72(stencil) Binding 4
46                              Decorate 72(stencil) DescriptorSet 0
47                              Decorate 102(fragColor) Location 0
48               2:             TypeVoid
49               3:             TypeFunction 2
50               6:             TypeInt 32 0
51               7:             TypeVector 6(int) 2
52               8:             TypePointer Function 7(ivec2)
53              10:      6(int) Constant 8
54              11:      6(int) Constant 4
55              12:    7(ivec2) ConstantComposite 10 11
56              14:      6(int) Constant 2
57              15:    7(ivec2) ConstantComposite 14 14
58              17:             TypeInt 32 1
59              18:             TypeVector 17(int) 2
60              19:             TypePointer Function 18(ivec2)
61              21:             TypePointer Input 7(ivec2)
6222(gl_TileOffsetQCOM):     21(ptr) Variable Input
63              24:             TypeVector 6(int) 3
64              25:             TypePointer Input 24(ivec3)
6526(gl_TileDimensionQCOM):     25(ptr) Variable Input
66              28:   24(ivec3) ConstantComposite 14 14 14
67              33:             TypeFloat 32
68              34:             TypeVector 33(float) 4
69              35:             TypePointer Function 34(fvec4)
70              37:             TypeImage 33(float) 2D nonsampled format:Rgba32f
71              38:             TypePointer TileAttachmentQCOM 37
72      39(color0):     38(ptr) Variable TileAttachmentQCOM
73              43:             TypeVector 17(int) 4
74              44:             TypePointer Function 43(ivec4)
75              46:             TypeImage 17(int) 2D nonsampled format:Rgba32i
76              47:             TypePointer TileAttachmentQCOM 46
77      48(color1):     47(ptr) Variable TileAttachmentQCOM
78      56(input0):     38(ptr) Variable TileAttachmentQCOM
79              60:             TypePointer Function 33(float)
80       62(depth):     38(ptr) Variable TileAttachmentQCOM
81              66:      6(int) Constant 0
82              68:             TypePointer Function 6(int)
83              70:             TypeImage 6(int) 2D nonsampled format:Rgba32ui
84              71:             TypePointer TileAttachmentQCOM 70
85     72(stencil):     71(ptr) Variable TileAttachmentQCOM
86              75:             TypeVector 6(int) 4
87             101:             TypePointer Output 34(fvec4)
88  102(fragColor):    101(ptr) Variable Output
89             104:   33(float) Constant 1065353216
90             105:   33(float) Constant 0
91             106:   34(fvec4) ConstantComposite 104 105 105 104
92         4(main):           2 Function None 3
93               5:             Label
94           9(o2):      8(ptr) Variable Function
95      20(offset):     19(ptr) Variable Function
96      36(colorA):     35(ptr) Variable Function
97     45(icolorB):     44(ptr) Variable Function
98      52(colorB):     35(ptr) Variable Function
99      55(colorC):     35(ptr) Variable Function
100           61(d):     60(ptr) Variable Function
101           69(s):     68(ptr) Variable Function
102    78(outColor):     35(ptr) Variable Function
103                              Store 9(o2) 12
104              13:    7(ivec2) Load 9(o2)
105              16:    7(ivec2) UDiv 13 15
106                              Store 9(o2) 16
107              23:    7(ivec2) Load 22(gl_TileOffsetQCOM)
108              27:   24(ivec3) Load 26(gl_TileDimensionQCOM)
109              29:   24(ivec3) UDiv 27 28
110              30:    7(ivec2) VectorShuffle 29 29 0 1
111              31:    7(ivec2) IAdd 23 30
112              32:   18(ivec2) Bitcast 31
113                              Store 20(offset) 32
114              40:          37 Load 39(color0)
115              41:   18(ivec2) Load 20(offset)
116              42:   34(fvec4) ImageRead 40 41
117                              Store 36(colorA) 42
118              49:          46 Load 48(color1)
119              50:   18(ivec2) Load 20(offset)
120              51:   43(ivec4) ImageRead 49 50
121                              Store 45(icolorB) 51
122              53:   43(ivec4) Load 45(icolorB)
123              54:   34(fvec4) ConvertSToF 53
124                              Store 52(colorB) 54
125              57:          37 Load 56(input0)
126              58:   18(ivec2) Load 20(offset)
127              59:   34(fvec4) ImageRead 57 58
128                              Store 55(colorC) 59
129              63:          37 Load 62(depth)
130              64:   18(ivec2) Load 20(offset)
131              65:   34(fvec4) ImageRead 63 64
132              67:   33(float) CompositeExtract 65 0
133                              Store 61(d) 67
134              73:          70 Load 72(stencil)
135              74:   18(ivec2) Load 20(offset)
136              76:   75(ivec4) ImageRead 73 74
137              77:      6(int) CompositeExtract 76 0
138                              Store 69(s) 77
139              79:   34(fvec4) Load 52(colorB)
140              80:   34(fvec4) Load 52(colorB)
141              81:   34(fvec4) FAdd 79 80
142              82:   34(fvec4) Load 55(colorC)
143              83:   34(fvec4) FAdd 81 82
144              84:   33(float) Load 61(d)
145              85:   34(fvec4) CompositeConstruct 84 84 84 84
146              86:   34(fvec4) FAdd 83 85
147              87:      6(int) Load 69(s)
148              88:   33(float) ConvertUToF 87
149              89:   34(fvec4) CompositeConstruct 88 88 88 88
150              90:   34(fvec4) FAdd 86 89
151                              Store 78(outColor) 90
152              91:          37 Load 39(color0)
153              92:   18(ivec2) Load 20(offset)
154              93:   34(fvec4) Load 78(outColor)
155                              ImageWrite 91 92 93
156              94:          37 Load 62(depth)
157              95:   18(ivec2) Load 20(offset)
158              96:   34(fvec4) Load 78(outColor)
159                              ImageWrite 94 95 96
160              97:          70 Load 72(stencil)
161              98:   18(ivec2) Load 20(offset)
162              99:   34(fvec4) Load 78(outColor)
163             100:   75(ivec4) ConvertFToU 99
164                              ImageWrite 97 98 100
165             103:   34(fvec4) Load 78(outColor)
166             107:   34(fvec4) FAdd 103 106
167                              Store 102(fragColor) 107
168                              Return
169                              FunctionEnd