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:
tgfrerer
2021-05-11 09:42:11 +01:00
parent 9431c53c84
commit adfa0938a2
117 changed files with 6243 additions and 6243 deletions

View File

@@ -13,9 +13,9 @@ using depth_any
0:34 Construct combined texture-sampler ( temp sampler2D)
0:34 'g_tTex2df4' ( uniform texture2D)
0:34 'g_sSamp' (layout( binding=0) uniform sampler)
0:? Constant:
0:? 0.100000
0:? 0.200000
0:34 Constant:
0:34 0.100000
0:34 0.200000
0:35 Sequence
0:35 move second child to first child ( temp 4-component vector of int)
0:35 'txval21' ( temp 4-component vector of int)
@@ -23,9 +23,9 @@ using depth_any
0:35 Construct combined texture-sampler ( temp isampler2D)
0:35 'g_tTex2di4' ( uniform itexture2D)
0:35 'g_sSamp' (layout( binding=0) uniform sampler)
0:? Constant:
0:? 0.300000
0:? 0.400000
0:35 Constant:
0:35 0.300000
0:35 0.400000
0:36 Sequence
0:36 move second child to first child ( temp 4-component vector of uint)
0:36 'txval22' ( temp 4-component vector of uint)
@@ -33,9 +33,9 @@ using depth_any
0:36 Construct combined texture-sampler ( temp usampler2D)
0:36 'g_tTex2du4' ( uniform utexture2D)
0:36 'g_sSamp' (layout( binding=0) uniform sampler)
0:? Constant:
0:? 0.500000
0:? 0.600000
0:36 Constant:
0:36 0.500000
0:36 0.600000
0:40 Sequence
0:40 move second child to first child ( temp 4-component vector of float)
0:40 'txval40' ( temp 4-component vector of float)
@@ -43,10 +43,10 @@ using depth_any
0:40 Construct combined texture-sampler ( temp samplerCube)
0:40 'g_tTexcdf4' ( uniform textureCube)
0:40 'g_sSamp' (layout( binding=0) uniform sampler)
0:? Constant:
0:? 0.100000
0:? 0.200000
0:? 0.300000
0:40 Constant:
0:40 0.100000
0:40 0.200000
0:40 0.300000
0:41 Sequence
0:41 move second child to first child ( temp 4-component vector of int)
0:41 'txval41' ( temp 4-component vector of int)
@@ -54,10 +54,10 @@ using depth_any
0:41 Construct combined texture-sampler ( temp isamplerCube)
0:41 'g_tTexcdi4' ( uniform itextureCube)
0:41 'g_sSamp' (layout( binding=0) uniform sampler)
0:? Constant:
0:? 0.400000
0:? 0.500000
0:? 0.600000
0:41 Constant:
0:41 0.400000
0:41 0.500000
0:41 0.600000
0:42 Sequence
0:42 move second child to first child ( temp 4-component vector of uint)
0:42 'txval42' ( temp 4-component vector of uint)
@@ -65,10 +65,10 @@ using depth_any
0:42 Construct combined texture-sampler ( temp usamplerCube)
0:42 'g_tTexcdu4' ( uniform utextureCube)
0:42 'g_sSamp' (layout( binding=0) uniform sampler)
0:? Constant:
0:? 0.700000
0:? 0.800000
0:? 0.900000
0:42 Constant:
0:42 0.700000
0:42 0.800000
0:42 0.900000
0:44 move second child to first child ( temp 4-component vector of float)
0:44 Color: direct index for structure ( temp 4-component vector of float)
0:44 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
@@ -144,9 +144,9 @@ using depth_any
0:34 Construct combined texture-sampler ( temp sampler2D)
0:34 'g_tTex2df4' ( uniform texture2D)
0:34 'g_sSamp' (layout( binding=0) uniform sampler)
0:? Constant:
0:? 0.100000
0:? 0.200000
0:34 Constant:
0:34 0.100000
0:34 0.200000
0:35 Sequence
0:35 move second child to first child ( temp 4-component vector of int)
0:35 'txval21' ( temp 4-component vector of int)
@@ -154,9 +154,9 @@ using depth_any
0:35 Construct combined texture-sampler ( temp isampler2D)
0:35 'g_tTex2di4' ( uniform itexture2D)
0:35 'g_sSamp' (layout( binding=0) uniform sampler)
0:? Constant:
0:? 0.300000
0:? 0.400000
0:35 Constant:
0:35 0.300000
0:35 0.400000
0:36 Sequence
0:36 move second child to first child ( temp 4-component vector of uint)
0:36 'txval22' ( temp 4-component vector of uint)
@@ -164,9 +164,9 @@ using depth_any
0:36 Construct combined texture-sampler ( temp usampler2D)
0:36 'g_tTex2du4' ( uniform utexture2D)
0:36 'g_sSamp' (layout( binding=0) uniform sampler)
0:? Constant:
0:? 0.500000
0:? 0.600000
0:36 Constant:
0:36 0.500000
0:36 0.600000
0:40 Sequence
0:40 move second child to first child ( temp 4-component vector of float)
0:40 'txval40' ( temp 4-component vector of float)
@@ -174,10 +174,10 @@ using depth_any
0:40 Construct combined texture-sampler ( temp samplerCube)
0:40 'g_tTexcdf4' ( uniform textureCube)
0:40 'g_sSamp' (layout( binding=0) uniform sampler)
0:? Constant:
0:? 0.100000
0:? 0.200000
0:? 0.300000
0:40 Constant:
0:40 0.100000
0:40 0.200000
0:40 0.300000
0:41 Sequence
0:41 move second child to first child ( temp 4-component vector of int)
0:41 'txval41' ( temp 4-component vector of int)
@@ -185,10 +185,10 @@ using depth_any
0:41 Construct combined texture-sampler ( temp isamplerCube)
0:41 'g_tTexcdi4' ( uniform itextureCube)
0:41 'g_sSamp' (layout( binding=0) uniform sampler)
0:? Constant:
0:? 0.400000
0:? 0.500000
0:? 0.600000
0:41 Constant:
0:41 0.400000
0:41 0.500000
0:41 0.600000
0:42 Sequence
0:42 move second child to first child ( temp 4-component vector of uint)
0:42 'txval42' ( temp 4-component vector of uint)
@@ -196,10 +196,10 @@ using depth_any
0:42 Construct combined texture-sampler ( temp usamplerCube)
0:42 'g_tTexcdu4' ( uniform utextureCube)
0:42 'g_sSamp' (layout( binding=0) uniform sampler)
0:? Constant:
0:? 0.700000
0:? 0.800000
0:? 0.900000
0:42 Constant:
0:42 0.700000
0:42 0.800000
0:42 0.900000
0:44 move second child to first child ( temp 4-component vector of float)
0:44 Color: direct index for structure ( temp 4-component vector of float)
0:44 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})