• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1spv.debuginfo.bufferref.glsl.frag
2// Module Version 10000
3// Generated by (magic number): 8000b
4// Id's are bound by 132
5
6                              Capability Shader
7                              Capability PhysicalStorageBufferAddressesEXT
8                              Extension  "SPV_KHR_non_semantic_info"
9                              Extension  "SPV_KHR_physical_storage_buffer"
10                              Extension  "SPV_KHR_storage_buffer_storage_class"
11               2:             ExtInstImport  "NonSemantic.Shader.DebugInfo.100"
12               3:             ExtInstImport  "GLSL.std.450"
13                              MemoryModel PhysicalStorageBuffer64EXT GLSL450
14                              EntryPoint Fragment 14  "main" 70 123
15                              ExecutionMode 14 OriginUpperLeft
16               1:             String  ""
17               8:             String  "uint"
18              16:             String  "main"
19              19:             String  "// OpModuleProcessed auto-map-locations
20// OpModuleProcessed auto-map-bindings
21// OpModuleProcessed client vulkan100
22// OpModuleProcessed target-env vulkan1.0
23// OpModuleProcessed keep-uncalled
24// OpModuleProcessed entry-point main
25#line 1
26"
27              32:             String  "Mesh"
28              34:             String  "float"
29              40:             String  "data"
30              44:             String  "MeshVertexPositions"
31              48:             String  "meshData"
32              60:             String  "PerPass_meshes"
33              64:             String  "perPass_meshes"
34              66:             String  "int"
35              72:             String  "tri_idx0"
36              87:             String  "vertex_pos0"
37             125:             String  "out_fragColor"
38                              SourceExtension  "GL_EXT_buffer_reference"
39                              Name 14  "main"
40                              Name 30  "Mesh"
41                              MemberName 30(Mesh) 0  "positions"
42                              Name 38  "MeshVertexPositions"
43                              MemberName 38(MeshVertexPositions) 0  "data"
44                              Name 46  "meshData"
45                              Name 51  "Mesh"
46                              MemberName 51(Mesh) 0  "positions"
47                              Name 55  "PerPass_meshes"
48                              MemberName 55(PerPass_meshes) 0  "data"
49                              Name 62  "perPass_meshes"
50                              Name 70  "tri_idx0"
51                              Name 85  "vertex_pos0"
52                              Name 123  "out_fragColor"
53                              Decorate 36 ArrayStride 4
54                              MemberDecorate 38(MeshVertexPositions) 0 Offset 0
55                              Decorate 38(MeshVertexPositions) Block
56                              MemberDecorate 51(Mesh) 0 Offset 0
57                              Decorate 53 ArrayStride 8
58                              MemberDecorate 55(PerPass_meshes) 0 NonWritable
59                              MemberDecorate 55(PerPass_meshes) 0 Offset 0
60                              Decorate 55(PerPass_meshes) Block
61                              Decorate 62(perPass_meshes) DescriptorSet 0
62                              Decorate 62(perPass_meshes) Binding 0
63                              Decorate 70(tri_idx0) Flat
64                              Decorate 70(tri_idx0) Location 0
65                              Decorate 123(out_fragColor) Location 0
66                              Decorate 46(meshData) DecorationAliasedPointerEXT
67               4:             TypeVoid
68               5:             TypeFunction 4
69               7:             TypeInt 32 0
70              10:      7(int) Constant 32
71              11:      7(int) Constant 6
72              12:      7(int) Constant 0
73               9:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12
74              13:      7(int) Constant 3
75               6:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4
76              18:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 19
77              20:      7(int) Constant 20
78              22:      7(int) Constant 1
79              23:      7(int) Constant 4
80              24:      7(int) Constant 2
81              21:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 22 23 18 24
82              17:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 16 6 18 20 12 21 16 13 20
83              28:      7(int) Constant 21
84                              TypeForwardPointer 29 PhysicalStorageBufferEXT
85        30(Mesh):             TypeStruct 29
86              31:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 32 22 18 28 12 21 32 12 13
87              33:             TypeFloat 32
88              35:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 34 10 13 12
89              36:             TypeRuntimeArray 33(float)
90              37:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 35 12
9138(MeshVertexPositions):             TypeStruct 36
92              41:      7(int) Constant 5
93              42:      7(int) Constant 9
94              39:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 40 37 18 41 42 12 12 13
95              43:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 44 22 18 28 12 21 44 12 13 39
96              29:             TypePointer PhysicalStorageBufferEXT 38(MeshVertexPositions)
97              45:             TypePointer Function 30(Mesh)
98              47:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 48 31 18 28 12 17 23
99              50:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
100        51(Mesh):             TypeStruct 29(ptr)
101              52:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 32 22 18 28 12 21 32 12 13
102              53:             TypeRuntimeArray 51(Mesh)
103              54:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 52 12
10455(PerPass_meshes):             TypeStruct 53
105              57:      7(int) Constant 13
106              58:      7(int) Constant 8
107              56:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 40 54 18 57 58 12 12 13
108              59:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 60 22 18 28 12 21 60 12 13 56
109              61:             TypePointer StorageBuffer 55(PerPass_meshes)
11062(perPass_meshes):     61(ptr) Variable StorageBuffer
111              63:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 64 59 18 28 12 21 64 62(perPass_meshes) 58
112              65:             TypeInt 32 1
113              67:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 66 10 23 12
114              68:     65(int) Constant 0
115              69:             TypePointer Input 7(int)
116    70(tri_idx0):     69(ptr) Variable Input
117              71:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 72 9 18 28 12 21 72 70(tri_idx0) 58
118              74:             TypePointer StorageBuffer 51(Mesh)
119              78:             TypePointer Function 29(ptr)
120              81:      7(int) Constant 23
121              82:             TypeVector 33(float) 3
122              83:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 35 13
123              84:             TypePointer Function 82(fvec3)
124              86:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 87 83 18 81 12 17 23
125              90:      7(int) Constant 25
126              96:             TypePointer PhysicalStorageBufferEXT 33(float)
127             100:      7(int) Constant 24
128             119:      7(int) Constant 27
129             120:             TypeVector 33(float) 4
130             121:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 35 23
131             122:             TypePointer Output 120(fvec4)
132123(out_fragColor):    122(ptr) Variable Output
133             124:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 125 121 18 119 12 21 125 123(out_fragColor) 58
134             127:   33(float) Constant 1065353216
135                              Line 1 20 11
136        14(main):           4 Function None 5
137              15:             Label
138    46(meshData):     45(ptr) Variable Function
139 85(vertex_pos0):     84(ptr) Variable Function
140              25:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main)
141              26:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17
142              27:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 28 28 12 12
143              49:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 47 46(meshData) 50
144              73:      7(int) Load 70(tri_idx0)
145              75:     74(ptr) AccessChain 62(perPass_meshes) 68 73
146              76:    51(Mesh) Load 75
147              77:     29(ptr) CompositeExtract 76 0
148              79:     78(ptr) AccessChain 46(meshData) 68
149                              Store 79 77
150              80:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 81 81 12 12
151              88:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 86 85(vertex_pos0) 50
152              89:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 90 90 12 12
153              91:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 81 81 12 12
154              92:     78(ptr) AccessChain 46(meshData) 68
155              93:     29(ptr) Load 92
156              94:      7(int) Load 70(tri_idx0)
157              95:      7(int) IMul 13 94
158              97:     96(ptr) AccessChain 93 68 95
159              98:   33(float) Load 97 Aligned 4
160              99:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 100 100 12 12
161             101:     78(ptr) AccessChain 46(meshData) 68
162             102:     29(ptr) Load 101
163             103:      7(int) Load 70(tri_idx0)
164             104:      7(int) IMul 13 103
165             105:      7(int) IAdd 104 22
166             106:     96(ptr) AccessChain 102 68 105
167             107:   33(float) Load 106 Aligned 4
168             108:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 90 90 12 12
169             109:     78(ptr) AccessChain 46(meshData) 68
170             110:     29(ptr) Load 109
171             111:      7(int) Load 70(tri_idx0)
172             112:      7(int) IMul 13 111
173             113:      7(int) IAdd 112 24
174             114:     96(ptr) AccessChain 110 68 113
175             115:   33(float) Load 114 Aligned 4
176             116:   82(fvec3) CompositeConstruct 98 107 115
177             117:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 81 81 12 12
178                              Store 85(vertex_pos0) 116
179             118:           4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 119 119 12 12
180             126:   82(fvec3) Load 85(vertex_pos0)
181             128:   33(float) CompositeExtract 126 0
182             129:   33(float) CompositeExtract 126 1
183             130:   33(float) CompositeExtract 126 2
184             131:  120(fvec4) CompositeConstruct 128 129 130 127
185                              Store 123(out_fragColor) 131
186                              Return
187                              FunctionEnd
188