1617a3babSopenharmony_cispv.shaderFragMaskAMD.frag
2617a3babSopenharmony_ci// Module Version 10000
3617a3babSopenharmony_ci// Generated by (magic number): 8000b
4617a3babSopenharmony_ci// Id's are bound by 80
5617a3babSopenharmony_ci
6617a3babSopenharmony_ci                              Capability Shader
7617a3babSopenharmony_ci                              Capability InputAttachment
8617a3babSopenharmony_ci                              Capability FragmentMaskAMD
9617a3babSopenharmony_ci                              Extension  "SPV_AMD_shader_fragment_mask"
10617a3babSopenharmony_ci               1:             ExtInstImport  "GLSL.std.450"
11617a3babSopenharmony_ci                              MemoryModel Logical GLSL450
12617a3babSopenharmony_ci                              EntryPoint Fragment 4  "main" 78
13617a3babSopenharmony_ci                              ExecutionMode 4 OriginUpperLeft
14617a3babSopenharmony_ci                              Source GLSL 450
15617a3babSopenharmony_ci                              SourceExtension  "GL_AMD_shader_fragment_mask"
16617a3babSopenharmony_ci                              Name 4  "main"
17617a3babSopenharmony_ci                              Name 9  "f4"
18617a3babSopenharmony_ci                              Name 14  "fragMask"
19617a3babSopenharmony_ci                              Name 18  "s2DMS"
20617a3babSopenharmony_ci                              Name 27  "fragIndex"
21617a3babSopenharmony_ci                              Name 42  "is2DMSArray"
22617a3babSopenharmony_ci                              Name 62  "usubpassMS"
23617a3babSopenharmony_ci                              Name 78  "fragColor"
24617a3babSopenharmony_ci                              Decorate 18(s2DMS) DescriptorSet 0
25617a3babSopenharmony_ci                              Decorate 18(s2DMS) Binding 0
26617a3babSopenharmony_ci                              Decorate 42(is2DMSArray) DescriptorSet 0
27617a3babSopenharmony_ci                              Decorate 42(is2DMSArray) Binding 1
28617a3babSopenharmony_ci                              Decorate 62(usubpassMS) DescriptorSet 0
29617a3babSopenharmony_ci                              Decorate 62(usubpassMS) Binding 2
30617a3babSopenharmony_ci                              Decorate 62(usubpassMS) InputAttachmentIndex 0
31617a3babSopenharmony_ci                              Decorate 78(fragColor) Location 0
32617a3babSopenharmony_ci               2:             TypeVoid
33617a3babSopenharmony_ci               3:             TypeFunction 2
34617a3babSopenharmony_ci               6:             TypeFloat 32
35617a3babSopenharmony_ci               7:             TypeVector 6(float) 4
36617a3babSopenharmony_ci               8:             TypePointer Function 7(fvec4)
37617a3babSopenharmony_ci              10:    6(float) Constant 0
38617a3babSopenharmony_ci              11:    7(fvec4) ConstantComposite 10 10 10 10
39617a3babSopenharmony_ci              12:             TypeInt 32 0
40617a3babSopenharmony_ci              13:             TypePointer Function 12(int)
41617a3babSopenharmony_ci              15:             TypeImage 6(float) 2D multi-sampled sampled format:Unknown
42617a3babSopenharmony_ci              16:             TypeSampledImage 15
43617a3babSopenharmony_ci              17:             TypePointer UniformConstant 16
44617a3babSopenharmony_ci       18(s2DMS):     17(ptr) Variable UniformConstant
45617a3babSopenharmony_ci              20:             TypeInt 32 1
46617a3babSopenharmony_ci              21:             TypeVector 20(int) 2
47617a3babSopenharmony_ci              22:     20(int) Constant 2
48617a3babSopenharmony_ci              23:     20(int) Constant 3
49617a3babSopenharmony_ci              24:   21(ivec2) ConstantComposite 22 23
50617a3babSopenharmony_ci              29:     12(int) Constant 240
51617a3babSopenharmony_ci              31:     20(int) Constant 4
52617a3babSopenharmony_ci              34:     12(int) Constant 1
53617a3babSopenharmony_ci              39:             TypeImage 20(int) 2D array multi-sampled sampled format:Unknown
54617a3babSopenharmony_ci              40:             TypeSampledImage 39
55617a3babSopenharmony_ci              41:             TypePointer UniformConstant 40
56617a3babSopenharmony_ci 42(is2DMSArray):     41(ptr) Variable UniformConstant
57617a3babSopenharmony_ci              44:             TypeVector 20(int) 3
58617a3babSopenharmony_ci              45:     20(int) Constant 1
59617a3babSopenharmony_ci              46:   44(ivec3) ConstantComposite 22 23 45
60617a3babSopenharmony_ci              55:             TypeVector 20(int) 4
61617a3babSopenharmony_ci              60:             TypeImage 12(int) SubpassData multi-sampled nonsampled format:Unknown
62617a3babSopenharmony_ci              61:             TypePointer UniformConstant 60
63617a3babSopenharmony_ci  62(usubpassMS):     61(ptr) Variable UniformConstant
64617a3babSopenharmony_ci              64:     20(int) Constant 0
65617a3babSopenharmony_ci              65:   21(ivec2) ConstantComposite 64 64
66617a3babSopenharmony_ci              72:             TypeVector 12(int) 4
67617a3babSopenharmony_ci              77:             TypePointer Output 7(fvec4)
68617a3babSopenharmony_ci   78(fragColor):     77(ptr) Variable Output
69617a3babSopenharmony_ci         4(main):           2 Function None 3
70617a3babSopenharmony_ci               5:             Label
71617a3babSopenharmony_ci           9(f4):      8(ptr) Variable Function
72617a3babSopenharmony_ci    14(fragMask):     13(ptr) Variable Function
73617a3babSopenharmony_ci   27(fragIndex):     13(ptr) Variable Function
74617a3babSopenharmony_ci                              Store 9(f4) 11
75617a3babSopenharmony_ci              19:          16 Load 18(s2DMS)
76617a3babSopenharmony_ci              25:          15 Image 19
77617a3babSopenharmony_ci              26:     12(int) FragmentMaskFetchAMD 25 24
78617a3babSopenharmony_ci                              Store 14(fragMask) 26
79617a3babSopenharmony_ci              28:     12(int) Load 14(fragMask)
80617a3babSopenharmony_ci              30:     12(int) BitwiseAnd 28 29
81617a3babSopenharmony_ci              32:     12(int) ShiftRightLogical 30 31
82617a3babSopenharmony_ci                              Store 27(fragIndex) 32
83617a3babSopenharmony_ci              33:          16 Load 18(s2DMS)
84617a3babSopenharmony_ci              35:          15 Image 33
85617a3babSopenharmony_ci              36:    7(fvec4) FragmentFetchAMD 35 24 34
86617a3babSopenharmony_ci              37:    7(fvec4) Load 9(f4)
87617a3babSopenharmony_ci              38:    7(fvec4) FAdd 37 36
88617a3babSopenharmony_ci                              Store 9(f4) 38
89617a3babSopenharmony_ci              43:          40 Load 42(is2DMSArray)
90617a3babSopenharmony_ci              47:          39 Image 43
91617a3babSopenharmony_ci              48:     12(int) FragmentMaskFetchAMD 47 46
92617a3babSopenharmony_ci                              Store 14(fragMask) 48
93617a3babSopenharmony_ci              49:     12(int) Load 14(fragMask)
94617a3babSopenharmony_ci              50:     12(int) BitwiseAnd 49 29
95617a3babSopenharmony_ci              51:     12(int) ShiftRightLogical 50 31
96617a3babSopenharmony_ci                              Store 27(fragIndex) 51
97617a3babSopenharmony_ci              52:          40 Load 42(is2DMSArray)
98617a3babSopenharmony_ci              53:     12(int) Load 27(fragIndex)
99617a3babSopenharmony_ci              54:          39 Image 52
100617a3babSopenharmony_ci              56:   55(ivec4) FragmentFetchAMD 54 46 53
101617a3babSopenharmony_ci              57:    7(fvec4) ConvertSToF 56
102617a3babSopenharmony_ci              58:    7(fvec4) Load 9(f4)
103617a3babSopenharmony_ci              59:    7(fvec4) FAdd 58 57
104617a3babSopenharmony_ci                              Store 9(f4) 59
105617a3babSopenharmony_ci              63:          60 Load 62(usubpassMS)
106617a3babSopenharmony_ci              66:     12(int) FragmentMaskFetchAMD 63 65
107617a3babSopenharmony_ci                              Store 14(fragMask) 66
108617a3babSopenharmony_ci              67:     12(int) Load 14(fragMask)
109617a3babSopenharmony_ci              68:     12(int) BitwiseAnd 67 29
110617a3babSopenharmony_ci              69:     12(int) ShiftRightLogical 68 31
111617a3babSopenharmony_ci                              Store 27(fragIndex) 69
112617a3babSopenharmony_ci              70:          60 Load 62(usubpassMS)
113617a3babSopenharmony_ci              71:     12(int) Load 27(fragIndex)
114617a3babSopenharmony_ci              73:   72(ivec4) FragmentFetchAMD 70 65 71
115617a3babSopenharmony_ci              74:    7(fvec4) ConvertUToF 73
116617a3babSopenharmony_ci              75:    7(fvec4) Load 9(f4)
117617a3babSopenharmony_ci              76:    7(fvec4) FAdd 75 74
118617a3babSopenharmony_ci                              Store 9(f4) 76
119617a3babSopenharmony_ci              79:    7(fvec4) Load 9(f4)
120617a3babSopenharmony_ci                              Store 78(fragColor) 79
121617a3babSopenharmony_ci                              Return
122617a3babSopenharmony_ci                              FunctionEnd
123