yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
e4c40890
main
1spv.debuginfo.declaration.glsl.frag 2// Module Version 10000 3// Generated by (magic number): 8000b 4// Id's are bound by 137 5 6 Capability Shader 7 Extension "SPV_KHR_non_semantic_info" 8 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" 9 3: ExtInstImport "GLSL.std.450" 10 MemoryModel Logical GLSL450 11 EntryPoint Fragment 14 "main" 46 12 ExecutionMode 14 OriginUpperLeft 13 2: String "spv.debuginfo.declaration.glsl.frag" 14 8: String "uint" 15 16: String "main" 16 19: String "#version 460 17 18uniform UBO { 19 int x; 20}; 21 22out vec4 outColor; 23 24void main() { 25 int x = 41; 26 { 27 int x = 42; 28 29 while (bool test = x < 45) { 30 x += 1; 31 } 32 33 for (int x = 50; bool test = x < 53; ) { 34 x += 1; 35 } 36 37 outColor = vec4(x); 38 } 39}" 40 26: String "int" 41 30: String "x" 42 32: String "UBO" 43 37: String "" 44 40: String "float" 45 48: String "outColor" 46 81: String "bool" 47 87: String "test" 48 Name 14 "main" 49 Name 28 "UBO" 50 MemberName 28(UBO) 0 "x" 51 Name 35 "" 52 Name 46 "outColor" 53 Name 55 "x" 54 Name 65 "x" 55 Name 85 "test" 56 Name 102 "x" 57 Name 115 "test" 58 Decorate 28(UBO) Block 59 MemberDecorate 28(UBO) 0 Offset 0 60 Decorate 35 Binding 0 61 Decorate 35 DescriptorSet 0 62 Decorate 46(outColor) Location 0 63 4: TypeVoid 64 5: TypeFunction 4 65 7: TypeInt 32 0 66 10: 7(int) Constant 32 67 11: 7(int) Constant 6 68 12: 7(int) Constant 0 69 9: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12 70 13: 7(int) Constant 3 71 6: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 72 18: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 19 73 20: 7(int) Constant 9 74 22: 7(int) Constant 1 75 23: 7(int) Constant 4 76 24: 7(int) Constant 2 77 21: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 22 23 18 24 78 17: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 16 6 18 20 12 21 16 13 20 79 25: TypeInt 32 1 80 27: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 26 10 23 12 81 28(UBO): TypeStruct 25(int) 82 29: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 30 27 18 23 20 12 12 13 83 31: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 32 22 18 13 12 21 32 12 13 29 84 33: TypePointer Uniform 28(UBO) 85 34: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 31 24 12 86 35: 33(ptr) Variable Uniform 87 38: 7(int) Constant 8 88 36: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 37 31 18 13 12 21 37 35 38 89 39: TypeFloat 32 90 41: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 40 10 13 12 91 42: TypeVector 39(float) 4 92 43: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 41 23 93 44: TypePointer Output 42(fvec4) 94 45: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 43 13 12 95 46(outColor): 44(ptr) Variable Output 96 49: 7(int) Constant 7 97 47: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 48 43 18 49 12 21 48 46(outColor) 38 98 53: TypePointer Function 25(int) 99 54: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 27 49 12 100 57: 7(int) Constant 10 101 56: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 30 27 18 57 12 17 23 102 59: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) 103 61: 25(int) Constant 41 104 63: 7(int) Constant 12 105 64: 7(int) Constant 13 106 62: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 18 63 64 17 107 66: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 30 27 18 63 12 62 23 108 70: 25(int) Constant 42 109 72: 7(int) Constant 14 110 71: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 18 72 20 62 111 80: TypeBool 112 82: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 81 10 24 12 113 83: TypePointer Function 80(bool) 114 84: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 82 49 12 115 86: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 87 82 18 72 12 71 23 116 92: 25(int) Constant 45 117 94: 25(int) Constant 1 118 98: 7(int) Constant 15 119 101: 7(int) Constant 18 120 100: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 18 101 20 62 121 103: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 30 27 18 101 12 100 23 122 107: 25(int) Constant 50 123 116: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 87 82 18 101 12 100 23 124 121: 25(int) Constant 53 125 126: 7(int) Constant 19 126 131: 7(int) Constant 22 127 136: 7(int) Constant 24 128 14(main): 4 Function None 5 129 15: Label 130 55(x): 53(ptr) Variable Function 131 65(x): 53(ptr) Variable Function 132 85(test): 83(ptr) Variable Function 133 102(x): 53(ptr) Variable Function 134 115(test): 83(ptr) Variable Function 135 51: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17 136 52: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 20 20 12 12 137 50: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main) 138 60: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 57 57 12 12 139 58: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 56 55(x) 59 140 Store 55(x) 61 141 68: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 62 142 69: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 63 63 12 12 143 67: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 66 65(x) 59 144 Store 65(x) 70 145 Branch 73 146 73: Label 147 77: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 71 148 78: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 72 72 12 12 149 LoopMerge 75 76 None 150 Branch 79 151 79: Label 152 89: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 71 153 90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 72 72 12 12 154 88: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 86 85(test) 59 155 91: 25(int) Load 65(x) 156 93: 80(bool) SLessThan 91 92 157 Store 85(test) 93 158 BranchConditional 93 74 75 159 74: Label 160 96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 71 161 97: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 98 98 12 12 162 95: 25(int) Load 65(x) 163 99: 25(int) IAdd 95 94 164 Store 65(x) 99 165 Branch 76 166 76: Label 167 Branch 73 168 75: Label 169 105: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 100 170 106: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 101 101 12 12 171 104: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 103 102(x) 59 172 Store 102(x) 107 173 Branch 108 174 108: Label 175 112: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 100 176 113: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 101 101 12 12 177 LoopMerge 110 111 None 178 Branch 114 179 114: Label 180 118: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 100 181 119: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 101 101 12 12 182 117: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 116 115(test) 59 183 120: 25(int) Load 102(x) 184 122: 80(bool) SLessThan 120 121 185 Store 115(test) 122 186 BranchConditional 122 109 110 187 109: Label 188 124: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 100 189 125: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 126 126 12 12 190 123: 25(int) Load 102(x) 191 127: 25(int) IAdd 123 94 192 Store 102(x) 127 193 Branch 111 194 111: Label 195 Branch 108 196 110: Label 197 129: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 62 198 130: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 131 131 12 12 199 128: 25(int) Load 65(x) 200 132: 39(float) ConvertSToF 128 201 133: 42(fvec4) CompositeConstruct 132 132 132 132 202 Store 46(outColor) 133 203 134: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17 204 135: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 136 136 12 12 205 Return 206 FunctionEnd