yum-mirror/glslang
git clone https://git.yummers.dev/yum-mirror/glslang
7fb81fa4
main
1spv.debuginfo.glsl.tesc 2// Module Version 10000 3// Generated by (magic number): 8000b 4// Id's are bound by 593 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 TessellationControl 14 "main" 122 130 138 146 319 324 427 442 559 12 ExecutionMode 14 OutputVertices 4 13 2: String "spv.debuginfo.glsl.tesc" 14 8: String "uint" 15 17: String "float" 16 31: String "screenSpaceTessFactor" 17 34: String "/* 18The MIT License (MIT) 19 20Copyright (c) 2022 Sascha Willems 21 22Permission is hereby granted, free of charge, to any person obtaining a copy 23of this software and associated documentation files (the "Software"), to deal 24in the Software without restriction, including without limitation the rights 25to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 26copies of the Software, and to permit persons to whom the Software is 27furnished to do so, subject to the following conditions: 28 29The above copyright notice and this permission notice shall be included in all 30copies or substantial portions of the Software. 31 32THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 33IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 34FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 35AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 36LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 37OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 38SOFTWARE. 39*/ 40 41#version 450 42 43layout(set = 0, binding = 0) uniform UBO 44{ 45 mat4 projection; 46 mat4 modelview; 47 vec4 lightPos; 48 vec4 frustumPlanes[6]; 49 float displacementFactor; 50 float tessellationFactor; 51 vec2 viewportDim; 52 float tessellatedEdgeSize; 53} ubo; 54 55layout(set = 0, binding = 1) uniform sampler2D samplerHeight; 56 57layout (vertices = 4) out; 58 59layout (location = 0) in vec3 inNormal[]; 60layout (location = 1) in vec2 inUV[]; 61 62layout (location = 0) out vec3 outNormal[4]; 63layout (location = 1) out vec2 outUV[4]; 64 65// Calculate the tessellation factor based on screen space 66// dimensions of the edge 67float screenSpaceTessFactor(vec4 p0, vec4 p1) 68{ 69 // Calculate edge mid point 70 vec4 midPoint = 0.5 * (p0 + p1); 71 // Sphere radius as distance between the control points 72 float radius = distance(p0, p1) / 2.0; 73 74 // View space 75 vec4 v0 = ubo.modelview * midPoint; 76 77 // Project into clip space 78 vec4 clip0 = (ubo.projection * (v0 - vec4(radius, vec3(0.0)))); 79 vec4 clip1 = (ubo.projection * (v0 + vec4(radius, vec3(0.0)))); 80 81 // Get normalized device coordinates 82 clip0 /= clip0.w; 83 clip1 /= clip1.w; 84 85 // Convert to viewport coordinates 86 clip0.xy *= ubo.viewportDim; 87 clip1.xy *= ubo.viewportDim; 88 89 // Return the tessellation factor based on the screen size 90 // given by the distance of the two edge control points in screen space 91 // and a reference (min.) tessellation size for the edge set by the application 92 return clamp(distance(clip0, clip1) / ubo.tessellatedEdgeSize * ubo.tessellationFactor, 1.0, 64.0); 93} 94 95// Checks the current's patch visibility against the frustum using a sphere check 96// Sphere radius is given by the patch size 97bool frustumCheck() 98{ 99 // Fixed radius (increase if patch size is increased in example) 100 const float radius = 8.0f; 101 vec4 pos = gl_in[gl_InvocationID].gl_Position; 102 pos.y -= textureLod(samplerHeight, inUV[0], 0.0).r * ubo.displacementFactor; 103 104 // Check sphere against frustum planes 105 for (int i = 0; i < 6; i++) { 106 if (dot(pos, ubo.frustumPlanes[i]) + radius < 0.0) 107 { 108 return false; 109 } 110 } 111 return true; 112} 113 114void main() 115{ 116 if (gl_InvocationID == 0) 117 { 118 if (!frustumCheck()) 119 { 120 gl_TessLevelInner[0] = 0.0; 121 gl_TessLevelInner[1] = 0.0; 122 gl_TessLevelOuter[0] = 0.0; 123 gl_TessLevelOuter[1] = 0.0; 124 gl_TessLevelOuter[2] = 0.0; 125 gl_TessLevelOuter[3] = 0.0; 126 } 127 else 128 { 129 if (ubo.tessellationFactor > 0.0) 130 { 131 gl_TessLevelOuter[0] = screenSpaceTessFactor(gl_in[3].gl_Position, gl_in[0].gl_Position); 132 gl_TessLevelOuter[1] = screenSpaceTessFactor(gl_in[0].gl_Position, gl_in[1].gl_Position); 133 gl_TessLevelOuter[2] = screenSpaceTessFactor(gl_in[1].gl_Position, gl_in[2].gl_Position); 134 gl_TessLevelOuter[3] = screenSpaceTessFactor(gl_in[2].gl_Position, gl_in[3].gl_Position); 135 gl_TessLevelInner[0] = mix(gl_TessLevelOuter[0], gl_TessLevelOuter[3], 0.5); 136 gl_TessLevelInner[1] = mix(gl_TessLevelOuter[2], gl_TessLevelOuter[1], 0.5); 137 } 138 else 139 { 140 // Tessellation factor can be set to zero by example 141 // to demonstrate a simple passthrough 142 gl_TessLevelInner[0] = 1.0; 143 gl_TessLevelInner[1] = 1.0; 144 gl_TessLevelOuter[0] = 1.0; 145 gl_TessLevelOuter[1] = 1.0; 146 gl_TessLevelOuter[2] = 1.0; 147 gl_TessLevelOuter[3] = 1.0; 148 } 149 } 150 151 } 152 153 gl_out[gl_InvocationID].gl_Position = gl_in[gl_InvocationID].gl_Position; 154 outNormal[gl_InvocationID] = inNormal[gl_InvocationID]; 155 outUV[gl_InvocationID] = inUV[gl_InvocationID]; 156} 157" 158 40: String "p0" 159 46: String "p1" 160 49: String "bool" 161 55: String "frustumCheck" 162 58: String "main" 163 70: String "projection" 164 73: String "modelview" 165 76: String "lightPos" 166 79: String "frustumPlanes" 167 81: String "displacementFactor" 168 85: String "tessellationFactor" 169 88: String "viewportDim" 170 91: String "tessellatedEdgeSize" 171 94: String "UBO" 172 100: String "ubo" 173 103: String "texture2D" 174 105: String "@texture2D" 175 109: String "sampler2D" 176 110: String "@sampler2D" 177 115: String "samplerHeight" 178 124: String "inNormal" 179 132: String "inUV" 180 140: String "outNormal" 181 148: String "outUV" 182 153: String "midPoint" 183 166: String "radius" 184 177: String "v0" 185 182: String "int" 186 193: String "clip0" 187 212: String "clip1" 188 298: String "pos" 189 306: String "gl_Position" 190 308: String "gl_PointSize" 191 310: String "gl_ClipDistance" 192 312: String "gl_CullDistance" 193 314: String "gl_PerVertex" 194 321: String "gl_in" 195 326: String "gl_InvocationID" 196 355: String "i" 197 429: String "gl_TessLevelInner" 198 444: String "gl_TessLevelOuter" 199 561: String "gl_out" 200 Name 14 "main" 201 Name 29 "screenSpaceTessFactor(vf4;vf4;" 202 Name 27 "p0" 203 Name 28 "p1" 204 Name 53 "frustumCheck(" 205 Name 68 "UBO" 206 MemberName 68(UBO) 0 "projection" 207 MemberName 68(UBO) 1 "modelview" 208 MemberName 68(UBO) 2 "lightPos" 209 MemberName 68(UBO) 3 "frustumPlanes" 210 MemberName 68(UBO) 4 "displacementFactor" 211 MemberName 68(UBO) 5 "tessellationFactor" 212 MemberName 68(UBO) 6 "viewportDim" 213 MemberName 68(UBO) 7 "tessellatedEdgeSize" 214 Name 98 "ubo" 215 Name 113 "samplerHeight" 216 Name 122 "inNormal" 217 Name 130 "inUV" 218 Name 138 "outNormal" 219 Name 146 "outUV" 220 Name 151 "midPoint" 221 Name 164 "radius" 222 Name 175 "v0" 223 Name 191 "clip0" 224 Name 210 "clip1" 225 Name 296 "pos" 226 Name 304 "gl_PerVertex" 227 MemberName 304(gl_PerVertex) 0 "gl_Position" 228 MemberName 304(gl_PerVertex) 1 "gl_PointSize" 229 MemberName 304(gl_PerVertex) 2 "gl_ClipDistance" 230 MemberName 304(gl_PerVertex) 3 "gl_CullDistance" 231 Name 319 "gl_in" 232 Name 324 "gl_InvocationID" 233 Name 353 "i" 234 Name 427 "gl_TessLevelInner" 235 Name 442 "gl_TessLevelOuter" 236 Name 471 "param" 237 Name 476 "param" 238 Name 481 "param" 239 Name 486 "param" 240 Name 491 "param" 241 Name 496 "param" 242 Name 501 "param" 243 Name 506 "param" 244 Name 548 "gl_PerVertex" 245 MemberName 548(gl_PerVertex) 0 "gl_Position" 246 MemberName 548(gl_PerVertex) 1 "gl_PointSize" 247 MemberName 548(gl_PerVertex) 2 "gl_ClipDistance" 248 MemberName 548(gl_PerVertex) 3 "gl_CullDistance" 249 Name 559 "gl_out" 250 Decorate 64 ArrayStride 16 251 Decorate 68(UBO) Block 252 MemberDecorate 68(UBO) 0 ColMajor 253 MemberDecorate 68(UBO) 0 MatrixStride 16 254 MemberDecorate 68(UBO) 0 Offset 0 255 MemberDecorate 68(UBO) 1 ColMajor 256 MemberDecorate 68(UBO) 1 MatrixStride 16 257 MemberDecorate 68(UBO) 1 Offset 64 258 MemberDecorate 68(UBO) 2 Offset 128 259 MemberDecorate 68(UBO) 3 Offset 144 260 MemberDecorate 68(UBO) 4 Offset 240 261 MemberDecorate 68(UBO) 5 Offset 244 262 MemberDecorate 68(UBO) 6 Offset 248 263 MemberDecorate 68(UBO) 7 Offset 256 264 Decorate 98(ubo) Binding 0 265 Decorate 98(ubo) DescriptorSet 0 266 Decorate 113(samplerHeight) Binding 1 267 Decorate 113(samplerHeight) DescriptorSet 0 268 Decorate 122(inNormal) Location 0 269 Decorate 130(inUV) Location 1 270 Decorate 138(outNormal) Location 0 271 Decorate 146(outUV) Location 1 272 Decorate 304(gl_PerVertex) Block 273 MemberDecorate 304(gl_PerVertex) 0 BuiltIn Position 274 MemberDecorate 304(gl_PerVertex) 1 BuiltIn PointSize 275 MemberDecorate 304(gl_PerVertex) 2 BuiltIn ClipDistance 276 MemberDecorate 304(gl_PerVertex) 3 BuiltIn CullDistance 277 Decorate 324(gl_InvocationID) BuiltIn InvocationId 278 Decorate 427(gl_TessLevelInner) BuiltIn TessLevelInner 279 Decorate 427(gl_TessLevelInner) Patch 280 Decorate 442(gl_TessLevelOuter) BuiltIn TessLevelOuter 281 Decorate 442(gl_TessLevelOuter) Patch 282 Decorate 548(gl_PerVertex) Block 283 MemberDecorate 548(gl_PerVertex) 0 BuiltIn Position 284 MemberDecorate 548(gl_PerVertex) 1 BuiltIn PointSize 285 MemberDecorate 548(gl_PerVertex) 2 BuiltIn ClipDistance 286 MemberDecorate 548(gl_PerVertex) 3 BuiltIn CullDistance 287 4: TypeVoid 288 5: TypeFunction 4 289 7: TypeInt 32 0 290 10: 7(int) Constant 32 291 11: 7(int) Constant 6 292 12: 7(int) Constant 0 293 9: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 8 10 11 12 294 13: 7(int) Constant 3 295 6: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 4 296 16: TypeFloat 32 297 18: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 17 10 13 12 298 19: TypeVector 16(float) 4 299 20: 7(int) Constant 4 300 21: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 18 20 301 22: TypePointer Function 19(fvec4) 302 23: 7(int) Constant 7 303 24: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 21 23 12 304 25: TypeFunction 16(float) 22(ptr) 22(ptr) 305 26: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 18 21 21 306 33: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 34 307 35: 7(int) Constant 51 308 37: 7(int) Constant 1 309 38: 7(int) Constant 2 310 36: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 37 20 33 38 311 32: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 31 26 33 35 12 36 31 13 35 312 39: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 40 21 33 35 12 32 20 37 313 42: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression) 314 45: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 46 21 33 35 12 32 20 38 315 48: TypeBool 316 50: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 49 10 38 12 317 51: TypeFunction 48(bool) 318 52: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 13 50 319 57: 7(int) Constant 81 320 56: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 55 52 33 57 12 36 55 13 57 321 60: 7(int) Constant 98 322 59: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 58 6 33 60 12 36 58 13 60 323 61: TypeMatrix 19(fvec4) 4 324 63: 48(bool) ConstantTrue 325 62: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 21 20 63 326 64: TypeArray 19(fvec4) 11 327 65: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 21 11 328 66: TypeVector 16(float) 2 329 67: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 18 38 330 68(UBO): TypeStruct 61 61 19(fvec4) 64 16(float) 16(float) 66(fvec2) 16(float) 331 71: 7(int) Constant 29 332 69: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 70 62 33 71 23 12 12 13 333 74: 7(int) Constant 30 334 72: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 73 62 33 74 23 12 12 13 335 77: 7(int) Constant 31 336 75: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 76 21 33 77 23 12 12 13 337 78: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 79 65 33 10 23 12 12 13 338 82: 7(int) Constant 33 339 83: 7(int) Constant 8 340 80: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 81 18 33 82 83 12 12 13 341 86: 7(int) Constant 34 342 84: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 85 18 33 86 83 12 12 13 343 89: 7(int) Constant 35 344 87: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 88 67 33 89 23 12 12 13 345 92: 7(int) Constant 36 346 90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 91 18 33 92 83 12 12 13 347 95: 7(int) Constant 27 348 93: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 94 37 33 95 12 36 94 12 13 69 72 75 78 80 84 87 90 349 96: TypePointer Uniform 68(UBO) 350 97: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 93 38 12 351 98(ubo): 96(ptr) Variable Uniform 352 99: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 100 93 33 95 12 36 100 98(ubo) 83 353 101: TypeImage 16(float) 2D sampled format:Unknown 354 104: 7(int) Constant 39 355 106: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone) 356 102: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 103 37 33 104 12 36 105 106 13 357 107: TypeSampledImage 101 358 108: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 109 37 33 104 12 36 110 106 13 359 111: TypePointer UniformConstant 107 360 112: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 108 12 12 361113(samplerHeight): 111(ptr) Variable UniformConstant 362 114: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 115 108 33 104 12 36 115 113(samplerHeight) 83 363 116: TypeVector 16(float) 3 364 117: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 18 13 365 118: TypeArray 116(fvec3) 10 366 119: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 117 10 367 120: TypePointer Input 118 368 121: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 119 37 12 369 122(inNormal): 120(ptr) Variable Input 370 125: 7(int) Constant 43 371 123: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 124 119 33 125 12 36 124 122(inNormal) 83 372 126: TypeArray 66(fvec2) 10 373 127: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 67 10 374 128: TypePointer Input 126 375 129: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 127 37 12 376 130(inUV): 128(ptr) Variable Input 377 133: 7(int) Constant 44 378 131: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 132 127 33 133 12 36 132 130(inUV) 83 379 134: TypeArray 116(fvec3) 20 380 135: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 117 20 381 136: TypePointer Output 134 382 137: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 135 13 12 383 138(outNormal): 136(ptr) Variable Output 384 141: 7(int) Constant 46 385 139: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 140 135 33 141 12 36 140 138(outNormal) 83 386 142: TypeArray 66(fvec2) 20 387 143: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 67 20 388 144: TypePointer Output 142 389 145: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 143 13 12 390 146(outUV): 144(ptr) Variable Output 391 149: 7(int) Constant 47 392 147: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 148 143 33 149 12 36 148 146(outUV) 83 393 154: 7(int) Constant 54 394 152: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 153 21 33 154 12 32 20 395 157: 16(float) Constant 1056964608 396 162: TypePointer Function 16(float) 397 163: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 18 23 12 398 167: 7(int) Constant 56 399 165: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 166 18 33 167 12 32 20 400 173: 16(float) Constant 1073741824 401 178: 7(int) Constant 59 402 176: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 177 21 33 178 12 32 20 403 181: TypeInt 32 1 404 183: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 182 10 20 12 405 184: 181(int) Constant 1 406 185: TypePointer Uniform 61 407 186: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 62 38 12 408 194: 7(int) Constant 62 409 192: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 193 21 33 194 12 32 20 410 197: 181(int) Constant 0 411 202: 16(float) Constant 0 412 203: 116(fvec3) ConstantComposite 202 202 202 413 213: 7(int) Constant 63 414 211: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 212 21 33 213 12 32 20 415 228: 7(int) Constant 66 416 235: 7(int) Constant 67 417 240: 181(int) Constant 6 418 241: TypePointer Uniform 66(fvec2) 419 242: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 67 38 12 420 245: 7(int) Constant 70 421 256: 7(int) Constant 71 422 267: 7(int) Constant 76 423 270: 181(int) Constant 7 424 271: TypePointer Uniform 16(float) 425 272: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 18 38 12 426 276: 181(int) Constant 5 427 280: 16(float) Constant 1065353216 428 281: 16(float) Constant 1115684864 429 287: 7(int) Constant 77 430 291: 16(float) Constant 1090519040 431 293: 7(int) Constant 84 432 292: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 166 18 33 293 12 56 20 433 299: 7(int) Constant 85 434 297: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 298 21 33 299 12 56 20 435 302: TypeArray 16(float) 37 436 303: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 18 37 437304(gl_PerVertex): TypeStruct 19(fvec4) 16(float) 302 302 438 305: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 306 21 33 12 12 12 12 13 439 307: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 308 18 33 12 12 12 12 13 440 309: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 310 303 33 12 12 12 12 13 441 311: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 312 303 33 12 12 12 12 13 442 313: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 314 37 33 299 12 36 314 12 13 305 307 309 311 443 315: TypeArray 304(gl_PerVertex) 10 444 316: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 313 10 445 317: TypePointer Input 315 446 318: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 316 37 12 447 319(gl_in): 317(ptr) Variable Input 448 320: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 321 316 33 299 12 36 321 319(gl_in) 83 449 322: TypePointer Input 181(int) 450 323: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 183 37 12 451324(gl_InvocationID): 322(ptr) Variable Input 452 325: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 326 183 33 299 12 36 326 324(gl_InvocationID) 83 453 328: TypePointer Input 19(fvec4) 454 329: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 21 37 12 455 334: 7(int) Constant 86 456 335: TypePointer Input 66(fvec2) 457 336: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 67 37 12 458 341: 181(int) Constant 4 459 350: 7(int) Constant 89 460 349: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 33 350 38 56 461 351: TypePointer Function 181(int) 462 352: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 183 23 12 463 354: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 355 183 33 350 12 349 20 464 373: 7(int) Constant 90 465 374: 181(int) Constant 3 466 376: TypePointer Uniform 19(fvec4) 467 377: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 21 38 12 468 386: 7(int) Constant 92 469 385: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 33 386 20 349 470 387: 48(bool) ConstantFalse 471 397: 7(int) Constant 95 472 402: 7(int) Constant 96 473 408: 7(int) Constant 100 474 413: 7(int) Constant 102 475 412: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 33 413 13 59 476 421: 7(int) Constant 104 477 422: 7(int) Constant 25 478 420: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 33 421 422 412 479 423: TypeArray 16(float) 38 480 424: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 18 38 481 425: TypePointer Output 423 482 426: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 424 13 12 483427(gl_TessLevelInner): 425(ptr) Variable Output 484 428: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 429 424 33 421 12 36 429 427(gl_TessLevelInner) 83 485 430: TypePointer Output 16(float) 486 431: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 18 13 12 487 437: 7(int) Constant 105 488 438: TypeArray 16(float) 20 489 439: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 18 20 490 440: TypePointer Output 438 491 441: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 439 13 12 492442(gl_TessLevelOuter): 440(ptr) Variable Output 493 445: 7(int) Constant 106 494 443: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 444 439 33 445 12 36 444 442(gl_TessLevelOuter) 83 495 450: 7(int) Constant 107 496 451: 181(int) Constant 2 497 454: 7(int) Constant 108 498 457: 7(int) Constant 109 499 460: 7(int) Constant 113 500 459: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 33 460 20 412 501 469: 7(int) Constant 115 502 470: 7(int) Constant 26 503 468: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 33 469 470 459 504 484: 7(int) Constant 116 505 494: 7(int) Constant 117 506 504: 7(int) Constant 118 507 513: 7(int) Constant 119 508 521: 7(int) Constant 120 509 529: 7(int) Constant 126 510 528: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 21(DebugLexicalBlock) 33 529 470 459 511 535: 7(int) Constant 127 512 538: 7(int) Constant 128 513 541: 7(int) Constant 129 514 544: 7(int) Constant 130 515 547: 7(int) Constant 131 516548(gl_PerVertex): TypeStruct 19(fvec4) 16(float) 302 302 517 549: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 306 21 33 12 12 12 12 13 518 550: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 308 18 33 12 12 12 12 13 519 551: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 310 303 33 12 12 12 12 13 520 552: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 312 303 33 12 12 12 12 13 521 554: 7(int) Constant 137 522 553: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 314 37 33 554 12 36 314 12 13 549 550 551 552 523 555: TypeArray 548(gl_PerVertex) 20 524 556: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 553 20 525 557: TypePointer Output 555 526 558: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 556 13 12 527 559(gl_out): 557(ptr) Variable Output 528 560: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 561 556 33 554 12 36 561 559(gl_out) 83 529 568: TypePointer Output 19(fvec4) 530 569: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 21 13 12 531 573: 7(int) Constant 138 532 575: TypePointer Input 116(fvec3) 533 576: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 117 37 12 534 579: TypePointer Output 116(fvec3) 535 580: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 117 13 12 536 584: 7(int) Constant 139 537 588: TypePointer Output 66(fvec2) 538 589: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 67 13 12 539 592: 7(int) Constant 140 540 14(main): 4 Function None 5 541 15: Label 542 471(param): 22(ptr) Variable Function 543 476(param): 22(ptr) Variable Function 544 481(param): 22(ptr) Variable Function 545 486(param): 22(ptr) Variable Function 546 491(param): 22(ptr) Variable Function 547 496(param): 22(ptr) Variable Function 548 501(param): 22(ptr) Variable Function 549 506(param): 22(ptr) Variable Function 550 404: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 59 551 405: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 60 60 12 12 552 403: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 59 14(main) 553 407: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 408 408 12 12 554 406: 181(int) Load 324(gl_InvocationID) 555 409: 48(bool) IEqual 406 197 556 SelectionMerge 411 None 557 BranchConditional 409 410 411 558 410: Label 559 415: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 412 560 416: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 413 413 12 12 561 414: 48(bool) FunctionCall 53(frustumCheck() 562 417: 48(bool) LogicalNot 414 563 SelectionMerge 419 None 564 BranchConditional 417 418 458 565 418: Label 566 433: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 420 567 434: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 421 421 12 12 568 432: 430(ptr) AccessChain 427(gl_TessLevelInner) 197 569 Store 432 202 570 436: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 437 437 12 12 571 435: 430(ptr) AccessChain 427(gl_TessLevelInner) 184 572 Store 435 202 573 447: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 445 445 12 12 574 446: 430(ptr) AccessChain 442(gl_TessLevelOuter) 197 575 Store 446 202 576 449: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 450 450 12 12 577 448: 430(ptr) AccessChain 442(gl_TessLevelOuter) 184 578 Store 448 202 579 453: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 454 454 12 12 580 452: 430(ptr) AccessChain 442(gl_TessLevelOuter) 451 581 Store 452 202 582 456: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 457 457 12 12 583 455: 430(ptr) AccessChain 442(gl_TessLevelOuter) 374 584 Store 455 202 585 Branch 419 586 458: Label 587 462: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 459 588 463: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 460 460 12 12 589 461: 271(ptr) AccessChain 98(ubo) 276 590 464: 16(float) Load 461 591 465: 48(bool) FOrdGreaterThan 464 202 592 SelectionMerge 467 None 593 BranchConditional 465 466 527 594 466: Label 595 473: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 468 596 474: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 469 469 12 12 597 472: 328(ptr) AccessChain 319(gl_in) 374 197 598 475: 19(fvec4) Load 472 599 Store 471(param) 475 600 477: 328(ptr) AccessChain 319(gl_in) 197 197 601 478: 19(fvec4) Load 477 602 Store 476(param) 478 603 479: 16(float) FunctionCall 29(screenSpaceTessFactor(vf4;vf4;) 471(param) 476(param) 604 480: 430(ptr) AccessChain 442(gl_TessLevelOuter) 197 605 Store 480 479 606 483: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 484 484 12 12 607 482: 328(ptr) AccessChain 319(gl_in) 197 197 608 485: 19(fvec4) Load 482 609 Store 481(param) 485 610 487: 328(ptr) AccessChain 319(gl_in) 184 197 611 488: 19(fvec4) Load 487 612 Store 486(param) 488 613 489: 16(float) FunctionCall 29(screenSpaceTessFactor(vf4;vf4;) 481(param) 486(param) 614 490: 430(ptr) AccessChain 442(gl_TessLevelOuter) 184 615 Store 490 489 616 493: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 494 494 12 12 617 492: 328(ptr) AccessChain 319(gl_in) 184 197 618 495: 19(fvec4) Load 492 619 Store 491(param) 495 620 497: 328(ptr) AccessChain 319(gl_in) 451 197 621 498: 19(fvec4) Load 497 622 Store 496(param) 498 623 499: 16(float) FunctionCall 29(screenSpaceTessFactor(vf4;vf4;) 491(param) 496(param) 624 500: 430(ptr) AccessChain 442(gl_TessLevelOuter) 451 625 Store 500 499 626 503: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 504 504 12 12 627 502: 328(ptr) AccessChain 319(gl_in) 451 197 628 505: 19(fvec4) Load 502 629 Store 501(param) 505 630 507: 328(ptr) AccessChain 319(gl_in) 374 197 631 508: 19(fvec4) Load 507 632 Store 506(param) 508 633 509: 16(float) FunctionCall 29(screenSpaceTessFactor(vf4;vf4;) 501(param) 506(param) 634 510: 430(ptr) AccessChain 442(gl_TessLevelOuter) 374 635 Store 510 509 636 512: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 513 513 12 12 637 511: 430(ptr) AccessChain 442(gl_TessLevelOuter) 197 638 514: 16(float) Load 511 639 515: 430(ptr) AccessChain 442(gl_TessLevelOuter) 374 640 516: 16(float) Load 515 641 517: 16(float) ExtInst 3(GLSL.std.450) 46(FMix) 514 516 157 642 518: 430(ptr) AccessChain 427(gl_TessLevelInner) 197 643 Store 518 517 644 520: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 521 521 12 12 645 519: 430(ptr) AccessChain 442(gl_TessLevelOuter) 451 646 522: 16(float) Load 519 647 523: 430(ptr) AccessChain 442(gl_TessLevelOuter) 184 648 524: 16(float) Load 523 649 525: 16(float) ExtInst 3(GLSL.std.450) 46(FMix) 522 524 157 650 526: 430(ptr) AccessChain 427(gl_TessLevelInner) 184 651 Store 526 525 652 Branch 467 653 527: Label 654 531: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 528 655 532: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 529 529 12 12 656 530: 430(ptr) AccessChain 427(gl_TessLevelInner) 197 657 Store 530 280 658 534: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 535 535 12 12 659 533: 430(ptr) AccessChain 427(gl_TessLevelInner) 184 660 Store 533 280 661 537: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 538 538 12 12 662 536: 430(ptr) AccessChain 442(gl_TessLevelOuter) 197 663 Store 536 280 664 540: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 541 541 12 12 665 539: 430(ptr) AccessChain 442(gl_TessLevelOuter) 184 666 Store 539 280 667 543: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 544 544 12 12 668 542: 430(ptr) AccessChain 442(gl_TessLevelOuter) 451 669 Store 542 280 670 546: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 547 547 12 12 671 545: 430(ptr) AccessChain 442(gl_TessLevelOuter) 374 672 Store 545 280 673 Branch 467 674 467: Label 675 Branch 419 676 419: Label 677 Branch 411 678 411: Label 679 563: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 59 680 564: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 554 554 12 12 681 562: 181(int) Load 324(gl_InvocationID) 682 565: 181(int) Load 324(gl_InvocationID) 683 566: 328(ptr) AccessChain 319(gl_in) 565 197 684 567: 19(fvec4) Load 566 685 570: 568(ptr) AccessChain 559(gl_out) 562 197 686 Store 570 567 687 572: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 573 573 12 12 688 571: 181(int) Load 324(gl_InvocationID) 689 574: 181(int) Load 324(gl_InvocationID) 690 577: 575(ptr) AccessChain 122(inNormal) 574 691 578: 116(fvec3) Load 577 692 581: 579(ptr) AccessChain 138(outNormal) 571 693 Store 581 578 694 583: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 584 584 12 12 695 582: 181(int) Load 324(gl_InvocationID) 696 585: 181(int) Load 324(gl_InvocationID) 697 586: 335(ptr) AccessChain 130(inUV) 585 698 587: 66(fvec2) Load 586 699 590: 588(ptr) AccessChain 146(outUV) 582 700 Store 590 587 701 591: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 592 592 12 12 702 Return 703 FunctionEnd 70429(screenSpaceTessFactor(vf4;vf4;): 16(float) Function None 25 705 27(p0): 22(ptr) FunctionParameter 706 28(p1): 22(ptr) FunctionParameter 707 30: Label 708 151(midPoint): 22(ptr) Variable Function 709 164(radius): 162(ptr) Variable Function 710 175(v0): 22(ptr) Variable Function 711 191(clip0): 22(ptr) Variable Function 712 210(clip1): 22(ptr) Variable Function 713 43: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 32 714 44: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 35 35 12 12 715 41: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 39 27(p0) 42 716 47: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 45 28(p1) 42 717 150: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 32 29(screenSpaceTessFactor(vf4;vf4;) 718 156: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 154 154 12 12 719 155: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 152 151(midPoint) 42 720 158: 19(fvec4) Load 27(p0) 721 159: 19(fvec4) Load 28(p1) 722 160: 19(fvec4) FAdd 158 159 723 161: 19(fvec4) VectorTimesScalar 160 157 724 Store 151(midPoint) 161 725 169: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 167 167 12 12 726 168: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 165 164(radius) 42 727 170: 19(fvec4) Load 27(p0) 728 171: 19(fvec4) Load 28(p1) 729 172: 16(float) ExtInst 3(GLSL.std.450) 67(Distance) 170 171 730 174: 16(float) FDiv 172 173 731 Store 164(radius) 174 732 180: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 178 178 12 12 733 179: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 176 175(v0) 42 734 187: 185(ptr) AccessChain 98(ubo) 184 735 188: 61 Load 187 736 189: 19(fvec4) Load 151(midPoint) 737 190: 19(fvec4) MatrixTimesVector 188 189 738 Store 175(v0) 190 739 196: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 194 194 12 12 740 195: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 192 191(clip0) 42 741 198: 185(ptr) AccessChain 98(ubo) 197 742 199: 61 Load 198 743 200: 19(fvec4) Load 175(v0) 744 201: 16(float) Load 164(radius) 745 204: 16(float) CompositeExtract 203 0 746 205: 16(float) CompositeExtract 203 1 747 206: 16(float) CompositeExtract 203 2 748 207: 19(fvec4) CompositeConstruct 201 204 205 206 749 208: 19(fvec4) FSub 200 207 750 209: 19(fvec4) MatrixTimesVector 199 208 751 Store 191(clip0) 209 752 215: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 213 213 12 12 753 214: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 211 210(clip1) 42 754 216: 185(ptr) AccessChain 98(ubo) 197 755 217: 61 Load 216 756 218: 19(fvec4) Load 175(v0) 757 219: 16(float) Load 164(radius) 758 220: 16(float) CompositeExtract 203 0 759 221: 16(float) CompositeExtract 203 1 760 222: 16(float) CompositeExtract 203 2 761 223: 19(fvec4) CompositeConstruct 219 220 221 222 762 224: 19(fvec4) FAdd 218 223 763 225: 19(fvec4) MatrixTimesVector 217 224 764 Store 210(clip1) 225 765 227: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 228 228 12 12 766 226: 162(ptr) AccessChain 191(clip0) 13 767 229: 16(float) Load 226 768 230: 19(fvec4) Load 191(clip0) 769 231: 19(fvec4) CompositeConstruct 229 229 229 229 770 232: 19(fvec4) FDiv 230 231 771 Store 191(clip0) 232 772 234: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 235 235 12 12 773 233: 162(ptr) AccessChain 210(clip1) 13 774 236: 16(float) Load 233 775 237: 19(fvec4) Load 210(clip1) 776 238: 19(fvec4) CompositeConstruct 236 236 236 236 777 239: 19(fvec4) FDiv 237 238 778 Store 210(clip1) 239 779 244: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 245 245 12 12 780 243: 241(ptr) AccessChain 98(ubo) 240 781 246: 66(fvec2) Load 243 782 247: 19(fvec4) Load 191(clip0) 783 248: 66(fvec2) VectorShuffle 247 247 0 1 784 249: 66(fvec2) FMul 248 246 785 250: 162(ptr) AccessChain 191(clip0) 12 786 251: 16(float) CompositeExtract 249 0 787 Store 250 251 788 252: 162(ptr) AccessChain 191(clip0) 37 789 253: 16(float) CompositeExtract 249 1 790 Store 252 253 791 255: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 256 256 12 12 792 254: 241(ptr) AccessChain 98(ubo) 240 793 257: 66(fvec2) Load 254 794 258: 19(fvec4) Load 210(clip1) 795 259: 66(fvec2) VectorShuffle 258 258 0 1 796 260: 66(fvec2) FMul 259 257 797 261: 162(ptr) AccessChain 210(clip1) 12 798 262: 16(float) CompositeExtract 260 0 799 Store 261 262 800 263: 162(ptr) AccessChain 210(clip1) 37 801 264: 16(float) CompositeExtract 260 1 802 Store 263 264 803 266: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 267 267 12 12 804 265: 19(fvec4) Load 191(clip0) 805 268: 19(fvec4) Load 210(clip1) 806 269: 16(float) ExtInst 3(GLSL.std.450) 67(Distance) 265 268 807 273: 271(ptr) AccessChain 98(ubo) 270 808 274: 16(float) Load 273 809 275: 16(float) FDiv 269 274 810 277: 271(ptr) AccessChain 98(ubo) 276 811 278: 16(float) Load 277 812 279: 16(float) FMul 275 278 813 282: 16(float) ExtInst 3(GLSL.std.450) 43(FClamp) 279 280 281 814 ReturnValue 282 815 FunctionEnd 81653(frustumCheck(): 48(bool) Function None 51 817 54: Label 818 296(pos): 22(ptr) Variable Function 819 353(i): 351(ptr) Variable Function 820 289: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 56 821 290: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 57 57 12 12 822 288: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 56 53(frustumCheck() 823 295: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 293 293 12 12 824 294: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(DebugValue) 292 291 42 825 301: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 299 299 12 12 826 300: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 297 296(pos) 42 827 327: 181(int) Load 324(gl_InvocationID) 828 330: 328(ptr) AccessChain 319(gl_in) 327 197 829 331: 19(fvec4) Load 330 830 Store 296(pos) 331 831 333: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 334 334 12 12 832 332: 107 Load 113(samplerHeight) 833 337: 335(ptr) AccessChain 130(inUV) 197 834 338: 66(fvec2) Load 337 835 339: 19(fvec4) ImageSampleExplicitLod 332 338 Lod 202 836 340: 16(float) CompositeExtract 339 0 837 342: 271(ptr) AccessChain 98(ubo) 341 838 343: 16(float) Load 342 839 344: 16(float) FMul 340 343 840 345: 162(ptr) AccessChain 296(pos) 37 841 346: 16(float) Load 345 842 347: 16(float) FSub 346 344 843 348: 162(ptr) AccessChain 296(pos) 37 844 Store 348 347 845 357: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 349 846 358: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 350 350 12 12 847 356: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 354 353(i) 42 848 Store 353(i) 197 849 Branch 359 850 359: Label 851 363: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 349 852 364: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 350 350 12 12 853 LoopMerge 361 362 None 854 Branch 365 855 365: Label 856 367: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 349 857 368: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 350 350 12 12 858 366: 181(int) Load 353(i) 859 369: 48(bool) SLessThan 366 240 860 BranchConditional 369 360 361 861 360: Label 862 371: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 349 863 372: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 373 373 12 12 864 370: 19(fvec4) Load 296(pos) 865 375: 181(int) Load 353(i) 866 378: 376(ptr) AccessChain 98(ubo) 374 375 867 379: 19(fvec4) Load 378 868 380: 16(float) Dot 370 379 869 381: 16(float) FAdd 380 291 870 382: 48(bool) FOrdLessThan 381 202 871 SelectionMerge 384 None 872 BranchConditional 382 383 384 873 383: Label 874 388: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 385 875 389: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 386 386 12 12 876 ReturnValue 387 877 384: Label 878 Branch 362 879 362: Label 880 392: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 349 881 393: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 350 350 12 12 882 391: 181(int) Load 353(i) 883 394: 181(int) IAdd 391 184 884 Store 353(i) 394 885 Branch 359 886 361: Label 887 395: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 56 888 396: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 33 397 397 12 12 889 ReturnValue 63 890 FunctionEnd