1spv.debuginfo.bufferref.glsl.frag 2// Module Version 10000 3// Generated by (magic number): 8000b 4// Id's are bound by 148 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_relaxed_extended_instruction" 11 Extension "SPV_KHR_storage_buffer_storage_class" 12 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" 13 3: ExtInstImport "GLSL.std.450" 14 MemoryModel PhysicalStorageBuffer64EXT GLSL450 15 EntryPoint Fragment 14 "main" 82 135 16 ExecutionMode 14 OriginUpperLeft 17 2: String "spv.debuginfo.bufferref.glsl.frag" 18 8: String "uint" 19 16: String "main" 20 19: String "// OpModuleProcessed auto-map-locations 21// OpModuleProcessed auto-map-bindings 22// OpModuleProcessed client vulkan100 23// OpModuleProcessed target-env vulkan1.0 24// OpModuleProcessed keep-uncalled 25// OpModuleProcessed entry-point main 26#line 1 27#version 450 core 28#extension GL_EXT_buffer_reference : enable 29 30layout(buffer_reference, std430) buffer MeshVertexPositions { 31 float data[]; 32}; 33 34struct Mesh { 35 MeshVertexPositions positions; 36}; 37 38layout(set = 0, binding = 0) readonly buffer PerPass_meshes { 39 Mesh data[]; 40} perPass_meshes; 41 42layout(location = 0) out vec4 out_fragColor; 43 44layout(location = 0) in flat uint tri_idx0; 45 46void main() { 47 Mesh meshData = perPass_meshes.data[tri_idx0]; 48 49 vec3 vertex_pos0 = vec3(meshData.positions.data[3 * tri_idx0], 50 meshData.positions.data[3 * tri_idx0 + 1], 51 meshData.positions.data[3 * tri_idx0 + 2]); 52 53 out_fragColor = vec4(vertex_pos0, 1.0); 54} 55" 56 33: String "positions" 57 37: String "Mesh" 58 40: String "float" 59 46: String "data" 60 49: String "MeshVertexPositions" 61 55: String "meshData" 62 69: String "PerPass_meshes" 63 75: String "perPass_meshes" 64 77: String "int" 65 84: String "tri_idx0" 66 100: String "vertex_pos0" 67 137: String "out_fragColor" 68 SourceExtension "GL_EXT_buffer_reference" 69 Name 14 "main" 70 Name 31 "Mesh" 71 MemberName 31(Mesh) 0 "positions" 72 Name 44 "MeshVertexPositions" 73 MemberName 44(MeshVertexPositions) 0 "data" 74 Name 53 "meshData" 75 Name 59 "Mesh" 76 MemberName 59(Mesh) 0 "positions" 77 Name 64 "PerPass_meshes" 78 MemberName 64(PerPass_meshes) 0 "data" 79 Name 73 "perPass_meshes" 80 Name 82 "tri_idx0" 81 Name 98 "vertex_pos0" 82 Name 135 "out_fragColor" 83 Decorate 42 ArrayStride 4 84 Decorate 44(MeshVertexPositions) Block 85 MemberDecorate 44(MeshVertexPositions) 0 Offset 0 86 Decorate 53(meshData) DecorationAliasedPointerEXT 87 MemberDecorate 59(Mesh) 0 Offset 0 88 Decorate 62 ArrayStride 8 89 Decorate 64(PerPass_meshes) Block 90 MemberDecorate 64(PerPass_meshes) 0 NonWritable 91 MemberDecorate 64(PerPass_meshes) 0 Offset 0 92 Decorate 73(perPass_meshes) NonWritable 93 Decorate 73(perPass_meshes) Binding 0 94 Decorate 73(perPass_meshes) DescriptorSet 0 95 Decorate 82(tri_idx0) Flat 96 Decorate 82(tri_idx0) Location 0 97 Decorate 135(out_fragColor) Location 0 98 4: TypeVoid 99 5: TypeFunction 4 100 7: TypeInt 32 0 101 10: 7(int) Constant 32 102 11: 7(int) Constant 6 103 12: 7(int) Constant 0 104 9: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12 105 13: 7(int) Constant 3 106 6: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 107 18: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 19 108 20: 7(int) Constant 20 109 22: 7(int) Constant 1 110 23: 7(int) Constant 4 111 24: 7(int) Constant 2 112 21: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 22 23 18 24 113 17: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 16 6 18 20 12 21 16 13 20 114 TypeForwardPointer 28 PhysicalStorageBufferEXT 115 29: 7(int) Constant 5349 116 30: 4 ExtInstWithForwardRefsKHR 1(NonSemantic.Shader.DebugInfo.100) 3 48 29 12 117 31(Mesh): TypeStruct 28 118 34: 7(int) Constant 9 119 35: 7(int) Constant 23 120 32: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 33 30 18 34 35 12 12 13 121 38: 7(int) Constant 21 122 36: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 37 22 18 38 12 21 37 12 13 32 123 39: TypeFloat 32 124 41: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 40 10 13 12 125 42: TypeRuntimeArray 39(float) 126 43: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 41 12 12744(MeshVertexPositions): TypeStruct 42 128 47: 7(int) Constant 5 129 45: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 46 43 18 47 34 12 12 13 130 48: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 49 22 18 38 12 21 49 12 13 45 131 28: TypePointer PhysicalStorageBufferEXT 44(MeshVertexPositions) 132 50: TypePointer Function 31(Mesh) 133 51: 7(int) Constant 7 134 52: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 36 51 12 135 54: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 55 36 18 38 12 17 23 136 57: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) 137 59(Mesh): TypeStruct 28(ptr) 138 60: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 33 30 18 34 35 12 12 13 139 61: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 37 22 18 38 12 21 37 12 13 60 140 62: TypeRuntimeArray 59(Mesh) 141 63: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 61 12 14264(PerPass_meshes): TypeStruct 62 143 66: 7(int) Constant 13 144 67: 7(int) Constant 8 145 65: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 46 63 18 66 67 12 12 13 146 68: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 69 22 18 38 12 21 69 12 13 65 147 70: TypePointer StorageBuffer 64(PerPass_meshes) 148 71: 7(int) Constant 12 149 72: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 68 71 12 15073(perPass_meshes): 70(ptr) Variable StorageBuffer 151 74: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 75 68 18 38 12 21 75 73(perPass_meshes) 67 152 76: TypeInt 32 1 153 78: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 77 10 23 12 154 79: 76(int) Constant 0 155 80: TypePointer Input 7(int) 156 81: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 9 22 12 157 82(tri_idx0): 80(ptr) Variable Input 158 83: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 84 9 18 38 12 21 84 82(tri_idx0) 67 159 86: TypePointer StorageBuffer 59(Mesh) 160 87: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 61 71 12 161 91: TypePointer Function 28(ptr) 162 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 30 51 12 163 94: TypeVector 39(float) 3 164 95: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 41 13 165 96: TypePointer Function 94(fvec3) 166 97: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 95 51 12 167 99: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 100 95 18 35 12 17 23 168 107: TypePointer PhysicalStorageBufferEXT 39(float) 169 108: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 41 29 12 170 113: 7(int) Constant 24 171 122: 7(int) Constant 25 172 131: TypeVector 39(float) 4 173 132: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 41 23 174 133: TypePointer Output 131(fvec4) 175 134: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 132 13 12 176135(out_fragColor): 133(ptr) Variable Output 177 138: 7(int) Constant 27 178 136: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 137 132 18 138 12 21 137 135(out_fragColor) 67 179 141: 39(float) Constant 1065353216 180 147: 7(int) Constant 28 181 14(main): 4 Function None 5 182 15: Label 183 53(meshData): 50(ptr) Variable Function 184 98(vertex_pos0): 96(ptr) Variable Function 185 26: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17 186 27: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 20 20 12 12 187 25: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main) 188 58: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 38 38 12 12 189 56: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 54 53(meshData) 57 190 85: 7(int) Load 82(tri_idx0) 191 88: 86(ptr) AccessChain 73(perPass_meshes) 79 85 192 89: 59(Mesh) Load 88 193 90: 28(ptr) CompositeExtract 89 0 194 93: 91(ptr) AccessChain 53(meshData) 79 195 Store 93 90 196 102: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 35 35 12 12 197 101: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 99 98(vertex_pos0) 57 198 103: 91(ptr) AccessChain 53(meshData) 79 199 104: 28(ptr) Load 103 200 105: 7(int) Load 82(tri_idx0) 201 106: 7(int) IMul 13 105 202 109: 107(ptr) AccessChain 104 79 106 203 110: 39(float) Load 109 Aligned 4 204 112: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 113 113 12 12 205 111: 91(ptr) AccessChain 53(meshData) 79 206 114: 28(ptr) Load 111 207 115: 7(int) Load 82(tri_idx0) 208 116: 7(int) IMul 13 115 209 117: 7(int) IAdd 116 22 210 118: 107(ptr) AccessChain 114 79 117 211 119: 39(float) Load 118 Aligned 4 212 121: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 122 122 12 12 213 120: 91(ptr) AccessChain 53(meshData) 79 214 123: 28(ptr) Load 120 215 124: 7(int) Load 82(tri_idx0) 216 125: 7(int) IMul 13 124 217 126: 7(int) IAdd 125 24 218 127: 107(ptr) AccessChain 123 79 126 219 128: 39(float) Load 127 Aligned 4 220 129: 94(fvec3) CompositeConstruct 110 119 128 221 130: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 35 35 12 12 222 Store 98(vertex_pos0) 129 223 140: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 138 138 12 12 224 139: 94(fvec3) Load 98(vertex_pos0) 225 142: 39(float) CompositeExtract 139 0 226 143: 39(float) CompositeExtract 139 1 227 144: 39(float) CompositeExtract 139 2 228 145: 131(fvec4) CompositeConstruct 142 143 144 141 229 Store 135(out_fragColor) 145 230 146: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 147 147 12 12 231 Return 232 FunctionEnd 233