yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
7fb81fa4
main
1spv.debuginfo.glsl.tese 2// Module Version 10000 3// Generated by (magic number): 8000b 4// Id's are bound by 370 5 6 Capability Tessellation 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 TessellationEvaluation 14 "main" 95 103 109 115 119 123 127 131 160 256 323 12 ExecutionMode 14 Quads 13 ExecutionMode 14 SpacingEqual 14 ExecutionMode 14 VertexOrderCw 15 2: String "spv.debuginfo.glsl.tese" 16 8: String "uint" 17 16: String "main" 18 19: String "/* 19The MIT License (MIT) 20 21Copyright (c) 2022 Sascha Willems 22 23Permission is hereby granted, free of charge, to any person obtaining a copy 24of this software and associated documentation files (the "Software"), to deal 25in the Software without restriction, including without limitation the rights 26to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 27copies of the Software, and to permit persons to whom the Software is 28furnished to do so, subject to the following conditions: 29 30The above copyright notice and this permission notice shall be included in all 31copies or substantial portions of the Software. 32 33THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 34IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 35FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 36AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 37LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 38OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 39SOFTWARE. 40*/ 41 42#version 450 43 44layout (set = 0, binding = 0) uniform UBO 45{ 46 mat4 projection; 47 mat4 modelview; 48 vec4 lightPos; 49 vec4 frustumPlanes[6]; 50 float displacementFactor; 51 float tessellationFactor; 52 vec2 viewportDim; 53 float tessellatedEdgeSize; 54} ubo; 55 56layout (set = 0, binding = 1) uniform sampler2D displacementMap; 57 58layout(quads, equal_spacing, cw) in; 59 60layout (location = 0) in vec3 inNormal[]; 61layout (location = 1) in vec2 inUV[]; 62 63layout (location = 0) out vec3 outNormal; 64layout (location = 1) out vec2 outUV; 65layout (location = 2) out vec3 outViewVec; 66layout (location = 3) out vec3 outLightVec; 67layout (location = 4) out vec3 outEyePos; 68layout (location = 5) out vec3 outWorldPos; 69 70void main() 71{ 72 // Interpolate UV coordinates 73 vec2 uv1 = mix(inUV[0], inUV[1], gl_TessCoord.x); 74 vec2 uv2 = mix(inUV[3], inUV[2], gl_TessCoord.x); 75 outUV = mix(uv1, uv2, gl_TessCoord.y); 76 77 vec3 n1 = mix(inNormal[0], inNormal[1], gl_TessCoord.x); 78 vec3 n2 = mix(inNormal[3], inNormal[2], gl_TessCoord.x); 79 outNormal = mix(n1, n2, gl_TessCoord.y); 80 81 // Interpolate positions 82 vec4 pos1 = mix(gl_in[0].gl_Position, gl_in[1].gl_Position, gl_TessCoord.x); 83 vec4 pos2 = mix(gl_in[3].gl_Position, gl_in[2].gl_Position, gl_TessCoord.x); 84 vec4 pos = mix(pos1, pos2, gl_TessCoord.y); 85 // Displace 86 pos.y -= textureLod(displacementMap, outUV, 0.0).r * ubo.displacementFactor; 87 // Perspective projection 88 gl_Position = ubo.projection * ubo.modelview * pos; 89 90 // Calculate vectors for lighting based on tessellated position 91 outViewVec = -pos.xyz; 92 outLightVec = normalize(ubo.lightPos.xyz + outViewVec); 93 outWorldPos = pos.xyz; 94 outEyePos = vec3(ubo.modelview * pos); 95} 96" 97 26: String "float" 98 33: String "bool" 99 42: String "projection" 100 46: String "modelview" 101 49: String "lightPos" 102 52: String "frustumPlanes" 103 54: String "displacementFactor" 104 58: String "tessellationFactor" 105 61: String "viewportDim" 106 64: String "tessellatedEdgeSize" 107 67: String "UBO" 108 73: String "ubo" 109 76: String "texture2D" 110 78: String "@texture2D" 111 82: String "sampler2D" 112 83: String "@sampler2D" 113 88: String "displacementMap" 114 97: String "inNormal" 115 105: String "inUV" 116 111: String "outNormal" 117 117: String "outUV" 118 121: String "outViewVec" 119 125: String "outLightVec" 120 129: String "outEyePos" 121 133: String "outWorldPos" 122 142: String "uv1" 123 148: String "int" 124 162: String "gl_TessCoord" 125 171: String "uv2" 126 197: String "n1" 127 211: String "n2" 128 235: String "pos1" 129 243: String "gl_Position" 130 245: String "gl_PointSize" 131 247: String "gl_ClipDistance" 132 249: String "gl_CullDistance" 133 251: String "gl_PerVertex" 134 258: String "gl_in" 135 271: String "pos2" 136 285: String "pos" 137 325: String "" 138 Name 14 "main" 139 Name 40 "UBO" 140 MemberName 40(UBO) 0 "projection" 141 MemberName 40(UBO) 1 "modelview" 142 MemberName 40(UBO) 2 "lightPos" 143 MemberName 40(UBO) 3 "frustumPlanes" 144 MemberName 40(UBO) 4 "displacementFactor" 145 MemberName 40(UBO) 5 "tessellationFactor" 146 MemberName 40(UBO) 6 "viewportDim" 147 MemberName 40(UBO) 7 "tessellatedEdgeSize" 148 Name 71 "ubo" 149 Name 86 "displacementMap" 150 Name 95 "inNormal" 151 Name 103 "inUV" 152 Name 109 "outNormal" 153 Name 115 "outUV" 154 Name 119 "outViewVec" 155 Name 123 "outLightVec" 156 Name 127 "outEyePos" 157 Name 131 "outWorldPos" 158 Name 140 "uv1" 159 Name 160 "gl_TessCoord" 160 Name 169 "uv2" 161 Name 195 "n1" 162 Name 209 "n2" 163 Name 233 "pos1" 164 Name 241 "gl_PerVertex" 165 MemberName 241(gl_PerVertex) 0 "gl_Position" 166 MemberName 241(gl_PerVertex) 1 "gl_PointSize" 167 MemberName 241(gl_PerVertex) 2 "gl_ClipDistance" 168 MemberName 241(gl_PerVertex) 3 "gl_CullDistance" 169 Name 256 "gl_in" 170 Name 269 "pos2" 171 Name 283 "pos" 172 Name 314 "gl_PerVertex" 173 MemberName 314(gl_PerVertex) 0 "gl_Position" 174 MemberName 314(gl_PerVertex) 1 "gl_PointSize" 175 MemberName 314(gl_PerVertex) 2 "gl_ClipDistance" 176 MemberName 314(gl_PerVertex) 3 "gl_CullDistance" 177 Name 323 "" 178 Decorate 36 ArrayStride 16 179 Decorate 40(UBO) Block 180 MemberDecorate 40(UBO) 0 ColMajor 181 MemberDecorate 40(UBO) 0 MatrixStride 16 182 MemberDecorate 40(UBO) 0 Offset 0 183 MemberDecorate 40(UBO) 1 ColMajor 184 MemberDecorate 40(UBO) 1 MatrixStride 16 185 MemberDecorate 40(UBO) 1 Offset 64 186 MemberDecorate 40(UBO) 2 Offset 128 187 MemberDecorate 40(UBO) 3 Offset 144 188 MemberDecorate 40(UBO) 4 Offset 240 189 MemberDecorate 40(UBO) 5 Offset 244 190 MemberDecorate 40(UBO) 6 Offset 248 191 MemberDecorate 40(UBO) 7 Offset 256 192 Decorate 71(ubo) Binding 0 193 Decorate 71(ubo) DescriptorSet 0 194 Decorate 86(displacementMap) Binding 1 195 Decorate 86(displacementMap) DescriptorSet 0 196 Decorate 95(inNormal) Location 0 197 Decorate 103(inUV) Location 1 198 Decorate 109(outNormal) Location 0 199 Decorate 115(outUV) Location 1 200 Decorate 119(outViewVec) Location 2 201 Decorate 123(outLightVec) Location 3 202 Decorate 127(outEyePos) Location 4 203 Decorate 131(outWorldPos) Location 5 204 Decorate 160(gl_TessCoord) BuiltIn TessCoord 205 Decorate 241(gl_PerVertex) Block 206 MemberDecorate 241(gl_PerVertex) 0 BuiltIn Position 207 MemberDecorate 241(gl_PerVertex) 1 BuiltIn PointSize 208 MemberDecorate 241(gl_PerVertex) 2 BuiltIn ClipDistance 209 MemberDecorate 241(gl_PerVertex) 3 BuiltIn CullDistance 210 Decorate 314(gl_PerVertex) Block 211 MemberDecorate 314(gl_PerVertex) 0 BuiltIn Position 212 MemberDecorate 314(gl_PerVertex) 1 BuiltIn PointSize 213 MemberDecorate 314(gl_PerVertex) 2 BuiltIn ClipDistance 214 MemberDecorate 314(gl_PerVertex) 3 BuiltIn CullDistance 215 4: TypeVoid 216 5: TypeFunction 4 217 7: TypeInt 32 0 218 10: 7(int) Constant 32 219 11: 7(int) Constant 6 220 12: 7(int) Constant 0 221 9: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12 222 13: 7(int) Constant 3 223 6: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 224 18: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 19 225 20: 7(int) Constant 53 226 22: 7(int) Constant 1 227 23: 7(int) Constant 4 228 24: 7(int) Constant 2 229 21: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 22 23 18 24 230 17: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 16 6 18 20 12 21 16 13 20 231 25: TypeFloat 32 232 27: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 26 10 13 12 233 28: TypeVector 25(float) 4 234 29: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 27 23 235 30: TypeMatrix 28(fvec4) 4 236 32: TypeBool 237 34: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 33 10 24 12 238 35: 32(bool) ConstantTrue 239 31: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 29 23 35 240 36: TypeArray 28(fvec4) 11 241 37: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 29 11 242 38: TypeVector 25(float) 2 243 39: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 27 24 244 40(UBO): TypeStruct 30 30 28(fvec4) 36 25(float) 25(float) 38(fvec2) 25(float) 245 43: 7(int) Constant 29 246 44: 7(int) Constant 7 247 41: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 42 31 18 43 44 12 12 13 248 47: 7(int) Constant 30 249 45: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 46 31 18 47 44 12 12 13 250 50: 7(int) Constant 31 251 48: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 49 29 18 50 44 12 12 13 252 51: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 37 18 10 44 12 12 13 253 55: 7(int) Constant 33 254 56: 7(int) Constant 8 255 53: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 54 27 18 55 56 12 12 13 256 59: 7(int) Constant 34 257 57: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 58 27 18 59 56 12 12 13 258 62: 7(int) Constant 35 259 60: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 61 39 18 62 44 12 12 13 260 65: 7(int) Constant 36 261 63: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 64 27 18 65 56 12 12 13 262 68: 7(int) Constant 27 263 66: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 67 22 18 68 12 21 67 12 13 41 45 48 51 53 57 60 63 264 69: TypePointer Uniform 40(UBO) 265 70: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 66 24 12 266 71(ubo): 69(ptr) Variable Uniform 267 72: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 73 66 18 68 12 21 73 71(ubo) 56 268 74: TypeImage 25(float) 2D sampled format:Unknown 269 77: 7(int) Constant 39 270 79: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) 271 75: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 76 22 18 77 12 21 78 79 13 272 80: TypeSampledImage 74 273 81: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 82 22 18 77 12 21 83 79 13 274 84: TypePointer UniformConstant 80 275 85: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 81 12 12 27686(displacementMap): 84(ptr) Variable UniformConstant 277 87: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 88 81 18 77 12 21 88 86(displacementMap) 56 278 89: TypeVector 25(float) 3 279 90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 27 13 280 91: TypeArray 89(fvec3) 10 281 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 90 10 282 93: TypePointer Input 91 283 94: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 92 22 12 284 95(inNormal): 93(ptr) Variable Input 285 98: 7(int) Constant 43 286 96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 97 92 18 98 12 21 97 95(inNormal) 56 287 99: TypeArray 38(fvec2) 10 288 100: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 39 10 289 101: TypePointer Input 99 290 102: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 100 22 12 291 103(inUV): 101(ptr) Variable Input 292 106: 7(int) Constant 44 293 104: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 105 100 18 106 12 21 105 103(inUV) 56 294 107: TypePointer Output 89(fvec3) 295 108: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 90 13 12 296 109(outNormal): 107(ptr) Variable Output 297 112: 7(int) Constant 46 298 110: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 111 90 18 112 12 21 111 109(outNormal) 56 299 113: TypePointer Output 38(fvec2) 300 114: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 39 13 12 301 115(outUV): 113(ptr) Variable Output 302 118: 7(int) Constant 47 303 116: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 117 39 18 118 12 21 117 115(outUV) 56 304 119(outViewVec): 107(ptr) Variable Output 305 122: 7(int) Constant 48 306 120: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 121 90 18 122 12 21 121 119(outViewVec) 56 307123(outLightVec): 107(ptr) Variable Output 308 126: 7(int) Constant 49 309 124: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 125 90 18 126 12 21 125 123(outLightVec) 56 310 127(outEyePos): 107(ptr) Variable Output 311 130: 7(int) Constant 50 312 128: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 129 90 18 130 12 21 129 127(outEyePos) 56 313131(outWorldPos): 107(ptr) Variable Output 314 134: 7(int) Constant 51 315 132: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 133 90 18 134 12 21 133 131(outWorldPos) 56 316 138: TypePointer Function 38(fvec2) 317 139: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 39 44 12 318 143: 7(int) Constant 56 319 141: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 142 39 18 143 12 17 23 320 145: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) 321 147: TypeInt 32 1 322 149: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 148 10 23 12 323 150: 147(int) Constant 0 324 151: TypePointer Input 38(fvec2) 325 152: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 39 22 12 326 155: 147(int) Constant 1 327 158: TypePointer Input 89(fvec3) 328 159: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 90 22 12 329160(gl_TessCoord): 158(ptr) Variable Input 330 161: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 162 90 18 143 12 21 162 160(gl_TessCoord) 56 331 163: TypePointer Input 25(float) 332 164: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 27 22 12 333 172: 7(int) Constant 57 334 170: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 171 39 18 172 12 17 23 335 175: 147(int) Constant 3 336 178: 147(int) Constant 2 337 187: 7(int) Constant 58 338 193: TypePointer Function 89(fvec3) 339 194: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 90 44 12 340 198: 7(int) Constant 60 341 196: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 197 90 18 198 12 17 23 342 212: 7(int) Constant 61 343 210: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 211 90 18 212 12 17 23 344 225: 7(int) Constant 62 345 231: TypePointer Function 28(fvec4) 346 232: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 44 12 347 236: 7(int) Constant 65 348 234: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 235 29 18 236 12 17 23 349 239: TypeArray 25(float) 22 350 240: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 27 22 351241(gl_PerVertex): TypeStruct 28(fvec4) 25(float) 239 239 352 242: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 243 29 18 12 12 12 12 13 353 244: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 245 27 18 12 12 12 12 13 354 246: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 247 240 18 12 12 12 12 13 355 248: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 249 240 18 12 12 12 12 13 356 250: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 251 22 18 236 12 21 251 12 13 242 244 246 248 357 252: TypeArray 241(gl_PerVertex) 10 358 253: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 250 10 359 254: TypePointer Input 252 360 255: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 253 22 12 361 256(gl_in): 254(ptr) Variable Input 362 257: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 258 253 18 236 12 21 258 256(gl_in) 56 363 259: TypePointer Input 28(fvec4) 364 260: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 22 12 365 272: 7(int) Constant 66 366 270: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 271 29 18 272 12 17 23 367 286: 7(int) Constant 67 368 284: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 285 29 18 286 12 17 23 369 297: 7(int) Constant 69 370 299: 25(float) Constant 0 371 302: 147(int) Constant 4 372 303: TypePointer Uniform 25(float) 373 304: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 27 24 12 374 308: TypePointer Function 25(float) 375 309: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 27 44 12 376314(gl_PerVertex): TypeStruct 28(fvec4) 25(float) 239 239 377 315: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 243 29 18 12 12 12 12 13 378 316: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 245 27 18 12 12 12 12 13 379 317: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 247 240 18 12 12 12 12 13 380 318: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 249 240 18 12 12 12 12 13 381 320: 7(int) Constant 71 382 319: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 251 22 18 320 12 21 251 12 13 315 316 317 318 383 321: TypePointer Output 314(gl_PerVertex) 384 322: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 319 13 12 385 323: 321(ptr) Variable Output 386 324: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 325 319 18 320 12 21 325 323 56 387 326: TypePointer Uniform 30 388 327: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 31 24 12 389 336: TypePointer Output 28(fvec4) 390 337: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 13 12 391 341: 7(int) Constant 74 392 344: TypePointer Uniform 28(fvec4) 393 345: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 29 24 12 394 348: 7(int) Constant 75 395 356: 7(int) Constant 76 396 360: 7(int) Constant 77 397 369: 7(int) Constant 78 398 14(main): 4 Function None 5 399 15: Label 400 140(uv1): 138(ptr) Variable Function 401 169(uv2): 138(ptr) Variable Function 402 195(n1): 193(ptr) Variable Function 403 209(n2): 193(ptr) Variable Function 404 233(pos1): 231(ptr) Variable Function 405 269(pos2): 231(ptr) Variable Function 406 283(pos): 231(ptr) Variable Function 407 136: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 17 408 137: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 20 20 12 12 409 135: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 17 14(main) 410 146: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 143 143 12 12 411 144: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 141 140(uv1) 145 412 153: 151(ptr) AccessChain 103(inUV) 150 413 154: 38(fvec2) Load 153 414 156: 151(ptr) AccessChain 103(inUV) 155 415 157: 38(fvec2) Load 156 416 165: 163(ptr) AccessChain 160(gl_TessCoord) 12 417 166: 25(float) Load 165 418 167: 38(fvec2) CompositeConstruct 166 166 419 168: 38(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 154 157 167 420 Store 140(uv1) 168 421 174: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 172 172 12 12 422 173: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 170 169(uv2) 145 423 176: 151(ptr) AccessChain 103(inUV) 175 424 177: 38(fvec2) Load 176 425 179: 151(ptr) AccessChain 103(inUV) 178 426 180: 38(fvec2) Load 179 427 181: 163(ptr) AccessChain 160(gl_TessCoord) 12 428 182: 25(float) Load 181 429 183: 38(fvec2) CompositeConstruct 182 182 430 184: 38(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 177 180 183 431 Store 169(uv2) 184 432 186: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 187 187 12 12 433 185: 38(fvec2) Load 140(uv1) 434 188: 38(fvec2) Load 169(uv2) 435 189: 163(ptr) AccessChain 160(gl_TessCoord) 22 436 190: 25(float) Load 189 437 191: 38(fvec2) CompositeConstruct 190 190 438 192: 38(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 185 188 191 439 Store 115(outUV) 192 440 200: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 198 198 12 12 441 199: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 196 195(n1) 145 442 201: 158(ptr) AccessChain 95(inNormal) 150 443 202: 89(fvec3) Load 201 444 203: 158(ptr) AccessChain 95(inNormal) 155 445 204: 89(fvec3) Load 203 446 205: 163(ptr) AccessChain 160(gl_TessCoord) 12 447 206: 25(float) Load 205 448 207: 89(fvec3) CompositeConstruct 206 206 206 449 208: 89(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 202 204 207 450 Store 195(n1) 208 451 214: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 212 212 12 12 452 213: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 210 209(n2) 145 453 215: 158(ptr) AccessChain 95(inNormal) 175 454 216: 89(fvec3) Load 215 455 217: 158(ptr) AccessChain 95(inNormal) 178 456 218: 89(fvec3) Load 217 457 219: 163(ptr) AccessChain 160(gl_TessCoord) 12 458 220: 25(float) Load 219 459 221: 89(fvec3) CompositeConstruct 220 220 220 460 222: 89(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 216 218 221 461 Store 209(n2) 222 462 224: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 225 225 12 12 463 223: 89(fvec3) Load 195(n1) 464 226: 89(fvec3) Load 209(n2) 465 227: 163(ptr) AccessChain 160(gl_TessCoord) 22 466 228: 25(float) Load 227 467 229: 89(fvec3) CompositeConstruct 228 228 228 468 230: 89(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 223 226 229 469 Store 109(outNormal) 230 470 238: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 236 236 12 12 471 237: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 234 233(pos1) 145 472 261: 259(ptr) AccessChain 256(gl_in) 150 150 473 262: 28(fvec4) Load 261 474 263: 259(ptr) AccessChain 256(gl_in) 155 150 475 264: 28(fvec4) Load 263 476 265: 163(ptr) AccessChain 160(gl_TessCoord) 12 477 266: 25(float) Load 265 478 267: 28(fvec4) CompositeConstruct 266 266 266 266 479 268: 28(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 262 264 267 480 Store 233(pos1) 268 481 274: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 272 272 12 12 482 273: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 270 269(pos2) 145 483 275: 259(ptr) AccessChain 256(gl_in) 175 150 484 276: 28(fvec4) Load 275 485 277: 259(ptr) AccessChain 256(gl_in) 178 150 486 278: 28(fvec4) Load 277 487 279: 163(ptr) AccessChain 160(gl_TessCoord) 12 488 280: 25(float) Load 279 489 281: 28(fvec4) CompositeConstruct 280 280 280 280 490 282: 28(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 276 278 281 491 Store 269(pos2) 282 492 288: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 286 286 12 12 493 287: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 284 283(pos) 145 494 289: 28(fvec4) Load 233(pos1) 495 290: 28(fvec4) Load 269(pos2) 496 291: 163(ptr) AccessChain 160(gl_TessCoord) 22 497 292: 25(float) Load 291 498 293: 28(fvec4) CompositeConstruct 292 292 292 292 499 294: 28(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 289 290 293 500 Store 283(pos) 294 501 296: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 297 297 12 12 502 295: 80 Load 86(displacementMap) 503 298: 38(fvec2) Load 115(outUV) 504 300: 28(fvec4) ImageSampleExplicitLod 295 298 Lod 299 505 301: 25(float) CompositeExtract 300 0 506 305: 303(ptr) AccessChain 71(ubo) 302 507 306: 25(float) Load 305 508 307: 25(float) FMul 301 306 509 310: 308(ptr) AccessChain 283(pos) 22 510 311: 25(float) Load 310 511 312: 25(float) FSub 311 307 512 313: 308(ptr) AccessChain 283(pos) 22 513 Store 313 312 514 329: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 320 320 12 12 515 328: 326(ptr) AccessChain 71(ubo) 150 516 330: 30 Load 328 517 331: 326(ptr) AccessChain 71(ubo) 155 518 332: 30 Load 331 519 333: 30 MatrixTimesMatrix 330 332 520 334: 28(fvec4) Load 283(pos) 521 335: 28(fvec4) MatrixTimesVector 333 334 522 338: 336(ptr) AccessChain 323 150 523 Store 338 335 524 340: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 341 341 12 12 525 339: 28(fvec4) Load 283(pos) 526 342: 89(fvec3) VectorShuffle 339 339 0 1 2 527 343: 89(fvec3) FNegate 342 528 Store 119(outViewVec) 343 529 347: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 348 348 12 12 530 346: 344(ptr) AccessChain 71(ubo) 178 531 349: 28(fvec4) Load 346 532 350: 89(fvec3) VectorShuffle 349 349 0 1 2 533 351: 89(fvec3) Load 119(outViewVec) 534 352: 89(fvec3) FAdd 350 351 535 353: 89(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 352 536 Store 123(outLightVec) 353 537 355: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 356 356 12 12 538 354: 28(fvec4) Load 283(pos) 539 357: 89(fvec3) VectorShuffle 354 354 0 1 2 540 Store 131(outWorldPos) 357 541 359: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 360 360 12 12 542 358: 326(ptr) AccessChain 71(ubo) 155 543 361: 30 Load 358 544 362: 28(fvec4) Load 283(pos) 545 363: 28(fvec4) MatrixTimesVector 361 362 546 364: 25(float) CompositeExtract 363 0 547 365: 25(float) CompositeExtract 363 1 548 366: 25(float) CompositeExtract 363 2 549 367: 89(fvec3) CompositeConstruct 364 365 366 550 Store 127(outEyePos) 367 551 368: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 18 369 369 12 12 552 Return 553 FunctionEnd