Use DebugDeclare for local variables

Previously we had decided to issue DebugValue directly in glslang.
However, this was incorrect and causing issues with RenderDoc.
This commit is contained in:
Jeremy Hayes
2022-09-23 09:17:44 -06:00
parent c0cf8ad876
commit ee442785dd
13 changed files with 5235 additions and 5347 deletions

View File

@@ -9,7 +9,7 @@ Validation failed
1: ExtInstImport "NonSemantic.Shader.DebugInfo.100"
2: ExtInstImport "GLSL.std.450"
MemoryModel Logical GLSL450
EntryPoint TessellationEvaluation 13 "main" 37 54 80 98 124 159 267 279 286 297 303
EntryPoint TessellationEvaluation 13 "main" 39 56 80 99 124 160 267 279 286 297 303
ExecutionMode 13 Quads
ExecutionMode 13 SpacingEqual
ExecutionMode 13 VertexOrderCw
@@ -18,21 +18,21 @@ Validation failed
17: String ""
25: String "float"
32: String "uv1"
39: String "inUV"
42: String "int"
56: String "gl_TessCoord"
41: String "inUV"
44: String "int"
58: String "gl_TessCoord"
66: String "uv2"
82: String "outUV"
93: String "n1"
100: String "inNormal"
101: String "inNormal"
112: String "n2"
126: String "outNormal"
139: String "pos1"
145: String "gl_Position"
148: String "gl_PointSize"
151: String "gl_CullDistance"
155: String "gl_PerVertex"
161: String "gl_in"
146: String "gl_Position"
149: String "gl_PointSize"
152: String "gl_CullDistance"
156: String "gl_PerVertex"
162: String "gl_in"
174: String "pos2"
187: String "pos"
198: String "type.2d.image"
@@ -53,21 +53,21 @@ Validation failed
305: String "outEyePos"
Name 13 "main"
Name 30 "uv1"
Name 37 "inUV"
Name 54 "gl_TessCoord"
Name 39 "inUV"
Name 56 "gl_TessCoord"
Name 64 "uv2"
Name 80 "outUV"
Name 91 "n1"
Name 98 "inNormal"
Name 99 "inNormal"
Name 110 "n2"
Name 124 "outNormal"
Name 137 "pos1"
Name 143 "gl_PerVertex"
MemberName 143(gl_PerVertex) 0 "gl_Position"
MemberName 143(gl_PerVertex) 1 "gl_PointSize"
MemberName 143(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 143(gl_PerVertex) 3 "gl_CullDistance"
Name 159 "gl_in"
Name 144 "gl_PerVertex"
MemberName 144(gl_PerVertex) 0 "gl_Position"
MemberName 144(gl_PerVertex) 1 "gl_PointSize"
MemberName 144(gl_PerVertex) 2 "gl_ClipDistance"
MemberName 144(gl_PerVertex) 3 "gl_CullDistance"
Name 160 "gl_in"
Name 172 "pos2"
Name 185 "pos"
Name 207 "displacementMap"
@@ -91,16 +91,16 @@ Validation failed
Name 286 "outLightVec"
Name 297 "outWorldPos"
Name 303 "outEyePos"
Decorate 37(inUV) Location 1
Decorate 54(gl_TessCoord) BuiltIn TessCoord
Decorate 39(inUV) Location 1
Decorate 56(gl_TessCoord) BuiltIn TessCoord
Decorate 80(outUV) Location 1
Decorate 98(inNormal) Location 0
Decorate 99(inNormal) Location 0
Decorate 124(outNormal) Location 0
MemberDecorate 143(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 143(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 143(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 143(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 143(gl_PerVertex) Block
MemberDecorate 144(gl_PerVertex) 0 BuiltIn Position
MemberDecorate 144(gl_PerVertex) 1 BuiltIn PointSize
MemberDecorate 144(gl_PerVertex) 2 BuiltIn ClipDistance
MemberDecorate 144(gl_PerVertex) 3 BuiltIn CullDistance
Decorate 144(gl_PerVertex) Block
Decorate 207(displacementMap) DescriptorSet 0
Decorate 207(displacementMap) Binding 1
Decorate 219 ArrayStride 16
@@ -150,68 +150,68 @@ Validation failed
29: TypePointer Function 27(fvec2)
33: 6(int) Constant 56
31: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 32 28 16 33 11 15 20
34: TypeArray 27(fvec2) 9
35: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 28 9
36: TypePointer Input 34
37(inUV): 36(ptr) Variable Input
40: 6(int) Constant 8
38: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 39 35 16 33 11 18 39 37(inUV) 40
41: TypeInt 32 1
43: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 42 9 20 11
44: 41(int) Constant 0
45: TypePointer Input 27(fvec2)
48: 41(int) Constant 1
51: TypeVector 24(float) 3
52: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(FSign) 26 12
53: TypePointer Input 51(fvec3)
54(gl_TessCoord): 53(ptr) Variable Input
55: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 56 52 16 33 11 18 56 54(gl_TessCoord) 40
57: TypePointer Input 24(float)
63: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(Sqrt)
35: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 31(Sqrt)
36: TypeArray 27(fvec2) 9
37: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 28 9
38: TypePointer Input 36
39(inUV): 38(ptr) Variable Input
42: 6(int) Constant 8
40: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 41 37 16 33 11 18 41 39(inUV) 42
43: TypeInt 32 1
45: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 2(RoundEven) 44 9 20 11
46: 43(int) Constant 0
47: TypePointer Input 27(fvec2)
50: 43(int) Constant 1
53: TypeVector 24(float) 3
54: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(FSign) 26 12
55: TypePointer Input 53(fvec3)
56(gl_TessCoord): 55(ptr) Variable Input
57: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 58 54 16 33 11 18 58 56(gl_TessCoord) 42
59: TypePointer Input 24(float)
67: 6(int) Constant 57
65: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 66 28 16 67 11 15 20
68: 41(int) Constant 3
71: 41(int) Constant 2
69: 43(int) Constant 3
72: 43(int) Constant 2
79: TypePointer Output 27(fvec2)
80(outUV): 79(ptr) Variable Output
83: 6(int) Constant 58
81: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 82 28 16 83 11 18 82 80(outUV) 40
90: TypePointer Function 51(fvec3)
81: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 82 28 16 83 11 18 82 80(outUV) 42
90: TypePointer Function 53(fvec3)
94: 6(int) Constant 60
92: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 93 52 16 94 11 15 20
95: TypeArray 51(fvec3) 9
96: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 52 9
97: TypePointer Input 95
98(inNormal): 97(ptr) Variable Input
99: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 100 96 16 94 11 18 100 98(inNormal) 40
92: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 93 54 16 94 11 15 20
96: TypeArray 53(fvec3) 9
97: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 54 9
98: TypePointer Input 96
99(inNormal): 98(ptr) Variable Input
100: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 101 97 16 94 11 18 101 99(inNormal) 42
113: 6(int) Constant 61
111: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 112 52 16 113 11 15 20
123: TypePointer Output 51(fvec3)
111: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 112 54 16 113 11 15 20
123: TypePointer Output 53(fvec3)
124(outNormal): 123(ptr) Variable Output
127: 6(int) Constant 62
125: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 126 52 16 127 11 18 126 124(outNormal) 40
125: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 126 54 16 127 11 18 126 124(outNormal) 42
134: TypeVector 24(float) 4
135: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 6(FSign) 26 20
136: TypePointer Function 134(fvec4)
140: 6(int) Constant 65
138: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 139 135 16 140 11 15 20
141: TypeArray 24(float) 19
142: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 26 19
143(gl_PerVertex): TypeStruct 134(fvec4) 24(float) 141 141
146: 6(int) Constant 1756
144: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 145 135 16 19 146 11 11 12
149: 6(int) Constant 1774
147: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 148 26 16 19 149 11 11 12
152: 6(int) Constant 1817
150: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 151 142 16 19 152 11 11 12
153: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 151 142 16 19 152 11 11 12
154: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 155 19 16 140 11 18 155 11 12 144 147 150 153
156: TypeArray 143(gl_PerVertex) 9
157: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 154 9
158: TypePointer Input 156
159(gl_in): 158(ptr) Variable Input
160: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 161 157 16 140 11 18 161 159(gl_in) 40
162: TypePointer Input 134(fvec4)
142: TypeArray 24(float) 19
143: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 26 19
144(gl_PerVertex): TypeStruct 134(fvec4) 24(float) 142 142
147: 6(int) Constant 1756
145: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 146 135 16 19 147 11 11 12
150: 6(int) Constant 1774
148: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 149 26 16 19 150 11 11 12
153: 6(int) Constant 1817
151: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 152 143 16 19 153 11 11 12
154: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 152 143 16 19 153 11 11 12
155: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 156 19 16 140 11 18 156 11 12 145 148 151 154
157: TypeArray 144(gl_PerVertex) 9
158: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 5(SAbs) 155 9
159: TypePointer Input 157
160(gl_in): 159(ptr) Variable Input
161: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 162 158 16 140 11 18 162 160(gl_in) 42
163: TypePointer Input 134(fvec4)
175: 6(int) Constant 66
173: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 26(Pow) 174 135 16 175 11 15 20
188: 6(int) Constant 67
@@ -224,7 +224,7 @@ Validation failed
203: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 204 11 16 199 11 18 205 201 12
206: TypePointer UniformConstant 202
207(displacementMap): 206(ptr) Variable UniformConstant
208: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 209 203 16 199 11 18 209 207(displacementMap) 40
208: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 209 203 16 199 11 18 209 207(displacementMap) 42
212: 24(float) Constant 0
215: TypeMatrix 134(fvec4) 4
217: TypeBool
@@ -241,46 +241,46 @@ Validation failed
227: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 228 135 16 229 225 11 11 12
230: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 231 220 16 9 225 11 11 12
234: 6(int) Constant 36
232: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 233 26 16 234 40 11 11 12
235: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 233 26 16 234 40 11 11 12
232: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 233 26 16 234 42 11 11 12
235: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 233 26 16 234 42 11 11 12
238: 6(int) Constant 35
236: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 237 28 16 238 225 11 11 12
239: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 233 26 16 234 40 11 11 12
239: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 233 26 16 234 42 11 11 12
240: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 241 19 16 199 11 18 241 11 12 222 226 227 230 232 235 236 239
242: TypePointer Uniform 221(UBO)
243(ubo): 242(ptr) Variable Uniform
244: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 245 240 16 199 11 18 245 243(ubo) 40
246: 41(int) Constant 4
244: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 245 240 16 199 11 18 245 243(ubo) 42
246: 43(int) Constant 4
247: TypePointer Uniform 24(float)
251: TypePointer Function 24(float)
256(gl_PerVertex): TypeStruct 134(fvec4) 24(float) 141 141
256(gl_PerVertex): TypeStruct 134(fvec4) 24(float) 142 142
258: 6(int) Constant 165
257: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 145 135 16 19 258 11 11 12
257: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 146 135 16 19 258 11 11 12
260: 6(int) Constant 183
259: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 148 26 16 19 260 11 11 12
259: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 149 26 16 19 260 11 11 12
262: 6(int) Constant 226
261: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 151 142 16 19 262 11 11 12
263: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 151 142 16 19 262 11 11 12
261: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 152 143 16 19 262 11 11 12
263: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 11(Radians) 152 143 16 19 262 11 11 12
265: 6(int) Constant 71
264: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 155 19 16 265 11 18 155 11 12 257 259 261 263
264: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 10(Fract) 156 19 16 265 11 18 156 11 12 257 259 261 263
266: TypePointer Output 256(gl_PerVertex)
267: 266(ptr) Variable Output
268: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 17 264 16 265 11 18 17 267 40
268: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 17 264 16 265 11 18 17 267 42
269: TypePointer Uniform 215
277: TypePointer Output 134(fvec4)
279(outViewVec): 123(ptr) Variable Output
282: 6(int) Constant 74
280: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 281 52 16 282 11 18 281 279(outViewVec) 40
280: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 281 54 16 282 11 18 281 279(outViewVec) 42
286(outLightVec): 123(ptr) Variable Output
289: 6(int) Constant 75
287: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 288 52 16 289 11 18 288 286(outLightVec) 40
287: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 288 54 16 289 11 18 288 286(outLightVec) 42
290: TypePointer Uniform 134(fvec4)
297(outWorldPos): 123(ptr) Variable Output
300: 6(int) Constant 76
298: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 299 52 16 300 11 18 299 297(outWorldPos) 40
298: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 299 54 16 300 11 18 299 297(outWorldPos) 42
303(outEyePos): 123(ptr) Variable Output
306: 6(int) Constant 77
304: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 305 52 16 306 11 18 305 303(outEyePos) 40
304: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 18(Atan) 305 54 16 306 11 18 305 303(outEyePos) 42
13(main): 3 Function None 4
22: Label
30(uv1): 29(ptr) Variable Function
@@ -291,88 +291,88 @@ Validation failed
172(pos2): 136(ptr) Variable Function
185(pos): 136(ptr) Variable Function
23: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 101 15 13(main)
46: 45(ptr) AccessChain 37(inUV) 44
47: 27(fvec2) Load 46
49: 45(ptr) AccessChain 37(inUV) 48
50: 27(fvec2) Load 49
58: 57(ptr) AccessChain 54(gl_TessCoord) 11
59: 24(float) Load 58
60: 27(fvec2) CompositeConstruct 59 59
61: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 47 50 60
Store 30(uv1) 61
62: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 31 61 63
69: 45(ptr) AccessChain 37(inUV) 68
70: 27(fvec2) Load 69
72: 45(ptr) AccessChain 37(inUV) 71
73: 27(fvec2) Load 72
74: 57(ptr) AccessChain 54(gl_TessCoord) 11
75: 24(float) Load 74
76: 27(fvec2) CompositeConstruct 75 75
77: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 70 73 76
Store 64(uv2) 77
78: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 65 77 63
34: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 31 30(uv1) 35
48: 47(ptr) AccessChain 39(inUV) 46
49: 27(fvec2) Load 48
51: 47(ptr) AccessChain 39(inUV) 50
52: 27(fvec2) Load 51
60: 59(ptr) AccessChain 56(gl_TessCoord) 11
61: 24(float) Load 60
62: 27(fvec2) CompositeConstruct 61 61
63: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 49 52 62
Store 30(uv1) 63
68: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 65 64(uv2) 35
70: 47(ptr) AccessChain 39(inUV) 69
71: 27(fvec2) Load 70
73: 47(ptr) AccessChain 39(inUV) 72
74: 27(fvec2) Load 73
75: 59(ptr) AccessChain 56(gl_TessCoord) 11
76: 24(float) Load 75
77: 27(fvec2) CompositeConstruct 76 76
78: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 71 74 77
Store 64(uv2) 78
84: 27(fvec2) Load 30(uv1)
85: 27(fvec2) Load 64(uv2)
86: 57(ptr) AccessChain 54(gl_TessCoord) 19
86: 59(ptr) AccessChain 56(gl_TessCoord) 19
87: 24(float) Load 86
88: 27(fvec2) CompositeConstruct 87 87
89: 27(fvec2) ExtInst 2(GLSL.std.450) 46(FMix) 84 85 88
Store 80(outUV) 89
101: 53(ptr) AccessChain 98(inNormal) 44
102: 51(fvec3) Load 101
103: 53(ptr) AccessChain 98(inNormal) 48
104: 51(fvec3) Load 103
105: 57(ptr) AccessChain 54(gl_TessCoord) 11
106: 24(float) Load 105
107: 51(fvec3) CompositeConstruct 106 106 106
108: 51(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 102 104 107
Store 91(n1) 108
109: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 92 108 63
114: 53(ptr) AccessChain 98(inNormal) 68
115: 51(fvec3) Load 114
116: 53(ptr) AccessChain 98(inNormal) 71
117: 51(fvec3) Load 116
118: 57(ptr) AccessChain 54(gl_TessCoord) 11
119: 24(float) Load 118
120: 51(fvec3) CompositeConstruct 119 119 119
121: 51(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 115 117 120
Store 110(n2) 121
122: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 111 121 63
128: 51(fvec3) Load 91(n1)
129: 51(fvec3) Load 110(n2)
130: 57(ptr) AccessChain 54(gl_TessCoord) 19
95: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 92 91(n1) 35
102: 55(ptr) AccessChain 99(inNormal) 46
103: 53(fvec3) Load 102
104: 55(ptr) AccessChain 99(inNormal) 50
105: 53(fvec3) Load 104
106: 59(ptr) AccessChain 56(gl_TessCoord) 11
107: 24(float) Load 106
108: 53(fvec3) CompositeConstruct 107 107 107
109: 53(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 103 105 108
Store 91(n1) 109
114: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 111 110(n2) 35
115: 55(ptr) AccessChain 99(inNormal) 69
116: 53(fvec3) Load 115
117: 55(ptr) AccessChain 99(inNormal) 72
118: 53(fvec3) Load 117
119: 59(ptr) AccessChain 56(gl_TessCoord) 11
120: 24(float) Load 119
121: 53(fvec3) CompositeConstruct 120 120 120
122: 53(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 116 118 121
Store 110(n2) 122
128: 53(fvec3) Load 91(n1)
129: 53(fvec3) Load 110(n2)
130: 59(ptr) AccessChain 56(gl_TessCoord) 19
131: 24(float) Load 130
132: 51(fvec3) CompositeConstruct 131 131 131
133: 51(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 128 129 132
132: 53(fvec3) CompositeConstruct 131 131 131
133: 53(fvec3) ExtInst 2(GLSL.std.450) 46(FMix) 128 129 132
Store 124(outNormal) 133
163: 162(ptr) AccessChain 159(gl_in) 44 44
164: 134(fvec4) Load 163
165: 162(ptr) AccessChain 159(gl_in) 48 44
166: 134(fvec4) Load 165
167: 57(ptr) AccessChain 54(gl_TessCoord) 11
168: 24(float) Load 167
169: 134(fvec4) CompositeConstruct 168 168 168 168
170: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 164 166 169
Store 137(pos1) 170
171: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 138 170 63
176: 162(ptr) AccessChain 159(gl_in) 68 44
177: 134(fvec4) Load 176
178: 162(ptr) AccessChain 159(gl_in) 71 44
179: 134(fvec4) Load 178
180: 57(ptr) AccessChain 54(gl_TessCoord) 11
181: 24(float) Load 180
182: 134(fvec4) CompositeConstruct 181 181 181 181
183: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 177 179 182
Store 172(pos2) 183
184: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 173 183 63
189: 134(fvec4) Load 137(pos1)
190: 134(fvec4) Load 172(pos2)
191: 57(ptr) AccessChain 54(gl_TessCoord) 19
192: 24(float) Load 191
193: 134(fvec4) CompositeConstruct 192 192 192 192
194: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 189 190 193
Store 185(pos) 194
195: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 29(Exp2) 186 194 63
141: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 138 137(pos1) 35
164: 163(ptr) AccessChain 160(gl_in) 46 46
165: 134(fvec4) Load 164
166: 163(ptr) AccessChain 160(gl_in) 50 46
167: 134(fvec4) Load 166
168: 59(ptr) AccessChain 56(gl_TessCoord) 11
169: 24(float) Load 168
170: 134(fvec4) CompositeConstruct 169 169 169 169
171: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 165 167 170
Store 137(pos1) 171
176: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 173 172(pos2) 35
177: 163(ptr) AccessChain 160(gl_in) 69 46
178: 134(fvec4) Load 177
179: 163(ptr) AccessChain 160(gl_in) 72 46
180: 134(fvec4) Load 179
181: 59(ptr) AccessChain 56(gl_TessCoord) 11
182: 24(float) Load 181
183: 134(fvec4) CompositeConstruct 182 182 182 182
184: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 178 180 183
Store 172(pos2) 184
189: 3 ExtInst 1(NonSemantic.Shader.DebugInfo.100) 28(Log) 186 185(pos) 35
190: 134(fvec4) Load 137(pos1)
191: 134(fvec4) Load 172(pos2)
192: 59(ptr) AccessChain 56(gl_TessCoord) 19
193: 24(float) Load 192
194: 134(fvec4) CompositeConstruct 193 193 193 193
195: 134(fvec4) ExtInst 2(GLSL.std.450) 46(FMix) 190 191 194
Store 185(pos) 195
210: 202 Load 207(displacementMap)
211: 27(fvec2) Load 80(outUV)
213: 134(fvec4) ImageSampleExplicitLod 210 211 Lod 212
@@ -385,37 +385,37 @@ Validation failed
254: 24(float) FSub 253 250
255: 251(ptr) AccessChain 185(pos) 19
Store 255 254
270: 269(ptr) AccessChain 243(ubo) 44
270: 269(ptr) AccessChain 243(ubo) 46
271: 215 Load 270
272: 269(ptr) AccessChain 243(ubo) 48
272: 269(ptr) AccessChain 243(ubo) 50
273: 215 Load 272
274: 215 MatrixTimesMatrix 271 273
275: 134(fvec4) Load 185(pos)
276: 134(fvec4) MatrixTimesVector 274 275
278: 277(ptr) AccessChain 267 44
278: 277(ptr) AccessChain 267 46
Store 278 276
283: 134(fvec4) Load 185(pos)
284: 51(fvec3) VectorShuffle 283 283 0 1 2
285: 51(fvec3) FNegate 284
284: 53(fvec3) VectorShuffle 283 283 0 1 2
285: 53(fvec3) FNegate 284
Store 279(outViewVec) 285
291: 290(ptr) AccessChain 243(ubo) 71
291: 290(ptr) AccessChain 243(ubo) 72
292: 134(fvec4) Load 291
293: 51(fvec3) VectorShuffle 292 292 0 1 2
294: 51(fvec3) Load 279(outViewVec)
295: 51(fvec3) FAdd 293 294
296: 51(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 295
293: 53(fvec3) VectorShuffle 292 292 0 1 2
294: 53(fvec3) Load 279(outViewVec)
295: 53(fvec3) FAdd 293 294
296: 53(fvec3) ExtInst 2(GLSL.std.450) 69(Normalize) 295
Store 286(outLightVec) 296
301: 134(fvec4) Load 185(pos)
302: 51(fvec3) VectorShuffle 301 301 0 1 2
302: 53(fvec3) VectorShuffle 301 301 0 1 2
Store 297(outWorldPos) 302
307: 269(ptr) AccessChain 243(ubo) 48
307: 269(ptr) AccessChain 243(ubo) 50
308: 215 Load 307
309: 134(fvec4) Load 185(pos)
310: 134(fvec4) MatrixTimesVector 308 309
311: 24(float) CompositeExtract 310 0
312: 24(float) CompositeExtract 310 1
313: 24(float) CompositeExtract 310 2
314: 51(fvec3) CompositeConstruct 311 312 313
314: 53(fvec3) CompositeConstruct 311 312 313
Store 303(outEyePos) 314
Return
FunctionEnd