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:
@@ -9,9 +9,9 @@ Shader version: 500
|
||||
0:6 Construct combined texture-sampler ( temp sampler2D)
|
||||
0:6 'tex' (layout( set=2 binding=0) uniform texture2D)
|
||||
0:6 'samp' ( uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.200000
|
||||
0:? 0.300000
|
||||
0:6 Constant:
|
||||
0:6 0.200000
|
||||
0:6 0.300000
|
||||
0:5 Function Definition: main( ( temp void)
|
||||
0:5 Function Parameters:
|
||||
0:? Sequence
|
||||
@@ -37,9 +37,9 @@ Shader version: 500
|
||||
0:6 Construct combined texture-sampler ( temp sampler2D)
|
||||
0:6 'tex' (layout( set=2 binding=0) uniform texture2D)
|
||||
0:6 'samp' ( uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.200000
|
||||
0:? 0.300000
|
||||
0:6 Constant:
|
||||
0:6 0.200000
|
||||
0:6 0.300000
|
||||
0:5 Function Definition: main( ( temp void)
|
||||
0:5 Function Parameters:
|
||||
0:? Sequence
|
||||
|
||||
Reference in New Issue
Block a user