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:
@@ -17,7 +17,7 @@ Shader version: 500
|
||||
0:6 'tex' ( in structure{ temp sampler smpl, temp texture2D tex, temp float f})
|
||||
0:6 Constant:
|
||||
0:6 0 (const int)
|
||||
0:? Construct vec2 ( temp 2-component vector of float)
|
||||
0:6 Construct vec2 ( temp 2-component vector of float)
|
||||
0:6 f: direct index for structure ( temp float)
|
||||
0:6 'tex' ( in structure{ temp sampler smpl, temp texture2D tex, temp float f})
|
||||
0:6 Constant:
|
||||
@@ -72,7 +72,7 @@ Shader version: 500
|
||||
0:6 'tex' ( in structure{ temp sampler smpl, temp texture2D tex, temp float f})
|
||||
0:6 Constant:
|
||||
0:6 0 (const int)
|
||||
0:? Construct vec2 ( temp 2-component vector of float)
|
||||
0:6 Construct vec2 ( temp 2-component vector of float)
|
||||
0:6 f: direct index for structure ( temp float)
|
||||
0:6 'tex' ( in structure{ temp sampler smpl, temp texture2D tex, temp float f})
|
||||
0:6 Constant:
|
||||
|
||||
Reference in New Issue
Block a user