Clean up the debug line info tracking and generation.

- Correctly populate the field `currentFileId` with the presence of include directive
- Support lazy OpLine/OpDebugLine generation only when a real instruction is added instead of a debug location is set
- Improve the debug location tracking to per-block instead of just per-builder
- A few bug fixes related to debug source info
This commit is contained in:
Qingyuan Zheng 2024-02-09 10:27:40 -08:00 committed by GitHub
parent b1f7affe94
commit 30661abd9c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 8844 additions and 8834 deletions

View file

@ -5,12 +5,12 @@ spv.debuginfo.hlsl.tese
Capability Tessellation
Extension "SPV_KHR_non_semantic_info"
2: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
1: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
3: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint TessellationEvaluation 6 "main" 368 383 392 401 408 414 454 458 462 465 468 471 474
ExecutionMode 6 Quads
1: String ""
2: String ""
9: String "float"
12: String "uint"
26: String "TessLevelOuter"
@ -32,34 +32,34 @@ spv.debuginfo.hlsl.tese
71: String "WorldPos"
81: String "DSOutput"
89: String "@main"
95: String "input"
93: String "input"
99: String "TessCoord"
102: String "patch"
112: String "output"
123: String "uv1"
126: String "int"
143: String "uv2"
167: String "n1"
179: String "n2"
202: String "pos1"
214: String "pos2"
226: String "pos"
238: String "type.2d.image"
239: String "@type.2d.image"
245: String "displacementMapTexture"
250: String "type.sampler"
251: String "@type.sampler"
256: String "displacementMapSampler"
260: String "type.sampled.image"
261: String "@type.sampled.image"
270: String "bool"
277: String "modelview"
282: String "lightPos"
286: String "frustumPlanes"
289: String "tessellatedEdgeSize"
293: String "viewportDim"
297: String "UBO"
300: String "ubo"
109: String "output"
120: String "uv1"
125: String "int"
140: String "uv2"
164: String "n1"
176: String "n2"
199: String "pos1"
211: String "pos2"
223: String "pos"
235: String "type.2d.image"
237: String "@type.2d.image"
243: String "displacementMapTexture"
249: String "type.sampler"
250: String "@type.sampler"
255: String "displacementMapSampler"
259: String "type.sampled.image"
260: String "@type.sampled.image"
269: String "bool"
276: String "modelview"
281: String "lightPos"
285: String "frustumPlanes"
288: String "tessellatedEdgeSize"
292: String "viewportDim"
296: String "UBO"
299: String "ubo"
Name 6 "main"
Name 24 "ConstantsHSOutput"
MemberName 24(ConstantsHSOutput) 0 "TessLevelOuter"
@ -80,28 +80,28 @@ spv.debuginfo.hlsl.tese
Name 84 "input"
Name 85 "TessCoord"
Name 86 "patch"
Name 110 "output"
Name 121 "uv1"
Name 141 "uv2"
Name 165 "n1"
Name 177 "n2"
Name 200 "pos1"
Name 212 "pos2"
Name 224 "pos"
Name 243 "displacementMapTexture"
Name 254 "displacementMapSampler"
Name 275 "UBO"
MemberName 275(UBO) 0 "projection"
MemberName 275(UBO) 1 "modelview"
MemberName 275(UBO) 2 "lightPos"
MemberName 275(UBO) 3 "frustumPlanes"
MemberName 275(UBO) 4 "displacementFactor"
MemberName 275(UBO) 5 "tessellationFactor"
MemberName 275(UBO) 6 "viewportDim"
MemberName 275(UBO) 7 "tessellatedEdgeSize"
Name 298 "ubo"
MemberName 298(ubo) 0 "ubo"
Name 304 ""
Name 107 "output"
Name 118 "uv1"
Name 138 "uv2"
Name 162 "n1"
Name 174 "n2"
Name 197 "pos1"
Name 209 "pos2"
Name 221 "pos"
Name 241 "displacementMapTexture"
Name 253 "displacementMapSampler"
Name 274 "UBO"
MemberName 274(UBO) 0 "projection"
MemberName 274(UBO) 1 "modelview"
MemberName 274(UBO) 2 "lightPos"
MemberName 274(UBO) 3 "frustumPlanes"
MemberName 274(UBO) 4 "displacementFactor"
MemberName 274(UBO) 5 "tessellationFactor"
MemberName 274(UBO) 6 "viewportDim"
MemberName 274(UBO) 7 "tessellatedEdgeSize"
Name 297 "ubo"
MemberName 297(ubo) 0 "ubo"
Name 303 ""
Name 366 "input"
Name 368 "input.TessLevelOuter"
Name 383 "input.TessLevelInner"
@ -121,27 +121,27 @@ spv.debuginfo.hlsl.tese
Name 468 "@entryPointOutput.LightVec"
Name 471 "@entryPointOutput.EyePos"
Name 474 "@entryPointOutput.WorldPos"
Decorate 243(displacementMapTexture) DescriptorSet 0
Decorate 243(displacementMapTexture) Binding 1
Decorate 254(displacementMapSampler) DescriptorSet 0
Decorate 254(displacementMapSampler) Binding 1
Decorate 273 ArrayStride 16
MemberDecorate 275(UBO) 0 RowMajor
MemberDecorate 275(UBO) 0 Offset 0
MemberDecorate 275(UBO) 0 MatrixStride 16
MemberDecorate 275(UBO) 1 RowMajor
MemberDecorate 275(UBO) 1 Offset 64
MemberDecorate 275(UBO) 1 MatrixStride 16
MemberDecorate 275(UBO) 2 Offset 128
MemberDecorate 275(UBO) 3 Offset 144
MemberDecorate 275(UBO) 4 Offset 240
MemberDecorate 275(UBO) 5 Offset 244
MemberDecorate 275(UBO) 6 Offset 248
MemberDecorate 275(UBO) 7 Offset 256
MemberDecorate 298(ubo) 0 Offset 0
Decorate 298(ubo) Block
Decorate 304 DescriptorSet 0
Decorate 304 Binding 0
Decorate 241(displacementMapTexture) DescriptorSet 0
Decorate 241(displacementMapTexture) Binding 1
Decorate 253(displacementMapSampler) DescriptorSet 0
Decorate 253(displacementMapSampler) Binding 1
Decorate 272 ArrayStride 16
MemberDecorate 274(UBO) 0 RowMajor
MemberDecorate 274(UBO) 0 Offset 0
MemberDecorate 274(UBO) 0 MatrixStride 16
MemberDecorate 274(UBO) 1 RowMajor
MemberDecorate 274(UBO) 1 Offset 64
MemberDecorate 274(UBO) 1 MatrixStride 16
MemberDecorate 274(UBO) 2 Offset 128
MemberDecorate 274(UBO) 3 Offset 144
MemberDecorate 274(UBO) 4 Offset 240
MemberDecorate 274(UBO) 5 Offset 244
MemberDecorate 274(UBO) 6 Offset 248
MemberDecorate 274(UBO) 7 Offset 256
MemberDecorate 297(ubo) 0 Offset 0
Decorate 297(ubo) Block
Decorate 303 DescriptorSet 0
Decorate 303 Binding 0
Decorate 368(input.TessLevelOuter) Patch
Decorate 368(input.TessLevelOuter) BuiltIn TessLevelOuter
Decorate 383(input.TessLevelInner) Patch
@ -165,170 +165,170 @@ spv.debuginfo.hlsl.tese
14: 11(int) Constant 32
15: 11(int) Constant 6
16: 11(int) Constant 0
13: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 12 14 15 16
13: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 12 14 15 16
17: 11(int) Constant 3
10: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 14 17 16
10: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 9 14 17 16
18: 11(int) Constant 4
19: TypeArray 8(float) 18
20: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 10 18
20: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 10 18
21: 11(int) Constant 2
22: TypeArray 8(float) 21
23: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 10 21
23: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 10 21
24(ConstantsHSOutput): TypeStruct 19 22
27: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 1 28
27: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 35(DebugSource) 2 28
29: 11(int) Constant 51
30: 11(int) Constant 25
25: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 26 20 27 29 30 16 16 17
25: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 26 20 27 29 30 16 16 17
33: 11(int) Constant 52
31: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 32 23 27 33 30 16 16 17
31: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 32 23 27 33 30 16 16 17
36: 11(int) Constant 1
38: 11(int) Constant 5
37: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 36 18 27 38
34: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 35 36 27 16 16 37 35 16 17 25 31
37: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 1(DebugCompilationUnit) 36 18 27 38
34: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 35 36 27 16 16 37 35 16 17 25 31
39: TypePointer Function 24(ConstantsHSOutput)
40: 11(int) Constant 7
41: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 34 40 16
41: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 34 40 16
42: TypeVector 8(float) 2
43: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 21
43: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 21
44: TypePointer Function 42(fvec2)
45: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 43 40 16
45: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 43 40 16
46: TypeVector 8(float) 4
47: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 18
47: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 18
48: TypeVector 8(float) 3
49: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 17
49: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(DebugTypeVector) 10 17
50(HSOutput): TypeStruct 46(fvec4) 48(fvec3) 42(fvec2)
53: 11(int) Constant 44
51: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 47 27 53 14 16 16 17
51: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 47 27 53 14 16 16 17
56: 11(int) Constant 45
57: 11(int) Constant 35
54: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 55 49 27 56 57 16 16 17
54: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 55 49 27 56 57 16 16 17
60: 11(int) Constant 46
61: 11(int) Constant 31
58: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 59 43 27 60 61 16 16 17
62: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 63 36 27 16 16 37 63 16 17 51 54 58
58: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 59 43 27 60 61 16 16 17
62: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 63 36 27 16 16 37 63 16 17 51 54 58
64: TypeArray 50(HSOutput) 18
65: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 62 18
65: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 62 18
66(DSOutput): TypeStruct 46(fvec4) 48(fvec3) 42(fvec2) 48(fvec3) 48(fvec3) 48(fvec3) 48(fvec3)
68: 11(int) Constant 57
69: 11(int) Constant 13
67: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 47 27 68 69 16 16 17
67: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 52 47 27 68 69 16 16 17
72: 11(int) Constant 63
73: 11(int) Constant 37
70: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 49 27 72 73 16 16 17
70: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 49 27 72 73 16 16 17
75: 11(int) Constant 59
74: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 59 43 27 75 61 16 16 17
76: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 49 27 72 73 16 16 17
77: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 49 27 72 73 16 16 17
78: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 49 27 72 73 16 16 17
79: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 49 27 72 73 16 16 17
80: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 81 36 27 16 16 37 81 16 17 67 70 74 76 77 78 79
74: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 59 43 27 75 61 16 16 17
76: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 49 27 72 73 16 16 17
77: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 49 27 72 73 16 16 17
78: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 49 27 72 73 16 16 17
79: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 71 49 27 72 73 16 16 17
80: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 81 36 27 16 16 37 81 16 17 67 70 74 76 77 78 79
82: TypeFunction 66(DSOutput) 39(ptr) 44(ptr) 64
83: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 80 34 43 62
83: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 8(DebugTypeFunction) 17 80 34 43 62
91: 11(int) Constant 68
90: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 89 83 27 91 16 37 89 17 91
94: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 95 34 27 91 16 90 18 36
97: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
98: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 99 43 27 91 16 90 18 21
101: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 102 62 27 91 16 90 18 17
107: 11(int) Constant 70
108: TypePointer Function 66(DSOutput)
109: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 80 40 16
111: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 112 80 27 107 16 90 18
114: 8(float) Constant 0
115: 46(fvec4) ConstantComposite 114 114 114 114
116: 48(fvec3) ConstantComposite 114 114 114
117: 42(fvec2) ConstantComposite 114 114
118:66(DSOutput) ConstantComposite 115 116 117 116 116 116 116
120: 11(int) Constant 71
122: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 123 43 27 120 16 90 18
125: TypeInt 32 1
127: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 126 14 18 16
128: 125(int) Constant 0
129: 125(int) Constant 2
131: 125(int) Constant 1
133: TypePointer Function 8(float)
134: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 40 16
140: 11(int) Constant 72
142: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 143 43 27 140 16 90 18
145: 125(int) Constant 3
90: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 20(DebugFunction) 89 83 27 91 16 37 89 17 91
92: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 93 34 27 91 16 90 18 36
95: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(DebugExpression)
98: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 99 43 27 91 16 90 18 21
101: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 102 62 27 91 16 90 18 17
105: TypePointer Function 66(DSOutput)
106: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 80 40 16
110: 11(int) Constant 70
108: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 109 80 27 110 16 90 18
113: 8(float) Constant 0
114: 46(fvec4) ConstantComposite 113 113 113 113
115: 48(fvec3) ConstantComposite 113 113 113
116: 42(fvec2) ConstantComposite 113 113
117:66(DSOutput) ConstantComposite 114 115 116 115 115 115 115
121: 11(int) Constant 71
119: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 120 43 27 121 16 90 18
124: TypeInt 32 1
126: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 125 14 18 16
127: 124(int) Constant 0
128: 124(int) Constant 2
130: 124(int) Constant 1
132: TypePointer Function 8(float)
133: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 40 16
141: 11(int) Constant 72
139: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 140 43 27 141 16 90 18
144: 124(int) Constant 3
153: 11(int) Constant 73
162: 11(int) Constant 75
163: TypePointer Function 48(fvec3)
164: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 49 40 16
166: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 167 49 27 162 16 90 18
176: 11(int) Constant 76
178: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 179 49 27 176 16 90 18
160: TypePointer Function 48(fvec3)
161: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 49 40 16
165: 11(int) Constant 75
163: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 164 49 27 165 16 90 18
177: 11(int) Constant 76
175: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 176 49 27 177 16 90 18
188: 11(int) Constant 77
197: 11(int) Constant 80
198: TypePointer Function 46(fvec4)
199: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 47 40 16
201: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 202 47 27 197 16 90 18
211: 11(int) Constant 81
213: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 214 47 27 211 16 90 18
223: 11(int) Constant 82
225: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 226 47 27 223 16 90 18
235: 11(int) Constant 84
236: TypeImage 8(float) 2D sampled format:Unknown
240: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone)
237: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 238 16 27 235 16 37 239 240 17
241: TypePointer UniformConstant 236
242: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 237 16 16
243(displacementMapTexture): 241(ptr) Variable UniformConstant
246: 11(int) Constant 8
244: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 245 237 27 235 16 37 245 243(displacementMapTexture) 246
248: TypeSampler
249: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 250 36 27 235 16 37 251 240 17
252: TypePointer UniformConstant 248
253: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 249 16 16
254(displacementMapSampler): 252(ptr) Variable UniformConstant
255: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 256 249 27 235 16 37 256 254(displacementMapSampler) 246
258: TypeSampledImage 236
259: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 260 16 27 235 16 37 261 240 17
267: TypeMatrix 46(fvec4) 4
269: TypeBool
271: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 270 14 21 16
272: 269(bool) ConstantTrue
268: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 47 18 272
273: TypeArray 46(fvec4) 15
274: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 47 15
275(UBO): TypeStruct 267 267 46(fvec4) 273 8(float) 8(float) 42(fvec2) 8(float)
278: 11(int) Constant 29
279: 11(int) Constant 20
276: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 277 268 27 278 279 16 16 17
280: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 277 268 27 278 279 16 16 17
283: 11(int) Constant 30
284: 11(int) Constant 17
281: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 282 47 27 283 284 16 16 17
287: 11(int) Constant 22
285: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 286 274 27 61 287 16 16 17
290: 11(int) Constant 27
288: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 289 10 27 57 290 16 16 17
291: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 289 10 27 57 290 16 16 17
294: 11(int) Constant 34
292: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 293 43 27 294 279 16 16 17
295: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 289 10 27 57 290 16 16 17
296: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 297 36 27 235 16 37 297 16 17 276 280 281 285 288 291 292 295
298(ubo): TypeStruct 275(UBO)
299: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 300 296 27 73 73 16 16 17
301: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 300 36 27 235 16 37 300 16 17 299
302: TypePointer Uniform 298(ubo)
303: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 301 21 16
304: 302(ptr) Variable Uniform
305: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 1 301 27 235 16 37 1 304 246
306: 125(int) Constant 4
307: TypePointer Uniform 8(float)
308: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 21 16
195: TypePointer Function 46(fvec4)
196: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 47 40 16
200: 11(int) Constant 80
198: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 199 47 27 200 16 90 18
212: 11(int) Constant 81
210: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 211 47 27 212 16 90 18
224: 11(int) Constant 82
222: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(DebugLocalVariable) 223 47 27 224 16 90 18
233: TypeImage 8(float) 2D sampled format:Unknown
236: 11(int) Constant 84
238: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 0(DebugInfoNone)
234: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 235 16 27 236 16 37 237 238 17
239: TypePointer UniformConstant 233
240: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 234 16 16
241(displacementMapTexture): 239(ptr) Variable UniformConstant
244: 11(int) Constant 8
242: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 243 234 27 236 16 37 243 241(displacementMapTexture) 244
247: TypeSampler
248: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 249 36 27 236 16 37 250 238 17
251: TypePointer UniformConstant 247
252: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 248 16 16
253(displacementMapSampler): 251(ptr) Variable UniformConstant
254: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 255 248 27 236 16 37 255 253(displacementMapSampler) 244
257: TypeSampledImage 233
258: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 259 16 27 236 16 37 260 238 17
266: TypeMatrix 46(fvec4) 4
268: TypeBool
270: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(DebugTypeBasic) 269 14 21 16
271: 268(bool) ConstantTrue
267: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 108(DebugTypeMatrix) 47 18 271
272: TypeArray 46(fvec4) 15
273: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(DebugTypeArray) 47 15
274(UBO): TypeStruct 266 266 46(fvec4) 272 8(float) 8(float) 42(fvec2) 8(float)
277: 11(int) Constant 29
278: 11(int) Constant 20
275: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 276 267 27 277 278 16 16 17
279: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 276 267 27 277 278 16 16 17
282: 11(int) Constant 30
283: 11(int) Constant 17
280: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 281 47 27 282 283 16 16 17
286: 11(int) Constant 22
284: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 285 273 27 61 286 16 16 17
289: 11(int) Constant 27
287: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 288 10 27 57 289 16 16 17
290: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 288 10 27 57 289 16 16 17
293: 11(int) Constant 34
291: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 292 43 27 293 278 16 16 17
294: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 288 10 27 57 289 16 16 17
295: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 296 36 27 236 16 37 296 16 17 275 279 280 284 287 290 291 294
297(ubo): TypeStruct 274(UBO)
298: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(DebugTypeMember) 299 295 27 73 73 16 16 17
300: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(DebugTypeComposite) 299 36 27 236 16 37 299 16 17 298
301: TypePointer Uniform 297(ubo)
302: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 300 21 16
303: 301(ptr) Variable Uniform
304: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(DebugGlobalVariable) 2 300 27 236 16 37 2 303 244
305: 124(int) Constant 4
306: TypePointer Uniform 8(float)
307: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 10 21 16
317: 11(int) Constant 86
319: TypePointer Uniform 267
320: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 268 21 16
318: TypePointer Uniform 266
319: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 267 21 16
329: 11(int) Constant 89
335: 11(int) Constant 90
336: TypePointer Uniform 46(fvec4)
337: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 47 21 16
347: 11(int) Constant 91
348: 125(int) Constant 6
353: 11(int) Constant 92
354: 125(int) Constant 5
333: TypePointer Uniform 46(fvec4)
334: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 3(DebugTypePointer) 47 21 16
337: 11(int) Constant 90
345: 124(int) Constant 6
348: 11(int) Constant 91
351: 124(int) Constant 5
354: 11(int) Constant 92
362: 11(int) Constant 93
367: TypePointer Input 19
368(input.TessLevelOuter): 367(ptr) Variable Input
@ -359,92 +359,90 @@ spv.debuginfo.hlsl.tese
468(@entryPointOutput.LightVec): 457(ptr) Variable Output
471(@entryPointOutput.EyePos): 457(ptr) Variable Output
474(@entryPointOutput.WorldPos): 457(ptr) Variable Output
Line 1 68 1
6(main): 4 Function None 5
7: Label
366(input): 39(ptr) Variable Function
390(TessCoord): 44(ptr) Variable Function
398(patch): 397(ptr) Variable Function
446(flattenTemp): 108(ptr) Variable Function
446(flattenTemp): 105(ptr) Variable Function
448(param): 39(ptr) Variable Function
450(param): 44(ptr) Variable Function
Line 1 68 0
370: 369(ptr) AccessChain 368(input.TessLevelOuter) 128
370: 369(ptr) AccessChain 368(input.TessLevelOuter) 127
371: 8(float) Load 370
372: 133(ptr) AccessChain 366(input) 128 128
372: 132(ptr) AccessChain 366(input) 127 127
Store 372 371
373: 369(ptr) AccessChain 368(input.TessLevelOuter) 131
373: 369(ptr) AccessChain 368(input.TessLevelOuter) 130
374: 8(float) Load 373
375: 133(ptr) AccessChain 366(input) 128 131
375: 132(ptr) AccessChain 366(input) 127 130
Store 375 374
376: 369(ptr) AccessChain 368(input.TessLevelOuter) 129
376: 369(ptr) AccessChain 368(input.TessLevelOuter) 128
377: 8(float) Load 376
378: 133(ptr) AccessChain 366(input) 128 129
378: 132(ptr) AccessChain 366(input) 127 128
Store 378 377
379: 369(ptr) AccessChain 368(input.TessLevelOuter) 145
379: 369(ptr) AccessChain 368(input.TessLevelOuter) 144
380: 8(float) Load 379
381: 133(ptr) AccessChain 366(input) 128 145
381: 132(ptr) AccessChain 366(input) 127 144
Store 381 380
384: 369(ptr) AccessChain 383(input.TessLevelInner) 128
384: 369(ptr) AccessChain 383(input.TessLevelInner) 127
385: 8(float) Load 384
386: 133(ptr) AccessChain 366(input) 131 128
386: 132(ptr) AccessChain 366(input) 130 127
Store 386 385
387: 369(ptr) AccessChain 383(input.TessLevelInner) 131
387: 369(ptr) AccessChain 383(input.TessLevelInner) 130
388: 8(float) Load 387
389: 133(ptr) AccessChain 366(input) 131 131
389: 132(ptr) AccessChain 366(input) 130 130
Store 389 388
393: 48(fvec3) Load 392(TessCoord)
394: 8(float) CompositeExtract 393 0
395: 8(float) CompositeExtract 393 1
396: 42(fvec2) CompositeConstruct 394 395
Store 390(TessCoord) 396
403: 402(ptr) AccessChain 401(patch.Pos) 128
403: 402(ptr) AccessChain 401(patch.Pos) 127
404: 46(fvec4) Load 403
405: 198(ptr) AccessChain 398(patch) 128 128
405: 195(ptr) AccessChain 398(patch) 127 127
Store 405 404
409: 391(ptr) AccessChain 408(patch.Normal) 128
409: 391(ptr) AccessChain 408(patch.Normal) 127
410: 48(fvec3) Load 409
411: 163(ptr) AccessChain 398(patch) 128 131
411: 160(ptr) AccessChain 398(patch) 127 130
Store 411 410
416: 415(ptr) AccessChain 414(patch.UV) 128
416: 415(ptr) AccessChain 414(patch.UV) 127
417: 42(fvec2) Load 416
418: 44(ptr) AccessChain 398(patch) 128 129
418: 44(ptr) AccessChain 398(patch) 127 128
Store 418 417
419: 402(ptr) AccessChain 401(patch.Pos) 131
419: 402(ptr) AccessChain 401(patch.Pos) 130
420: 46(fvec4) Load 419
421: 198(ptr) AccessChain 398(patch) 131 128
421: 195(ptr) AccessChain 398(patch) 130 127
Store 421 420
422: 391(ptr) AccessChain 408(patch.Normal) 131
422: 391(ptr) AccessChain 408(patch.Normal) 130
423: 48(fvec3) Load 422
424: 163(ptr) AccessChain 398(patch) 131 131
424: 160(ptr) AccessChain 398(patch) 130 130
Store 424 423
425: 415(ptr) AccessChain 414(patch.UV) 131
425: 415(ptr) AccessChain 414(patch.UV) 130
426: 42(fvec2) Load 425
427: 44(ptr) AccessChain 398(patch) 131 129
427: 44(ptr) AccessChain 398(patch) 130 128
Store 427 426
428: 402(ptr) AccessChain 401(patch.Pos) 129
428: 402(ptr) AccessChain 401(patch.Pos) 128
429: 46(fvec4) Load 428
430: 198(ptr) AccessChain 398(patch) 129 128
430: 195(ptr) AccessChain 398(patch) 128 127
Store 430 429
431: 391(ptr) AccessChain 408(patch.Normal) 129
431: 391(ptr) AccessChain 408(patch.Normal) 128
432: 48(fvec3) Load 431
433: 163(ptr) AccessChain 398(patch) 129 131
433: 160(ptr) AccessChain 398(patch) 128 130
Store 433 432
434: 415(ptr) AccessChain 414(patch.UV) 129
434: 415(ptr) AccessChain 414(patch.UV) 128
435: 42(fvec2) Load 434
436: 44(ptr) AccessChain 398(patch) 129 129
436: 44(ptr) AccessChain 398(patch) 128 128
Store 436 435
437: 402(ptr) AccessChain 401(patch.Pos) 145
437: 402(ptr) AccessChain 401(patch.Pos) 144
438: 46(fvec4) Load 437
439: 198(ptr) AccessChain 398(patch) 145 128
439: 195(ptr) AccessChain 398(patch) 144 127
Store 439 438
440: 391(ptr) AccessChain 408(patch.Normal) 145
440: 391(ptr) AccessChain 408(patch.Normal) 144
441: 48(fvec3) Load 440
442: 163(ptr) AccessChain 398(patch) 145 131
442: 160(ptr) AccessChain 398(patch) 144 130
Store 442 441
443: 415(ptr) AccessChain 414(patch.UV) 145
443: 415(ptr) AccessChain 414(patch.UV) 144
444: 42(fvec2) Load 443
445: 44(ptr) AccessChain 398(patch) 145 129
445: 44(ptr) AccessChain 398(patch) 144 128
Store 445 444
447: 64 Load 398(patch)
449:24(ConstantsHSOutput) Load 366(input)
@ -453,190 +451,188 @@ spv.debuginfo.hlsl.tese
Store 450(param) 451
452:66(DSOutput) FunctionCall 87(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];) 448(param) 450(param) 447
Store 446(flattenTemp) 452
455: 198(ptr) AccessChain 446(flattenTemp) 128
455: 195(ptr) AccessChain 446(flattenTemp) 127
456: 46(fvec4) Load 455
Store 454(@entryPointOutput.Pos) 456
459: 163(ptr) AccessChain 446(flattenTemp) 131
459: 160(ptr) AccessChain 446(flattenTemp) 130
460: 48(fvec3) Load 459
Store 458(@entryPointOutput.Normal) 460
463: 44(ptr) AccessChain 446(flattenTemp) 129
463: 44(ptr) AccessChain 446(flattenTemp) 128
464: 42(fvec2) Load 463
Store 462(@entryPointOutput.UV) 464
466: 163(ptr) AccessChain 446(flattenTemp) 145
466: 160(ptr) AccessChain 446(flattenTemp) 144
467: 48(fvec3) Load 466
Store 465(@entryPointOutput.ViewVec) 467
469: 163(ptr) AccessChain 446(flattenTemp) 306
469: 160(ptr) AccessChain 446(flattenTemp) 305
470: 48(fvec3) Load 469
Store 468(@entryPointOutput.LightVec) 470
472: 163(ptr) AccessChain 446(flattenTemp) 354
472: 160(ptr) AccessChain 446(flattenTemp) 351
473: 48(fvec3) Load 472
Store 471(@entryPointOutput.EyePos) 473
475: 163(ptr) AccessChain 446(flattenTemp) 348
475: 160(ptr) AccessChain 446(flattenTemp) 345
476: 48(fvec3) Load 475
Store 474(@entryPointOutput.WorldPos) 476
Return
FunctionEnd
Line 1 68 1
87(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];):66(DSOutput) Function None 82
84(input): 39(ptr) FunctionParameter
85(TessCoord): 44(ptr) FunctionParameter
86(patch): 64 FunctionParameter
88: Label
110(output): 108(ptr) Variable Function
121(uv1): 44(ptr) Variable Function
141(uv2): 44(ptr) Variable Function
165(n1): 163(ptr) Variable Function
177(n2): 163(ptr) Variable Function
200(pos1): 198(ptr) Variable Function
212(pos2): 198(ptr) Variable Function
224(pos): 198(ptr) Variable Function
92: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 90
93: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 91 91 16 16
96: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 94 84(input) 97
100: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 98 85(TessCoord) 97
103: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 101 86(patch) 97
104: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 90 87(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];)
105: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 90
106: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 107 107 16 16
113: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 111 110(output) 97
Store 110(output) 118
119: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 120 120 16 16
124: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 122 121(uv1) 97
130: 42(fvec2) CompositeExtract 86(patch) 0 2
132: 42(fvec2) CompositeExtract 86(patch) 1 2
135: 133(ptr) AccessChain 85(TessCoord) 16
136: 8(float) Load 135
137: 42(fvec2) CompositeConstruct 136 136
138: 42(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 130 132 137
Store 121(uv1) 138
139: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 140 140 16 16
144: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 142 141(uv2) 97
146: 42(fvec2) CompositeExtract 86(patch) 3 2
147: 42(fvec2) CompositeExtract 86(patch) 2 2
148: 133(ptr) AccessChain 85(TessCoord) 16
149: 8(float) Load 148
150: 42(fvec2) CompositeConstruct 149 149
151: 42(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 146 147 150
Store 141(uv2) 151
152: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 153 153 16 16
154: 42(fvec2) Load 121(uv1)
155: 42(fvec2) Load 141(uv2)
156: 133(ptr) AccessChain 85(TessCoord) 36
157: 8(float) Load 156
158: 42(fvec2) CompositeConstruct 157 157
159: 42(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 154 155 158
160: 44(ptr) AccessChain 110(output) 129
Store 160 159
161: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 162 162 16 16
168: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 166 165(n1) 97
169: 48(fvec3) CompositeExtract 86(patch) 0 1
170: 48(fvec3) CompositeExtract 86(patch) 1 1
171: 133(ptr) AccessChain 85(TessCoord) 16
172: 8(float) Load 171
173: 48(fvec3) CompositeConstruct 172 172 172
174: 48(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 169 170 173
Store 165(n1) 174
175: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 176 176 16 16
180: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 178 177(n2) 97
181: 48(fvec3) CompositeExtract 86(patch) 3 1
182: 48(fvec3) CompositeExtract 86(patch) 2 1
183: 133(ptr) AccessChain 85(TessCoord) 16
184: 8(float) Load 183
185: 48(fvec3) CompositeConstruct 184 184 184
186: 48(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 181 182 185
Store 177(n2) 186
187: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 188 188 16 16
189: 48(fvec3) Load 165(n1)
190: 48(fvec3) Load 177(n2)
191: 133(ptr) AccessChain 85(TessCoord) 36
192: 8(float) Load 191
193: 48(fvec3) CompositeConstruct 192 192 192
194: 48(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 189 190 193
195: 163(ptr) AccessChain 110(output) 131
Store 195 194
196: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 197 197 16 16
203: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 201 200(pos1) 97
204: 46(fvec4) CompositeExtract 86(patch) 0 0
205: 46(fvec4) CompositeExtract 86(patch) 1 0
206: 133(ptr) AccessChain 85(TessCoord) 16
207: 8(float) Load 206
208: 46(fvec4) CompositeConstruct 207 207 207 207
209: 46(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 204 205 208
Store 200(pos1) 209
210: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 211 211 16 16
215: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 213 212(pos2) 97
216: 46(fvec4) CompositeExtract 86(patch) 3 0
217: 46(fvec4) CompositeExtract 86(patch) 2 0
218: 133(ptr) AccessChain 85(TessCoord) 16
219: 8(float) Load 218
220: 46(fvec4) CompositeConstruct 219 219 219 219
221: 46(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 216 217 220
Store 212(pos2) 221
222: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 223 223 16 16
227: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 225 224(pos) 97
228: 46(fvec4) Load 200(pos1)
229: 46(fvec4) Load 212(pos2)
230: 133(ptr) AccessChain 85(TessCoord) 36
231: 8(float) Load 230
232: 46(fvec4) CompositeConstruct 231 231 231 231
233: 46(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 228 229 232
Store 224(pos) 233
234: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 235 235 16 16
247: 236 Load 243(displacementMapTexture)
257: 248 Load 254(displacementMapSampler)
262: 258 SampledImage 247 257
263: 44(ptr) AccessChain 110(output) 129
264: 42(fvec2) Load 263
265: 46(fvec4) ImageSampleExplicitLod 262 264 Lod 114
266: 8(float) CompositeExtract 265 0
309: 307(ptr) AccessChain 304 128 306
310: 8(float) Load 309
311: 8(float) FMul 266 310
312: 133(ptr) AccessChain 224(pos) 36
313: 8(float) Load 312
314: 8(float) FSub 313 311
315: 133(ptr) AccessChain 224(pos) 36
Store 315 314
316: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 317 317 16 16
318: 46(fvec4) Load 224(pos)
321: 319(ptr) AccessChain 304 128 131
322: 267 Load 321
323: 46(fvec4) VectorTimesMatrix 318 322
324: 319(ptr) AccessChain 304 128 128
325: 267 Load 324
326: 46(fvec4) VectorTimesMatrix 323 325
327: 198(ptr) AccessChain 110(output) 128
Store 327 326
328: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 329 329 16 16
330: 46(fvec4) Load 224(pos)
331: 48(fvec3) VectorShuffle 330 330 0 1 2
332: 48(fvec3) FNegate 331
333: 163(ptr) AccessChain 110(output) 145
Store 333 332
334: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 335 335 16 16
338: 336(ptr) AccessChain 304 128 129
339: 46(fvec4) Load 338
340: 48(fvec3) VectorShuffle 339 339 0 1 2
341: 163(ptr) AccessChain 110(output) 145
342: 48(fvec3) Load 341
343: 48(fvec3) FAdd 340 342
344: 48(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 343
345: 163(ptr) AccessChain 110(output) 306
Store 345 344
346: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 347 347 16 16
349: 46(fvec4) Load 224(pos)
350: 48(fvec3) VectorShuffle 349 349 0 1 2
351: 163(ptr) AccessChain 110(output) 348
Store 351 350
352: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 353 353 16 16
355: 46(fvec4) Load 224(pos)
356: 319(ptr) AccessChain 304 128 131
357: 267 Load 356
358: 46(fvec4) VectorTimesMatrix 355 357
359: 48(fvec3) VectorShuffle 358 358 0 1 2
360: 163(ptr) AccessChain 110(output) 354
Store 360 359
361: 4 ExtInst 2(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 362 362 16 16
363:66(DSOutput) Load 110(output)
ReturnValue 363
107(output): 105(ptr) Variable Function
118(uv1): 44(ptr) Variable Function
138(uv2): 44(ptr) Variable Function
162(n1): 160(ptr) Variable Function
174(n2): 160(ptr) Variable Function
197(pos1): 195(ptr) Variable Function
209(pos2): 195(ptr) Variable Function
221(pos): 195(ptr) Variable Function
96: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 23(DebugScope) 90
97: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 91 91 16 16
94: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 92 84(input) 95
100: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 98 85(TessCoord) 95
103: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 101 86(patch) 95
104: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101(DebugFunctionDefinition) 90 87(@main(struct-ConstantsHSOutput-f1[4]-f1[2]1;vf2;struct-HSOutput-vf4-vf3-vf21[4];)
112: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 110 110 16 16
111: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 108 107(output) 95
Store 107(output) 117
123: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 121 121 16 16
122: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 119 118(uv1) 95
129: 42(fvec2) CompositeExtract 86(patch) 0 2
131: 42(fvec2) CompositeExtract 86(patch) 1 2
134: 132(ptr) AccessChain 85(TessCoord) 16
135: 8(float) Load 134
136: 42(fvec2) CompositeConstruct 135 135
137: 42(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 129 131 136
Store 118(uv1) 137
143: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 141 141 16 16
142: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 139 138(uv2) 95
145: 42(fvec2) CompositeExtract 86(patch) 3 2
146: 42(fvec2) CompositeExtract 86(patch) 2 2
147: 132(ptr) AccessChain 85(TessCoord) 16
148: 8(float) Load 147
149: 42(fvec2) CompositeConstruct 148 148
150: 42(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 145 146 149
Store 138(uv2) 150
152: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 153 153 16 16
151: 42(fvec2) Load 118(uv1)
154: 42(fvec2) Load 138(uv2)
155: 132(ptr) AccessChain 85(TessCoord) 36
156: 8(float) Load 155
157: 42(fvec2) CompositeConstruct 156 156
158: 42(fvec2) ExtInst 3(GLSL.std.450) 46(FMix) 151 154 157
159: 44(ptr) AccessChain 107(output) 128
Store 159 158
167: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 165 165 16 16
166: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 163 162(n1) 95
168: 48(fvec3) CompositeExtract 86(patch) 0 1
169: 48(fvec3) CompositeExtract 86(patch) 1 1
170: 132(ptr) AccessChain 85(TessCoord) 16
171: 8(float) Load 170
172: 48(fvec3) CompositeConstruct 171 171 171
173: 48(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 168 169 172
Store 162(n1) 173
179: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 177 177 16 16
178: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 175 174(n2) 95
180: 48(fvec3) CompositeExtract 86(patch) 3 1
181: 48(fvec3) CompositeExtract 86(patch) 2 1
182: 132(ptr) AccessChain 85(TessCoord) 16
183: 8(float) Load 182
184: 48(fvec3) CompositeConstruct 183 183 183
185: 48(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 180 181 184
Store 174(n2) 185
187: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 188 188 16 16
186: 48(fvec3) Load 162(n1)
189: 48(fvec3) Load 174(n2)
190: 132(ptr) AccessChain 85(TessCoord) 36
191: 8(float) Load 190
192: 48(fvec3) CompositeConstruct 191 191 191
193: 48(fvec3) ExtInst 3(GLSL.std.450) 46(FMix) 186 189 192
194: 160(ptr) AccessChain 107(output) 130
Store 194 193
202: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 200 200 16 16
201: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 198 197(pos1) 95
203: 46(fvec4) CompositeExtract 86(patch) 0 0
204: 46(fvec4) CompositeExtract 86(patch) 1 0
205: 132(ptr) AccessChain 85(TessCoord) 16
206: 8(float) Load 205
207: 46(fvec4) CompositeConstruct 206 206 206 206
208: 46(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 203 204 207
Store 197(pos1) 208
214: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 212 212 16 16
213: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 210 209(pos2) 95
215: 46(fvec4) CompositeExtract 86(patch) 3 0
216: 46(fvec4) CompositeExtract 86(patch) 2 0
217: 132(ptr) AccessChain 85(TessCoord) 16
218: 8(float) Load 217
219: 46(fvec4) CompositeConstruct 218 218 218 218
220: 46(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 215 216 219
Store 209(pos2) 220
226: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 224 224 16 16
225: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(DebugDeclare) 222 221(pos) 95
227: 46(fvec4) Load 197(pos1)
228: 46(fvec4) Load 209(pos2)
229: 132(ptr) AccessChain 85(TessCoord) 36
230: 8(float) Load 229
231: 46(fvec4) CompositeConstruct 230 230 230 230
232: 46(fvec4) ExtInst 3(GLSL.std.450) 46(FMix) 227 228 231
Store 221(pos) 232
246: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 236 236 16 16
245: 233 Load 241(displacementMapTexture)
256: 247 Load 253(displacementMapSampler)
261: 257 SampledImage 245 256
262: 44(ptr) AccessChain 107(output) 128
263: 42(fvec2) Load 262
264: 46(fvec4) ImageSampleExplicitLod 261 263 Lod 113
265: 8(float) CompositeExtract 264 0
308: 306(ptr) AccessChain 303 127 305
309: 8(float) Load 308
310: 8(float) FMul 265 309
311: 132(ptr) AccessChain 221(pos) 36
312: 8(float) Load 311
313: 8(float) FSub 312 310
314: 132(ptr) AccessChain 221(pos) 36
Store 314 313
316: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 317 317 16 16
315: 46(fvec4) Load 221(pos)
320: 318(ptr) AccessChain 303 127 130
321: 266 Load 320
322: 46(fvec4) VectorTimesMatrix 315 321
323: 318(ptr) AccessChain 303 127 127
324: 266 Load 323
325: 46(fvec4) VectorTimesMatrix 322 324
326: 195(ptr) AccessChain 107(output) 127
Store 326 325
328: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 329 329 16 16
327: 46(fvec4) Load 221(pos)
330: 48(fvec3) VectorShuffle 327 327 0 1 2
331: 48(fvec3) FNegate 330
332: 160(ptr) AccessChain 107(output) 144
Store 332 331
336: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 337 337 16 16
335: 333(ptr) AccessChain 303 127 128
338: 46(fvec4) Load 335
339: 48(fvec3) VectorShuffle 338 338 0 1 2
340: 160(ptr) AccessChain 107(output) 144
341: 48(fvec3) Load 340
342: 48(fvec3) FAdd 339 341
343: 48(fvec3) ExtInst 3(GLSL.std.450) 69(Normalize) 342
344: 160(ptr) AccessChain 107(output) 305
Store 344 343
347: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 348 348 16 16
346: 46(fvec4) Load 221(pos)
349: 48(fvec3) VectorShuffle 346 346 0 1 2
350: 160(ptr) AccessChain 107(output) 345
Store 350 349
353: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 354 354 16 16
352: 46(fvec4) Load 221(pos)
355: 318(ptr) AccessChain 303 127 130
356: 266 Load 355
357: 46(fvec4) VectorTimesMatrix 352 356
358: 48(fvec3) VectorShuffle 357 357 0 1 2
359: 160(ptr) AccessChain 107(output) 351
Store 359 358
361: 4 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 103(DebugLine) 27 362 362 16 16
360:66(DSOutput) Load 107(output)
ReturnValue 360
FunctionEnd