yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
e4c40890
main
1spv.debuginfo.hlsl.tesc 2WARNING: spv.debuginfo.hlsl.tesc:158: '' : attribute does not apply to entry point 3 4// Module Version 10000 5// Generated by (magic number): 8000b 6// Id's are bound by 731 7 8 Capability Tessellation 9 Extension "SPV_KHR_non_semantic_info" 10 1: ExtInstImport "NonSemantic.Shader.DebugInfo.100" 11 3: ExtInstImport "GLSL.std.450" 12 MemoryModel Logical GLSL450 13 EntryPoint TessellationControl 6 "main" 623 630 637 671 680 687 694 709 724 14 ExecutionMode 6 OutputVertices 4 15 ExecutionMode 6 Quads 16 ExecutionMode 6 SpacingEqual 17 ExecutionMode 6 VertexOrderCw 18 2: String "spv.debuginfo.hlsl.tesc" 19 9: String "float" 20 12: String "uint" 21 30: String "screenSpaceTessFactor" 22 33: String "/* 23The MIT License (MIT) 24 25Copyright (c) 2022 Google LLC 26Copyright (c) 2022 Sascha Willems 27 28Permission is hereby granted, free of charge, to any person obtaining a copy 29of this software and associated documentation files (the "Software"), to deal 30in the Software without restriction, including without limitation the rights 31to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 32copies of the Software, and to permit persons to whom the Software is 33furnished to do so, subject to the following conditions: 34 35The above copyright notice and this permission notice shall be included in all 36copies or substantial portions of the Software. 37 38THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 39IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 40FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 41AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 42LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 43OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 44SOFTWARE. 45*/ 46 47struct UBO 48{ 49 float4x4 projection; 50 float4x4 modelview; 51 float4 lightPos; 52 float4 frustumPlanes[6]; 53 float displacementFactor; 54 float tessellationFactor; 55 float2 viewportDim; 56 float tessellatedEdgeSize; 57}; 58cbuffer ubo : register(b0) { UBO ubo; }; 59 60Texture2D textureHeight : register(t1); 61SamplerState samplerHeight : register(s1); 62 63struct VSOutput 64{ 65 float4 Pos : SV_POSITION; 66[[vk::location(0)]] float3 Normal : NORMAL0; 67[[vk::location(1)]] float2 UV : TEXCOORD0; 68}; 69 70struct HSOutput 71{ 72[[vk::location(2)]] float4 Pos : SV_POSITION; 73[[vk::location(0)]] float3 Normal : NORMAL0; 74[[vk::location(1)]] float2 UV : TEXCOORD0; 75}; 76 77struct ConstantsHSOutput 78{ 79 float TessLevelOuter[4] : SV_TessFactor; 80 float TessLevelInner[2] : SV_InsideTessFactor; 81}; 82 83// Calculate the tessellation factor based on screen space 84// dimensions of the edge 85float screenSpaceTessFactor(float4 p0, float4 p1) 86{ 87 // Calculate edge mid point 88 float4 midPoint = 0.5 * (p0 + p1); 89 // Sphere radius as distance between the control points 90 float radius = distance(p0, p1) / 2.0; 91 92 // View space 93 float4 v0 = mul(ubo.modelview, midPoint); 94 95 // Project into clip space 96 float4 clip0 = mul(ubo.projection, (v0 - float4(radius, float3(0.0, 0.0, 0.0)))); 97 float4 clip1 = mul(ubo.projection, (v0 + float4(radius, float3(0.0, 0.0, 0.0)))); 98 99 // Get normalized device coordinates 100 clip0 /= clip0.w; 101 clip1 /= clip1.w; 102 103 // Convert to viewport coordinates 104 clip0.xy *= ubo.viewportDim; 105 clip1.xy *= ubo.viewportDim; 106 107 // Return the tessellation factor based on the screen size 108 // given by the distance of the two edge control points in screen space 109 // and a reference (min.) tessellation size for the edge set by the application 110 return clamp(distance(clip0, clip1) / ubo.tessellatedEdgeSize * ubo.tessellationFactor, 1.0, 64.0); 111} 112 113// Checks the current's patch visibility against the frustum using a sphere check 114// Sphere radius is given by the patch size 115bool frustumCheck(float4 Pos, float2 inUV) 116{ 117 // Fixed radius (increase if patch size is increased in example) 118 const float radius = 8.0f; 119 float4 pos = Pos; 120 pos.y -= textureHeight.SampleLevel(samplerHeight, inUV, 0.0).r * ubo.displacementFactor; 121 122 // Check sphere against frustum planes 123 for (int i = 0; i < 6; i++) { 124 if (dot(pos, ubo.frustumPlanes[i]) + radius < 0.0) 125 { 126 return false; 127 } 128 } 129 return true; 130} 131 132ConstantsHSOutput ConstantsHS(InputPatch<VSOutput, 4> patch) 133{ 134 ConstantsHSOutput output = (ConstantsHSOutput)0; 135 136 if (!frustumCheck(patch[0].Pos, patch[0].UV)) 137 { 138 output.TessLevelInner[0] = 0.0; 139 output.TessLevelInner[1] = 0.0; 140 output.TessLevelOuter[0] = 0.0; 141 output.TessLevelOuter[1] = 0.0; 142 output.TessLevelOuter[2] = 0.0; 143 output.TessLevelOuter[3] = 0.0; 144 } 145 else 146 { 147 if (ubo.tessellationFactor > 0.0) 148 { 149 output.TessLevelOuter[0] = screenSpaceTessFactor(patch[3].Pos, patch[0].Pos); 150 output.TessLevelOuter[1] = screenSpaceTessFactor(patch[0].Pos, patch[1].Pos); 151 output.TessLevelOuter[2] = screenSpaceTessFactor(patch[1].Pos, patch[2].Pos); 152 output.TessLevelOuter[3] = screenSpaceTessFactor(patch[2].Pos, patch[3].Pos); 153 output.TessLevelInner[0] = lerp(output.TessLevelOuter[0], output.TessLevelOuter[3], 0.5); 154 output.TessLevelInner[1] = lerp(output.TessLevelOuter[2], output.TessLevelOuter[1], 0.5); 155 } 156 else 157 { 158 // Tessellation factor can be set to zero by example 159 // to demonstrate a simple passthrough 160 output.TessLevelInner[0] = 1.0; 161 output.TessLevelInner[1] = 1.0; 162 output.TessLevelOuter[0] = 1.0; 163 output.TessLevelOuter[1] = 1.0; 164 output.TessLevelOuter[2] = 1.0; 165 output.TessLevelOuter[3] = 1.0; 166 } 167 } 168 169 return output; 170} 171 172[domain("quad")] 173[partitioning("integer")] 174[outputtopology("triangle_cw")] 175[outputcontrolpoints(4)] 176[patchconstantfunc("ConstantsHS")] 177[maxtessfactor(20.0f)] 178HSOutput main(InputPatch<VSOutput, 4> patch, uint InvocationID : SV_OutputControlPointID) 179{ 180 HSOutput output = (HSOutput)0; 181 output.Pos = patch[InvocationID].Pos; 182 output.Normal = patch[InvocationID].Normal; 183 output.UV = patch[InvocationID].UV; 184 return output; 185} 186" 187 39: String "p0" 188 45: String "p1" 189 53: String "bool" 190 61: String "frustumCheck" 191 65: String "Pos" 192 70: String "inUV" 193 79: String "Normal" 194 83: String "UV" 195 87: String "VSOutput" 196 99: String "TessLevelOuter" 197 103: String "TessLevelInner" 198 106: String "ConstantsHSOutput" 199 112: String "ConstantsHS" 200 115: String "patch" 201 129: String "HSOutput" 202 137: String "@main" 203 144: String "InvocationID" 204 150: String "midPoint" 205 164: String "radius" 206 175: String "v0" 207 187: String "projection" 208 191: String "modelview" 209 195: String "lightPos" 210 199: String "frustumPlanes" 211 202: String "displacementFactor" 212 205: String "tessellationFactor" 213 208: String "viewportDim" 214 211: String "tessellatedEdgeSize" 215 214: String "UBO" 216 217: String "ubo" 217 224: String "" 218 227: String "int" 219 238: String "clip0" 220 256: String "clip1" 221 335: String "pos" 222 343: String "type.2d.image" 223 345: String "@type.2d.image" 224 351: String "textureHeight" 225 356: String "type.sampler" 226 357: String "@type.sampler" 227 362: String "samplerHeight" 228 366: String "type.sampled.image" 229 367: String "@type.sampled.image" 230 387: String "i" 231 442: String "output" 232 Name 6 "main" 233 Name 28 "screenSpaceTessFactor(vf4;vf4;" 234 Name 26 "p0" 235 Name 27 "p1" 236 Name 59 "frustumCheck(vf4;vf2;" 237 Name 57 "Pos" 238 Name 58 "inUV" 239 Name 74 "VSOutput" 240 MemberName 74(VSOutput) 0 "Pos" 241 MemberName 74(VSOutput) 1 "Normal" 242 MemberName 74(VSOutput) 2 "UV" 243 Name 97 "ConstantsHSOutput" 244 MemberName 97(ConstantsHSOutput) 0 "TessLevelOuter" 245 MemberName 97(ConstantsHSOutput) 1 "TessLevelInner" 246 Name 110 "ConstantsHS(struct-VSOutput-vf4-vf3-vf21[4];" 247 Name 109 "patch" 248 Name 121 "HSOutput" 249 MemberName 121(HSOutput) 0 "Pos" 250 MemberName 121(HSOutput) 1 "Normal" 251 MemberName 121(HSOutput) 2 "UV" 252 Name 135 "@main(struct-VSOutput-vf4-vf3-vf21[4];u1;" 253 Name 133 "patch" 254 Name 134 "InvocationID" 255 Name 148 "midPoint" 256 Name 162 "radius" 257 Name 173 "v0" 258 Name 185 "UBO" 259 MemberName 185(UBO) 0 "projection" 260 MemberName 185(UBO) 1 "modelview" 261 MemberName 185(UBO) 2 "lightPos" 262 MemberName 185(UBO) 3 "frustumPlanes" 263 MemberName 185(UBO) 4 "displacementFactor" 264 MemberName 185(UBO) 5 "tessellationFactor" 265 MemberName 185(UBO) 6 "viewportDim" 266 MemberName 185(UBO) 7 "tessellatedEdgeSize" 267 Name 215 "ubo" 268 MemberName 215(ubo) 0 "ubo" 269 Name 222 "" 270 Name 236 "clip0" 271 Name 254 "clip1" 272 Name 333 "pos" 273 Name 349 "textureHeight" 274 Name 360 "samplerHeight" 275 Name 385 "i" 276 Name 440 "output" 277 Name 451 "param" 278 Name 456 "param" 279 Name 494 "param" 280 Name 500 "param" 281 Name 505 "param" 282 Name 510 "param" 283 Name 515 "param" 284 Name 520 "param" 285 Name 525 "param" 286 Name 530 "param" 287 Name 584 "output" 288 Name 620 "patch" 289 Name 623 "patch.Pos" 290 Name 630 "patch.Normal" 291 Name 637 "patch.UV" 292 Name 669 "InvocationID" 293 Name 671 "InvocationID" 294 Name 673 "flattenTemp" 295 Name 674 "param" 296 Name 676 "param" 297 Name 680 "@entryPointOutput.Pos" 298 Name 687 "@entryPointOutput.Normal" 299 Name 694 "@entryPointOutput.UV" 300 Name 704 "@patchConstantResult" 301 Name 705 "param" 302 Name 709 "@patchConstantOutput.TessLevelOuter" 303 Name 724 "@patchConstantOutput.TessLevelInner" 304 Decorate 183 ArrayStride 16 305 MemberDecorate 185(UBO) 0 RowMajor 306 MemberDecorate 185(UBO) 0 MatrixStride 16 307 MemberDecorate 185(UBO) 0 Offset 0 308 MemberDecorate 185(UBO) 1 RowMajor 309 MemberDecorate 185(UBO) 1 MatrixStride 16 310 MemberDecorate 185(UBO) 1 Offset 64 311 MemberDecorate 185(UBO) 2 Offset 128 312 MemberDecorate 185(UBO) 3 Offset 144 313 MemberDecorate 185(UBO) 4 Offset 240 314 MemberDecorate 185(UBO) 5 Offset 244 315 MemberDecorate 185(UBO) 6 Offset 248 316 MemberDecorate 185(UBO) 7 Offset 256 317 Decorate 215(ubo) Block 318 MemberDecorate 215(ubo) 0 Offset 0 319 Decorate 222 Binding 0 320 Decorate 222 DescriptorSet 0 321 Decorate 349(textureHeight) Binding 1 322 Decorate 349(textureHeight) DescriptorSet 0 323 Decorate 360(samplerHeight) Binding 1 324 Decorate 360(samplerHeight) DescriptorSet 0 325 Decorate 623(patch.Pos) BuiltIn Position 326 Decorate 630(patch.Normal) Location 0 327 Decorate 637(patch.UV) Location 1 328 Decorate 671(InvocationID) BuiltIn InvocationId 329 Decorate 680(@entryPointOutput.Pos) BuiltIn Position 330 Decorate 687(@entryPointOutput.Normal) Location 0 331 Decorate 694(@entryPointOutput.UV) Location 1 332 Decorate 709(@patchConstantOutput.TessLevelOuter) BuiltIn TessLevelOuter 333 Decorate 709(@patchConstantOutput.TessLevelOuter) Patch 334 Decorate 724(@patchConstantOutput.TessLevelInner) BuiltIn TessLevelInner 335 Decorate 724(@patchConstantOutput.TessLevelInner) Patch 336 4: TypeVoid 337 5: TypeFunction 4 338 8: TypeFloat 32 339 11: TypeInt 32 0 340 14: 11(int) Constant 32 341 15: 11(int) Constant 6 342 16: 11(int) Constant 0 343 13: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 12 14 15 16 344 17: 11(int) Constant 3 345 10: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 14 17 16 346 18: TypeVector 8(float) 4 347 19: 11(int) Constant 4 348 20: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 19 349 21: TypePointer Function 18(fvec4) 350 22: 11(int) Constant 7 351 23: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 20 22 16 352 24: TypeFunction 8(float) 21(ptr) 21(ptr) 353 25: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 10 20 20 354 32: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 33 355 34: 11(int) Constant 65 356 36: 11(int) Constant 1 357 37: 11(int) Constant 5 358 35: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 36 19 32 37 359 31: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 30 25 32 34 16 35 30 17 34 360 38: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 39 20 32 34 16 31 19 36 361 41: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) 362 46: 11(int) Constant 2 363 44: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 45 20 32 34 16 31 19 46 364 48: TypeVector 8(float) 2 365 49: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 46 366 50: TypePointer Function 48(fvec2) 367 51: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 49 22 16 368 52: TypeBool 369 54: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 53 14 46 16 370 55: TypeFunction 52(bool) 21(ptr) 50(ptr) 371 56: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 54 20 49 372 63: 11(int) Constant 95 373 62: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 61 56 32 63 16 35 61 17 63 374 64: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 65 20 32 63 16 62 19 36 375 69: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 70 49 32 63 16 62 19 46 376 72: TypeVector 8(float) 3 377 73: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 17 378 74(VSOutput): TypeStruct 18(fvec4) 72(fvec3) 48(fvec2) 379 76: 11(int) Constant 44 380 77: 11(int) Constant 13 381 75: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 65 20 32 76 77 16 16 17 382 80: 11(int) Constant 45 383 81: 11(int) Constant 35 384 78: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 79 73 32 80 81 16 16 17 385 84: 11(int) Constant 46 386 85: 11(int) Constant 31 387 82: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 83 49 32 84 85 16 16 17 388 88: 11(int) Constant 112 389 86: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 87 36 32 88 16 35 87 16 17 75 78 82 390 89: TypeArray 74(VSOutput) 19 391 90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 86 19 392 91: TypePointer Function 89 393 92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 90 22 16 394 93: TypeArray 8(float) 19 395 94: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 10 19 396 95: TypeArray 8(float) 46 397 96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 10 46 39897(ConstantsHSOutput): TypeStruct 93 95 399 100: 11(int) Constant 58 400 101: 11(int) Constant 25 401 98: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 99 94 32 100 101 16 16 17 402 104: 11(int) Constant 59 403 102: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 103 96 32 104 101 16 16 17 404 105: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 106 36 32 88 16 35 106 16 17 98 102 405 107: TypeFunction 97(ConstantsHSOutput) 91(ptr) 406 108: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 105 90 407 113: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 112 108 32 88 16 35 112 17 88 408 114: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 115 90 32 88 16 113 19 36 409 119: TypePointer Function 11(int) 410 120: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 13 22 16 411 121(HSOutput): TypeStruct 18(fvec4) 72(fvec3) 48(fvec2) 412 123: 11(int) Constant 51 413 122: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 65 20 32 123 14 16 16 17 414 125: 11(int) Constant 52 415 124: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 79 73 32 125 81 16 16 17 416 127: 11(int) Constant 53 417 126: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 83 49 32 127 85 16 16 17 418 130: 11(int) Constant 158 419 128: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 129 36 32 130 16 35 129 16 17 122 124 126 420 131: TypeFunction 121(HSOutput) 91(ptr) 119(ptr) 421 132: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 128 90 13 422 138: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 137 132 32 130 16 35 137 17 130 423 139: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 115 90 32 130 16 138 19 36 424 143: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 144 13 32 130 16 138 19 46 425 147: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 32 16 16 31 426 151: 11(int) Constant 67 427 149: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 150 20 32 151 16 147 19 428 155: 8(float) Constant 1056964608 429 160: TypePointer Function 8(float) 430 161: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 22 16 431 165: 11(int) Constant 69 432 163: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 164 10 32 165 16 147 19 433 171: 8(float) Constant 1073741824 434 176: 11(int) Constant 72 435 174: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 175 20 32 176 16 147 19 436 180: TypeMatrix 18(fvec4) 4 437 182: 52(bool) ConstantTrue 438 181: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 20 19 182 439 183: TypeArray 18(fvec4) 15 440 184: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 20 15 441 185(UBO): TypeStruct 180 180 18(fvec4) 183 8(float) 8(float) 48(fvec2) 8(float) 442 188: 11(int) Constant 28 443 189: 11(int) Constant 21 444 186: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 187 181 32 188 189 16 16 17 445 192: 11(int) Constant 29 446 193: 11(int) Constant 20 447 190: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 191 181 32 192 193 16 16 17 448 196: 11(int) Constant 30 449 197: 11(int) Constant 17 450 194: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 195 20 32 196 197 16 16 17 451 200: 11(int) Constant 22 452 198: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 199 184 32 85 200 16 16 17 453 203: 11(int) Constant 26 454 201: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 202 10 32 14 203 16 16 17 455 206: 11(int) Constant 33 456 204: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 205 10 32 206 203 16 16 17 457 209: 11(int) Constant 34 458 207: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 208 49 32 209 193 16 16 17 459 212: 11(int) Constant 27 460 210: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 211 10 32 81 212 16 16 17 461 213: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 214 36 32 176 16 35 214 16 17 186 190 194 198 201 204 207 210 462 215(ubo): TypeStruct 185(UBO) 463 218: 11(int) Constant 37 464 216: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 217 213 32 218 218 16 16 17 465 219: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 217 36 32 176 16 35 217 16 17 216 466 220: TypePointer Uniform 215(ubo) 467 221: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 219 46 16 468 222: 220(ptr) Variable Uniform 469 225: 11(int) Constant 8 470 223: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 224 219 32 176 16 35 224 222 225 471 226: TypeInt 32 1 472 228: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 227 14 19 16 473 229: 226(int) Constant 0 474 230: 226(int) Constant 1 475 231: TypePointer Uniform 180 476 232: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 181 46 16 477 239: 11(int) Constant 75 478 237: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 238 20 32 239 16 147 19 479 244: 8(float) Constant 0 480 245: 72(fvec3) ConstantComposite 244 244 244 481 257: 11(int) Constant 76 482 255: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 256 20 32 257 16 147 19 483 272: 11(int) Constant 79 484 279: 11(int) Constant 80 485 284: 226(int) Constant 6 486 285: TypePointer Uniform 48(fvec2) 487 286: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 49 46 16 488 289: 11(int) Constant 83 489 300: 11(int) Constant 84 490 311: 11(int) Constant 89 491 314: 226(int) Constant 7 492 315: TypePointer Uniform 8(float) 493 316: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 46 16 494 320: 226(int) Constant 5 495 324: 8(float) Constant 1065353216 496 325: 8(float) Constant 1115684864 497 332: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 32 16 16 62 498 336: 11(int) Constant 98 499 334: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 335 20 32 336 16 332 19 500 341: TypeImage 8(float) 2D sampled format:Unknown 501 344: 11(int) Constant 99 502 346: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) 503 342: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 343 36 32 344 16 35 345 346 17 504 347: TypePointer UniformConstant 341 505 348: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 342 16 16 506349(textureHeight): 347(ptr) Variable UniformConstant 507 350: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 351 342 32 344 16 35 351 349(textureHeight) 225 508 354: TypeSampler 509 355: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 356 36 32 344 16 35 357 346 17 510 358: TypePointer UniformConstant 354 511 359: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 355 16 16 512360(samplerHeight): 358(ptr) Variable UniformConstant 513 361: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 362 355 32 344 16 35 362 360(samplerHeight) 225 514 364: TypeSampledImage 341 515 365: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 366 36 32 344 16 35 367 346 17 516 372: 226(int) Constant 4 517 381: 11(int) Constant 102 518 382: 11(int) Constant 11 519 380: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 32 381 382 332 520 383: TypePointer Function 226(int) 521 384: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 228 22 16 522 386: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 387 228 32 381 16 380 19 523 402: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 32 16 16 380 524 406: 11(int) Constant 103 525 407: 226(int) Constant 3 526 409: TypePointer Uniform 18(fvec4) 527 410: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 20 46 16 528 414: 8(float) Constant 1090519040 529 419: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 32 16 16 402 530 420: 52(bool) ConstantFalse 531 423: 11(int) Constant 105 532 431: 11(int) Constant 108 533 437: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 32 16 16 113 534 438: TypePointer Function 97(ConstantsHSOutput) 535 439: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 105 22 16 536 443: 11(int) Constant 113 537 441: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 442 105 32 443 16 437 19 538 447: 93 ConstantComposite 244 244 244 244 539 448: 95 ConstantComposite 244 244 540 449:97(ConstantsHSOutput) ConstantComposite 447 448 541 450: 226(int) Constant 2 542 454: 11(int) Constant 115 543 463: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 32 16 16 437 544 467: 11(int) Constant 117 545 470: 11(int) Constant 118 546 473: 11(int) Constant 119 547 476: 11(int) Constant 120 548 479: 11(int) Constant 121 549 482: 11(int) Constant 122 550 484: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 32 16 16 437 551 488: 11(int) Constant 126 552 493: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 32 16 16 484 553 498: 11(int) Constant 128 554 508: 11(int) Constant 129 555 518: 11(int) Constant 130 556 528: 11(int) Constant 131 557 537: 11(int) Constant 132 558 545: 11(int) Constant 133 559 552: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 32 16 16 484 560 556: 11(int) Constant 139 561 559: 11(int) Constant 140 562 562: 11(int) Constant 141 563 565: 11(int) Constant 142 564 568: 11(int) Constant 143 565 571: 11(int) Constant 144 566 575: 11(int) Constant 148 567 581: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 32 16 16 138 568 582: TypePointer Function 121(HSOutput) 569 583: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 128 22 16 570 586: 11(int) Constant 159 571 585: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 442 128 32 586 16 581 19 572 590: 18(fvec4) ConstantComposite 244 244 244 244 573 591: 48(fvec2) ConstantComposite 244 244 574 592:121(HSOutput) ConstantComposite 590 245 591 575 595: 11(int) Constant 160 576 601: 11(int) Constant 161 577 602: TypePointer Function 72(fvec3) 578 603: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 73 22 16 579 609: 11(int) Constant 162 580 615: 11(int) Constant 163 581 621: TypeArray 18(fvec4) 19 582 622: TypePointer Input 621 583 623(patch.Pos): 622(ptr) Variable Input 584 624: TypePointer Input 18(fvec4) 585 628: TypeArray 72(fvec3) 19 586 629: TypePointer Input 628 587630(patch.Normal): 629(ptr) Variable Input 588 631: TypePointer Input 72(fvec3) 589 635: TypeArray 48(fvec2) 19 590 636: TypePointer Input 635 591 637(patch.UV): 636(ptr) Variable Input 592 638: TypePointer Input 48(fvec2) 593 670: TypePointer Input 11(int) 594671(InvocationID): 670(ptr) Variable Input 595 679: TypePointer Output 621 596680(@entryPointOutput.Pos): 679(ptr) Variable Output 597 684: TypePointer Output 18(fvec4) 598 686: TypePointer Output 628 599687(@entryPointOutput.Normal): 686(ptr) Variable Output 600 691: TypePointer Output 72(fvec3) 601 693: TypePointer Output 635 602694(@entryPointOutput.UV): 693(ptr) Variable Output 603 698: TypePointer Output 48(fvec2) 604 708: TypePointer Output 93 605709(@patchConstantOutput.TessLevelOuter): 708(ptr) Variable Output 606 712: TypePointer Output 8(float) 607 723: TypePointer Output 95 608724(@patchConstantOutput.TessLevelInner): 723(ptr) Variable Output 609 6(main): 4 Function None 5 610 7: Label 611 620(patch): 91(ptr) Variable Function 612669(InvocationID): 119(ptr) Variable Function 613673(flattenTemp): 582(ptr) Variable Function 614 674(param): 91(ptr) Variable Function 615 676(param): 119(ptr) Variable Function 616704(@patchConstantResult): 438(ptr) Variable Function 617 705(param): 91(ptr) Variable Function 618 625: 624(ptr) AccessChain 623(patch.Pos) 229 619 626: 18(fvec4) Load 625 620 627: 21(ptr) AccessChain 620(patch) 229 229 621 Store 627 626 622 632: 631(ptr) AccessChain 630(patch.Normal) 229 623 633: 72(fvec3) Load 632 624 634: 602(ptr) AccessChain 620(patch) 229 230 625 Store 634 633 626 639: 638(ptr) AccessChain 637(patch.UV) 229 627 640: 48(fvec2) Load 639 628 641: 50(ptr) AccessChain 620(patch) 229 450 629 Store 641 640 630 642: 624(ptr) AccessChain 623(patch.Pos) 230 631 643: 18(fvec4) Load 642 632 644: 21(ptr) AccessChain 620(patch) 230 229 633 Store 644 643 634 645: 631(ptr) AccessChain 630(patch.Normal) 230 635 646: 72(fvec3) Load 645 636 647: 602(ptr) AccessChain 620(patch) 230 230 637 Store 647 646 638 648: 638(ptr) AccessChain 637(patch.UV) 230 639 649: 48(fvec2) Load 648 640 650: 50(ptr) AccessChain 620(patch) 230 450 641 Store 650 649 642 651: 624(ptr) AccessChain 623(patch.Pos) 450 643 652: 18(fvec4) Load 651 644 653: 21(ptr) AccessChain 620(patch) 450 229 645 Store 653 652 646 654: 631(ptr) AccessChain 630(patch.Normal) 450 647 655: 72(fvec3) Load 654 648 656: 602(ptr) AccessChain 620(patch) 450 230 649 Store 656 655 650 657: 638(ptr) AccessChain 637(patch.UV) 450 651 658: 48(fvec2) Load 657 652 659: 50(ptr) AccessChain 620(patch) 450 450 653 Store 659 658 654 660: 624(ptr) AccessChain 623(patch.Pos) 407 655 661: 18(fvec4) Load 660 656 662: 21(ptr) AccessChain 620(patch) 407 229 657 Store 662 661 658 663: 631(ptr) AccessChain 630(patch.Normal) 407 659 664: 72(fvec3) Load 663 660 665: 602(ptr) AccessChain 620(patch) 407 230 661 Store 665 664 662 666: 638(ptr) AccessChain 637(patch.UV) 407 663 667: 48(fvec2) Load 666 664 668: 50(ptr) AccessChain 620(patch) 407 450 665 Store 668 667 666 672: 11(int) Load 671(InvocationID) 667 Store 669(InvocationID) 672 668 675: 89 Load 620(patch) 669 Store 674(param) 675 670 677: 11(int) Load 669(InvocationID) 671 Store 676(param) 677 672 678:121(HSOutput) FunctionCall 135(@main(struct-VSOutput-vf4-vf3-vf21[4];u1;) 674(param) 676(param) 673 Store 673(flattenTemp) 678 674 681: 11(int) Load 671(InvocationID) 675 682: 21(ptr) AccessChain 673(flattenTemp) 229 676 683: 18(fvec4) Load 682 677 685: 684(ptr) AccessChain 680(@entryPointOutput.Pos) 681 678 Store 685 683 679 688: 11(int) Load 671(InvocationID) 680 689: 602(ptr) AccessChain 673(flattenTemp) 230 681 690: 72(fvec3) Load 689 682 692: 691(ptr) AccessChain 687(@entryPointOutput.Normal) 688 683 Store 692 690 684 695: 11(int) Load 671(InvocationID) 685 696: 50(ptr) AccessChain 673(flattenTemp) 450 686 697: 48(fvec2) Load 696 687 699: 698(ptr) AccessChain 694(@entryPointOutput.UV) 695 688 Store 699 697 689 ControlBarrier 46 19 16 690 700: 11(int) Load 671(InvocationID) 691 701: 52(bool) IEqual 700 229 692 SelectionMerge 703 None 693 BranchConditional 701 702 703 694 702: Label 695 706: 89 Load 620(patch) 696 Store 705(param) 706 697 707:97(ConstantsHSOutput) FunctionCall 110(ConstantsHS(struct-VSOutput-vf4-vf3-vf21[4];) 705(param) 698 Store 704(@patchConstantResult) 707 699 710: 160(ptr) AccessChain 704(@patchConstantResult) 229 229 700 711: 8(float) Load 710 701 713: 712(ptr) AccessChain 709(@patchConstantOutput.TessLevelOuter) 229 702 Store 713 711 703 714: 160(ptr) AccessChain 704(@patchConstantResult) 229 230 704 715: 8(float) Load 714 705 716: 712(ptr) AccessChain 709(@patchConstantOutput.TessLevelOuter) 230 706 Store 716 715 707 717: 160(ptr) AccessChain 704(@patchConstantResult) 229 450 708 718: 8(float) Load 717 709 719: 712(ptr) AccessChain 709(@patchConstantOutput.TessLevelOuter) 450 710 Store 719 718 711 720: 160(ptr) AccessChain 704(@patchConstantResult) 229 407 712 721: 8(float) Load 720 713 722: 712(ptr) AccessChain 709(@patchConstantOutput.TessLevelOuter) 407 714 Store 722 721 715 725: 160(ptr) AccessChain 704(@patchConstantResult) 230 229 716 726: 8(float) Load 725 717 727: 712(ptr) AccessChain 724(@patchConstantOutput.TessLevelInner) 229 718 Store 727 726 719 728: 160(ptr) AccessChain 704(@patchConstantResult) 230 230 720 729: 8(float) Load 728 721 730: 712(ptr) AccessChain 724(@patchConstantOutput.TessLevelInner) 230 722 Store 730 729 723 Branch 703 724 703: Label 725 Return 726 FunctionEnd 72728(screenSpaceTessFactor(vf4;vf4;): 8(float) Function None 24 728 26(p0): 21(ptr) FunctionParameter 729 27(p1): 21(ptr) FunctionParameter 730 29: Label 731 148(midPoint): 21(ptr) Variable Function 732 162(radius): 160(ptr) Variable Function 733 173(v0): 21(ptr) Variable Function 734 236(clip0): 21(ptr) Variable Function 735 254(clip1): 21(ptr) Variable Function 736 42: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 31 737 43: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 34 34 16 16 738 40: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 38 26(p0) 41 739 47: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 44 27(p1) 41 740 146: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 31 28(screenSpaceTessFactor(vf4;vf4;) 741 153: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 147 742 154: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 151 151 16 16 743 152: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 149 148(midPoint) 41 744 156: 18(fvec4) Load 26(p0) 745 157: 18(fvec4) Load 27(p1) 746 158: 18(fvec4) FAdd 156 157 747 159: 18(fvec4) VectorTimesScalar 158 155 748 Store 148(midPoint) 159 749 167: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 165 165 16 16 750 166: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 163 162(radius) 41 751 168: 18(fvec4) Load 26(p0) 752 169: 18(fvec4) Load 27(p1) 753 170: 8(float) ExtInst 3(GLSL.std.450) 67(Distance) 168 169 754 172: 8(float) FDiv 170 171 755 Store 162(radius) 172 756 178: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 176 176 16 16 757 177: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 174 173(v0) 41 758 179: 18(fvec4) Load 148(midPoint) 759 233: 231(ptr) AccessChain 222 229 230 760 234: 180 Load 233 761 235: 18(fvec4) VectorTimesMatrix 179 234 762 Store 173(v0) 235 763 241: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 239 239 16 16 764 240: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 237 236(clip0) 41 765 242: 18(fvec4) Load 173(v0) 766 243: 8(float) Load 162(radius) 767 246: 8(float) CompositeExtract 245 0 768 247: 8(float) CompositeExtract 245 1 769 248: 8(float) CompositeExtract 245 2 770 249: 18(fvec4) CompositeConstruct 243 246 247 248 771 250: 18(fvec4) FSub 242 249 772 251: 231(ptr) AccessChain 222 229 229 773 252: 180 Load 251 774 253: 18(fvec4) VectorTimesMatrix 250 252 775 Store 236(clip0) 253 776 259: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 257 257 16 16 777 258: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 255 254(clip1) 41 778 260: 18(fvec4) Load 173(v0) 779 261: 8(float) Load 162(radius) 780 262: 8(float) CompositeExtract 245 0 781 263: 8(float) CompositeExtract 245 1 782 264: 8(float) CompositeExtract 245 2 783 265: 18(fvec4) CompositeConstruct 261 262 263 264 784 266: 18(fvec4) FAdd 260 265 785 267: 231(ptr) AccessChain 222 229 229 786 268: 180 Load 267 787 269: 18(fvec4) VectorTimesMatrix 266 268 788 Store 254(clip1) 269 789 271: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 272 272 16 16 790 270: 160(ptr) AccessChain 236(clip0) 17 791 273: 8(float) Load 270 792 274: 18(fvec4) Load 236(clip0) 793 275: 18(fvec4) CompositeConstruct 273 273 273 273 794 276: 18(fvec4) FDiv 274 275 795 Store 236(clip0) 276 796 278: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 279 279 16 16 797 277: 160(ptr) AccessChain 254(clip1) 17 798 280: 8(float) Load 277 799 281: 18(fvec4) Load 254(clip1) 800 282: 18(fvec4) CompositeConstruct 280 280 280 280 801 283: 18(fvec4) FDiv 281 282 802 Store 254(clip1) 283 803 288: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 289 289 16 16 804 287: 285(ptr) AccessChain 222 229 284 805 290: 48(fvec2) Load 287 806 291: 18(fvec4) Load 236(clip0) 807 292: 48(fvec2) VectorShuffle 291 291 0 1 808 293: 48(fvec2) FMul 292 290 809 294: 160(ptr) AccessChain 236(clip0) 16 810 295: 8(float) CompositeExtract 293 0 811 Store 294 295 812 296: 160(ptr) AccessChain 236(clip0) 36 813 297: 8(float) CompositeExtract 293 1 814 Store 296 297 815 299: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 300 300 16 16 816 298: 285(ptr) AccessChain 222 229 284 817 301: 48(fvec2) Load 298 818 302: 18(fvec4) Load 254(clip1) 819 303: 48(fvec2) VectorShuffle 302 302 0 1 820 304: 48(fvec2) FMul 303 301 821 305: 160(ptr) AccessChain 254(clip1) 16 822 306: 8(float) CompositeExtract 304 0 823 Store 305 306 824 307: 160(ptr) AccessChain 254(clip1) 36 825 308: 8(float) CompositeExtract 304 1 826 Store 307 308 827 310: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 311 311 16 16 828 309: 18(fvec4) Load 236(clip0) 829 312: 18(fvec4) Load 254(clip1) 830 313: 8(float) ExtInst 3(GLSL.std.450) 67(Distance) 309 312 831 317: 315(ptr) AccessChain 222 229 314 832 318: 8(float) Load 317 833 319: 8(float) FDiv 313 318 834 321: 315(ptr) AccessChain 222 229 320 835 322: 8(float) Load 321 836 323: 8(float) FMul 319 322 837 326: 8(float) ExtInst 3(GLSL.std.450) 43(FClamp) 323 324 325 838 ReturnValue 326 839 FunctionEnd 84059(frustumCheck(vf4;vf2;): 52(bool) Function None 55 841 57(Pos): 21(ptr) FunctionParameter 842 58(inUV): 50(ptr) FunctionParameter 843 60: Label 844 333(pos): 21(ptr) Variable Function 845 385(i): 383(ptr) Variable Function 846 67: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 62 847 68: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 63 63 16 16 848 66: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 64 57(Pos) 41 849 71: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 69 58(inUV) 41 850 331: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 62 59(frustumCheck(vf4;vf2;) 851 338: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 332 852 339: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 336 336 16 16 853 337: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 334 333(pos) 41 854 340: 18(fvec4) Load 57(Pos) 855 Store 333(pos) 340 856 353: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 344 344 16 16 857 352: 341 Load 349(textureHeight) 858 363: 354 Load 360(samplerHeight) 859 368: 364 SampledImage 352 363 860 369: 48(fvec2) Load 58(inUV) 861 370: 18(fvec4) ImageSampleExplicitLod 368 369 Lod 244 862 371: 8(float) CompositeExtract 370 0 863 373: 315(ptr) AccessChain 222 229 372 864 374: 8(float) Load 373 865 375: 8(float) FMul 371 374 866 376: 160(ptr) AccessChain 333(pos) 36 867 377: 8(float) Load 376 868 378: 8(float) FSub 377 375 869 379: 160(ptr) AccessChain 333(pos) 36 870 Store 379 378 871 389: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 380 872 390: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 381 381 16 16 873 388: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 386 385(i) 41 874 Store 385(i) 229 875 Branch 391 876 391: Label 877 395: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 380 878 396: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 381 381 16 16 879 LoopMerge 393 394 None 880 Branch 397 881 397: Label 882 399: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 380 883 400: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 381 381 16 16 884 398: 226(int) Load 385(i) 885 401: 52(bool) SLessThan 398 284 886 BranchConditional 401 392 393 887 392: Label 888 404: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 402 889 405: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 406 406 16 16 890 403: 18(fvec4) Load 333(pos) 891 408: 226(int) Load 385(i) 892 411: 409(ptr) AccessChain 222 229 407 408 893 412: 18(fvec4) Load 411 894 413: 8(float) Dot 403 412 895 415: 8(float) FAdd 413 414 896 416: 52(bool) FOrdLessThan 415 244 897 SelectionMerge 418 None 898 BranchConditional 416 417 418 899 417: Label 900 421: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 419 901 422: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 423 423 16 16 902 ReturnValue 420 903 418: Label 904 Branch 394 905 394: Label 906 426: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 380 907 427: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 381 381 16 16 908 425: 226(int) Load 385(i) 909 428: 226(int) IAdd 425 230 910 Store 385(i) 428 911 Branch 391 912 393: Label 913 429: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 332 914 430: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 431 431 16 16 915 ReturnValue 182 916 FunctionEnd 917110(ConstantsHS(struct-VSOutput-vf4-vf3-vf21[4];):97(ConstantsHSOutput) Function None 107 918 109(patch): 91(ptr) FunctionParameter 919 111: Label 920 440(output): 438(ptr) Variable Function 921 451(param): 21(ptr) Variable Function 922 456(param): 50(ptr) Variable Function 923 494(param): 21(ptr) Variable Function 924 500(param): 21(ptr) Variable Function 925 505(param): 21(ptr) Variable Function 926 510(param): 21(ptr) Variable Function 927 515(param): 21(ptr) Variable Function 928 520(param): 21(ptr) Variable Function 929 525(param): 21(ptr) Variable Function 930 530(param): 21(ptr) Variable Function 931 117: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 113 932 118: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 88 88 16 16 933 116: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 114 109(patch) 41 934 436: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 113 110(ConstantsHS(struct-VSOutput-vf4-vf3-vf21[4];) 935 445: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 437 936 446: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 443 443 16 16 937 444: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 441 440(output) 41 938 Store 440(output) 449 939 453: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 454 454 16 16 940 452: 21(ptr) AccessChain 109(patch) 229 229 941 455: 18(fvec4) Load 452 942 Store 451(param) 455 943 457: 50(ptr) AccessChain 109(patch) 229 450 944 458: 48(fvec2) Load 457 945 Store 456(param) 458 946 459: 52(bool) FunctionCall 59(frustumCheck(vf4;vf2;) 451(param) 456(param) 947 460: 52(bool) LogicalNot 459 948 SelectionMerge 462 None 949 BranchConditional 460 461 483 950 461: Label 951 465: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 463 952 466: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 467 467 16 16 953 464: 160(ptr) AccessChain 440(output) 230 229 954 Store 464 244 955 469: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 470 470 16 16 956 468: 160(ptr) AccessChain 440(output) 230 230 957 Store 468 244 958 472: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 473 473 16 16 959 471: 160(ptr) AccessChain 440(output) 229 229 960 Store 471 244 961 475: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 476 476 16 16 962 474: 160(ptr) AccessChain 440(output) 229 230 963 Store 474 244 964 478: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 479 479 16 16 965 477: 160(ptr) AccessChain 440(output) 229 450 966 Store 477 244 967 481: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 482 482 16 16 968 480: 160(ptr) AccessChain 440(output) 229 407 969 Store 480 244 970 Branch 462 971 483: Label 972 486: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 484 973 487: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 488 488 16 16 974 485: 315(ptr) AccessChain 222 229 320 975 489: 8(float) Load 485 976 490: 52(bool) FOrdGreaterThan 489 244 977 SelectionMerge 492 None 978 BranchConditional 490 491 551 979 491: Label 980 496: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 493 981 497: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 498 498 16 16 982 495: 21(ptr) AccessChain 109(patch) 407 229 983 499: 18(fvec4) Load 495 984 Store 494(param) 499 985 501: 21(ptr) AccessChain 109(patch) 229 229 986 502: 18(fvec4) Load 501 987 Store 500(param) 502 988 503: 8(float) FunctionCall 28(screenSpaceTessFactor(vf4;vf4;) 494(param) 500(param) 989 504: 160(ptr) AccessChain 440(output) 229 229 990 Store 504 503 991 507: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 508 508 16 16 992 506: 21(ptr) AccessChain 109(patch) 229 229 993 509: 18(fvec4) Load 506 994 Store 505(param) 509 995 511: 21(ptr) AccessChain 109(patch) 230 229 996 512: 18(fvec4) Load 511 997 Store 510(param) 512 998 513: 8(float) FunctionCall 28(screenSpaceTessFactor(vf4;vf4;) 505(param) 510(param) 999 514: 160(ptr) AccessChain 440(output) 229 230 1000 Store 514 513 1001 517: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 518 518 16 16 1002 516: 21(ptr) AccessChain 109(patch) 230 229 1003 519: 18(fvec4) Load 516 1004 Store 515(param) 519 1005 521: 21(ptr) AccessChain 109(patch) 450 229 1006 522: 18(fvec4) Load 521 1007 Store 520(param) 522 1008 523: 8(float) FunctionCall 28(screenSpaceTessFactor(vf4;vf4;) 515(param) 520(param) 1009 524: 160(ptr) AccessChain 440(output) 229 450 1010 Store 524 523 1011 527: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 528 528 16 16 1012 526: 21(ptr) AccessChain 109(patch) 450 229 1013 529: 18(fvec4) Load 526 1014 Store 525(param) 529 1015 531: 21(ptr) AccessChain 109(patch) 407 229 1016 532: 18(fvec4) Load 531 1017 Store 530(param) 532 1018 533: 8(float) FunctionCall 28(screenSpaceTessFactor(vf4;vf4;) 525(param) 530(param) 1019 534: 160(ptr) AccessChain 440(output) 229 407 1020 Store 534 533 1021 536: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 537 537 16 16 1022 535: 160(ptr) AccessChain 440(output) 229 229 1023 538: 8(float) Load 535 1024 539: 160(ptr) AccessChain 440(output) 229 407 1025 540: 8(float) Load 539 1026 541: 8(float) ExtInst 3(GLSL.std.450) 46(FMix) 538 540 155 1027 542: 160(ptr) AccessChain 440(output) 230 229 1028 Store 542 541 1029 544: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 545 545 16 16 1030 543: 160(ptr) AccessChain 440(output) 229 450 1031 546: 8(float) Load 543 1032 547: 160(ptr) AccessChain 440(output) 229 230 1033 548: 8(float) Load 547 1034 549: 8(float) ExtInst 3(GLSL.std.450) 46(FMix) 546 548 155 1035 550: 160(ptr) AccessChain 440(output) 230 230 1036 Store 550 549 1037 Branch 492 1038 551: Label 1039 554: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 552 1040 555: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 556 556 16 16 1041 553: 160(ptr) AccessChain 440(output) 230 229 1042 Store 553 324 1043 558: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 559 559 16 16 1044 557: 160(ptr) AccessChain 440(output) 230 230 1045 Store 557 324 1046 561: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 562 562 16 16 1047 560: 160(ptr) AccessChain 440(output) 229 229 1048 Store 560 324 1049 564: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 565 565 16 16 1050 563: 160(ptr) AccessChain 440(output) 229 230 1051 Store 563 324 1052 567: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 568 568 16 16 1053 566: 160(ptr) AccessChain 440(output) 229 450 1054 Store 566 324 1055 570: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 571 571 16 16 1056 569: 160(ptr) AccessChain 440(output) 229 407 1057 Store 569 324 1058 Branch 492 1059 492: Label 1060 Branch 462 1061 462: Label 1062 573: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 437 1063 574: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 575 575 16 16 1064 572:97(ConstantsHSOutput) Load 440(output) 1065 ReturnValue 572 1066 FunctionEnd 1067135(@main(struct-VSOutput-vf4-vf3-vf21[4];u1;):121(HSOutput) Function None 131 1068 133(patch): 91(ptr) FunctionParameter 1069134(InvocationID): 119(ptr) FunctionParameter 1070 136: Label 1071 584(output): 582(ptr) Variable Function 1072 141: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 138 1073 142: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 130 130 16 16 1074 140: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 139 133(patch) 41 1075 145: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 143 134(InvocationID) 41 1076 580: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 138 135(@main(struct-VSOutput-vf4-vf3-vf21[4];u1;) 1077 588: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 581 1078 589: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 586 586 16 16 1079 587: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 585 584(output) 41 1080 Store 584(output) 592 1081 594: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 595 595 16 16 1082 593: 11(int) Load 134(InvocationID) 1083 596: 21(ptr) AccessChain 133(patch) 593 229 1084 597: 18(fvec4) Load 596 1085 598: 21(ptr) AccessChain 584(output) 229 1086 Store 598 597 1087 600: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 601 601 16 16 1088 599: 11(int) Load 134(InvocationID) 1089 604: 602(ptr) AccessChain 133(patch) 599 230 1090 605: 72(fvec3) Load 604 1091 606: 602(ptr) AccessChain 584(output) 230 1092 Store 606 605 1093 608: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 609 609 16 16 1094 607: 11(int) Load 134(InvocationID) 1095 610: 50(ptr) AccessChain 133(patch) 607 450 1096 611: 48(fvec2) Load 610 1097 612: 50(ptr) AccessChain 584(output) 450 1098 Store 612 611 1099 614: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 32 615 615 16 16 1100 613:121(HSOutput) Load 584(output) 1101 ReturnValue 613 1102 FunctionEnd