fix error message for hlslGrammar::acceptConstructor
Fix the error message for when an erroneous HLSL constructor statement is detected. Prior to this change, such error messages would not show correct file path and line number information. Additionally, update test data to account for updated error messages.
This commit is contained in:
@@ -14,18 +14,18 @@ ERROR: node is still EOpNull!
|
||||
0:9 'g_shadowTex' ( uniform texture2DShadow)
|
||||
0:9 'g_shadowSamplerComp' ( uniform sampler)
|
||||
0:9 Construct vec3 ( temp 3-component vector of float)
|
||||
0:? Constant:
|
||||
0:? 0.000000
|
||||
0:? 0.000000
|
||||
0:9 Constant:
|
||||
0:9 0.000000
|
||||
0:9 0.000000
|
||||
0:9 Constant:
|
||||
0:9 0.000000
|
||||
0:10 ERROR: Bad aggregation op
|
||||
( temp float)
|
||||
0:10 'g_nonShadowTex' ( uniform texture2D)
|
||||
0:10 'g_shadowSampler' ( uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.000000
|
||||
0:? 0.000000
|
||||
0:10 Constant:
|
||||
0:10 0.000000
|
||||
0:10 0.000000
|
||||
0:10 Constant:
|
||||
0:10 0.000000
|
||||
0:12 Branch: Return with expression
|
||||
@@ -62,18 +62,18 @@ ERROR: node is still EOpNull!
|
||||
0:9 'g_shadowTex' ( uniform texture2DShadow)
|
||||
0:9 'g_shadowSamplerComp' ( uniform sampler)
|
||||
0:9 Construct vec3 ( temp 3-component vector of float)
|
||||
0:? Constant:
|
||||
0:? 0.000000
|
||||
0:? 0.000000
|
||||
0:9 Constant:
|
||||
0:9 0.000000
|
||||
0:9 0.000000
|
||||
0:9 Constant:
|
||||
0:9 0.000000
|
||||
0:10 ERROR: Bad aggregation op
|
||||
( temp float)
|
||||
0:10 'g_nonShadowTex' ( uniform texture2D)
|
||||
0:10 'g_shadowSampler' ( uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.000000
|
||||
0:? 0.000000
|
||||
0:10 Constant:
|
||||
0:10 0.000000
|
||||
0:10 0.000000
|
||||
0:10 Constant:
|
||||
0:10 0.000000
|
||||
0:12 Branch: Return with expression
|
||||
|
||||
Reference in New Issue
Block a user