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:
@@ -58,18 +58,18 @@ using depth_any
|
||||
0:35 Construct combined texture-sampler ( temp sampler2D)
|
||||
0:35 'g_tTex2df4' ( uniform texture2D)
|
||||
0:35 'g_sSamp' (layout( binding=0) uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? Constant:
|
||||
0:? 1 (const int)
|
||||
0:? 0 (const int)
|
||||
0:35 Constant:
|
||||
0:35 0.100000
|
||||
0:35 0.200000
|
||||
0:35 Constant:
|
||||
0:35 0.100000
|
||||
0:35 0.200000
|
||||
0:35 Constant:
|
||||
0:35 1.100000
|
||||
0:35 1.200000
|
||||
0:35 Constant:
|
||||
0:35 1 (const int)
|
||||
0:35 0 (const int)
|
||||
0:36 Sequence
|
||||
0:36 move second child to first child ( temp 4-component vector of int)
|
||||
0:36 'txval21' ( temp 4-component vector of int)
|
||||
@@ -77,18 +77,18 @@ using depth_any
|
||||
0:36 Construct combined texture-sampler ( temp isampler2D)
|
||||
0:36 'g_tTex2di4' ( uniform itexture2D)
|
||||
0:36 'g_sSamp' (layout( binding=0) uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.300000
|
||||
0:? 0.400000
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? Constant:
|
||||
0:? 1 (const int)
|
||||
0:? 1 (const int)
|
||||
0:36 Constant:
|
||||
0:36 0.300000
|
||||
0:36 0.400000
|
||||
0:36 Constant:
|
||||
0:36 0.100000
|
||||
0:36 0.200000
|
||||
0:36 Constant:
|
||||
0:36 1.100000
|
||||
0:36 1.200000
|
||||
0:36 Constant:
|
||||
0:36 1 (const int)
|
||||
0:36 1 (const int)
|
||||
0:37 Sequence
|
||||
0:37 move second child to first child ( temp 4-component vector of uint)
|
||||
0:37 'txval22' ( temp 4-component vector of uint)
|
||||
@@ -96,18 +96,18 @@ using depth_any
|
||||
0:37 Construct combined texture-sampler ( temp usampler2D)
|
||||
0:37 'g_tTex2du4' ( uniform utexture2D)
|
||||
0:37 'g_sSamp' (layout( binding=0) uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.500000
|
||||
0:? 0.600000
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? Constant:
|
||||
0:? 1 (const int)
|
||||
0:? -1 (const int)
|
||||
0:37 Constant:
|
||||
0:37 0.500000
|
||||
0:37 0.600000
|
||||
0:37 Constant:
|
||||
0:37 0.100000
|
||||
0:37 0.200000
|
||||
0:37 Constant:
|
||||
0:37 1.100000
|
||||
0:37 1.200000
|
||||
0:37 Constant:
|
||||
0:37 1 (const int)
|
||||
0:37 -1 (const int)
|
||||
0:39 Sequence
|
||||
0:39 move second child to first child ( temp 4-component vector of float)
|
||||
0:39 'txval30' ( temp 4-component vector of float)
|
||||
@@ -115,22 +115,22 @@ using depth_any
|
||||
0:39 Construct combined texture-sampler ( temp sampler3D)
|
||||
0:39 'g_tTex3df4' ( uniform texture3D)
|
||||
0:39 'g_sSamp' (layout( binding=0) uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:? 0.300000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? 1.300000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? 1.300000
|
||||
0:? Constant:
|
||||
0:? 1 (const int)
|
||||
0:? 0 (const int)
|
||||
0:? 1 (const int)
|
||||
0:39 Constant:
|
||||
0:39 0.100000
|
||||
0:39 0.200000
|
||||
0:39 0.300000
|
||||
0:39 Constant:
|
||||
0:39 1.100000
|
||||
0:39 1.200000
|
||||
0:39 1.300000
|
||||
0:39 Constant:
|
||||
0:39 1.100000
|
||||
0:39 1.200000
|
||||
0:39 1.300000
|
||||
0:39 Constant:
|
||||
0:39 1 (const int)
|
||||
0:39 0 (const int)
|
||||
0:39 1 (const int)
|
||||
0:40 Sequence
|
||||
0:40 move second child to first child ( temp 4-component vector of int)
|
||||
0:40 'txval31' ( temp 4-component vector of int)
|
||||
@@ -138,22 +138,22 @@ using depth_any
|
||||
0:40 Construct combined texture-sampler ( temp isampler3D)
|
||||
0:40 'g_tTex3di4' ( uniform itexture3D)
|
||||
0:40 'g_sSamp' (layout( binding=0) uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.400000
|
||||
0:? 0.500000
|
||||
0:? 0.600000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? 1.300000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? 1.300000
|
||||
0:? Constant:
|
||||
0:? 1 (const int)
|
||||
0:? 1 (const int)
|
||||
0:? 1 (const int)
|
||||
0:40 Constant:
|
||||
0:40 0.400000
|
||||
0:40 0.500000
|
||||
0:40 0.600000
|
||||
0:40 Constant:
|
||||
0:40 1.100000
|
||||
0:40 1.200000
|
||||
0:40 1.300000
|
||||
0:40 Constant:
|
||||
0:40 1.100000
|
||||
0:40 1.200000
|
||||
0:40 1.300000
|
||||
0:40 Constant:
|
||||
0:40 1 (const int)
|
||||
0:40 1 (const int)
|
||||
0:40 1 (const int)
|
||||
0:41 Sequence
|
||||
0:41 move second child to first child ( temp 4-component vector of uint)
|
||||
0:41 'txval32' ( temp 4-component vector of uint)
|
||||
@@ -161,22 +161,22 @@ using depth_any
|
||||
0:41 Construct combined texture-sampler ( temp usampler3D)
|
||||
0:41 'g_tTex3du4' ( uniform utexture3D)
|
||||
0:41 'g_sSamp' (layout( binding=0) uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.700000
|
||||
0:? 0.800000
|
||||
0:? 0.900000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? 1.300000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? 1.300000
|
||||
0:? Constant:
|
||||
0:? 1 (const int)
|
||||
0:? 0 (const int)
|
||||
0:? -1 (const int)
|
||||
0:41 Constant:
|
||||
0:41 0.700000
|
||||
0:41 0.800000
|
||||
0:41 0.900000
|
||||
0:41 Constant:
|
||||
0:41 1.100000
|
||||
0:41 1.200000
|
||||
0:41 1.300000
|
||||
0:41 Constant:
|
||||
0:41 1.100000
|
||||
0:41 1.200000
|
||||
0:41 1.300000
|
||||
0:41 Constant:
|
||||
0:41 1 (const int)
|
||||
0:41 0 (const int)
|
||||
0:41 -1 (const int)
|
||||
0:45 move second child to first child ( temp 4-component vector of float)
|
||||
0:45 Color: direct index for structure ( temp 4-component vector of float)
|
||||
0:45 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
@@ -296,18 +296,18 @@ using depth_any
|
||||
0:35 Construct combined texture-sampler ( temp sampler2D)
|
||||
0:35 'g_tTex2df4' ( uniform texture2D)
|
||||
0:35 'g_sSamp' (layout( binding=0) uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? Constant:
|
||||
0:? 1 (const int)
|
||||
0:? 0 (const int)
|
||||
0:35 Constant:
|
||||
0:35 0.100000
|
||||
0:35 0.200000
|
||||
0:35 Constant:
|
||||
0:35 0.100000
|
||||
0:35 0.200000
|
||||
0:35 Constant:
|
||||
0:35 1.100000
|
||||
0:35 1.200000
|
||||
0:35 Constant:
|
||||
0:35 1 (const int)
|
||||
0:35 0 (const int)
|
||||
0:36 Sequence
|
||||
0:36 move second child to first child ( temp 4-component vector of int)
|
||||
0:36 'txval21' ( temp 4-component vector of int)
|
||||
@@ -315,18 +315,18 @@ using depth_any
|
||||
0:36 Construct combined texture-sampler ( temp isampler2D)
|
||||
0:36 'g_tTex2di4' ( uniform itexture2D)
|
||||
0:36 'g_sSamp' (layout( binding=0) uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.300000
|
||||
0:? 0.400000
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? Constant:
|
||||
0:? 1 (const int)
|
||||
0:? 1 (const int)
|
||||
0:36 Constant:
|
||||
0:36 0.300000
|
||||
0:36 0.400000
|
||||
0:36 Constant:
|
||||
0:36 0.100000
|
||||
0:36 0.200000
|
||||
0:36 Constant:
|
||||
0:36 1.100000
|
||||
0:36 1.200000
|
||||
0:36 Constant:
|
||||
0:36 1 (const int)
|
||||
0:36 1 (const int)
|
||||
0:37 Sequence
|
||||
0:37 move second child to first child ( temp 4-component vector of uint)
|
||||
0:37 'txval22' ( temp 4-component vector of uint)
|
||||
@@ -334,18 +334,18 @@ using depth_any
|
||||
0:37 Construct combined texture-sampler ( temp usampler2D)
|
||||
0:37 'g_tTex2du4' ( uniform utexture2D)
|
||||
0:37 'g_sSamp' (layout( binding=0) uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.500000
|
||||
0:? 0.600000
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? Constant:
|
||||
0:? 1 (const int)
|
||||
0:? -1 (const int)
|
||||
0:37 Constant:
|
||||
0:37 0.500000
|
||||
0:37 0.600000
|
||||
0:37 Constant:
|
||||
0:37 0.100000
|
||||
0:37 0.200000
|
||||
0:37 Constant:
|
||||
0:37 1.100000
|
||||
0:37 1.200000
|
||||
0:37 Constant:
|
||||
0:37 1 (const int)
|
||||
0:37 -1 (const int)
|
||||
0:39 Sequence
|
||||
0:39 move second child to first child ( temp 4-component vector of float)
|
||||
0:39 'txval30' ( temp 4-component vector of float)
|
||||
@@ -353,22 +353,22 @@ using depth_any
|
||||
0:39 Construct combined texture-sampler ( temp sampler3D)
|
||||
0:39 'g_tTex3df4' ( uniform texture3D)
|
||||
0:39 'g_sSamp' (layout( binding=0) uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.100000
|
||||
0:? 0.200000
|
||||
0:? 0.300000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? 1.300000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? 1.300000
|
||||
0:? Constant:
|
||||
0:? 1 (const int)
|
||||
0:? 0 (const int)
|
||||
0:? 1 (const int)
|
||||
0:39 Constant:
|
||||
0:39 0.100000
|
||||
0:39 0.200000
|
||||
0:39 0.300000
|
||||
0:39 Constant:
|
||||
0:39 1.100000
|
||||
0:39 1.200000
|
||||
0:39 1.300000
|
||||
0:39 Constant:
|
||||
0:39 1.100000
|
||||
0:39 1.200000
|
||||
0:39 1.300000
|
||||
0:39 Constant:
|
||||
0:39 1 (const int)
|
||||
0:39 0 (const int)
|
||||
0:39 1 (const int)
|
||||
0:40 Sequence
|
||||
0:40 move second child to first child ( temp 4-component vector of int)
|
||||
0:40 'txval31' ( temp 4-component vector of int)
|
||||
@@ -376,22 +376,22 @@ using depth_any
|
||||
0:40 Construct combined texture-sampler ( temp isampler3D)
|
||||
0:40 'g_tTex3di4' ( uniform itexture3D)
|
||||
0:40 'g_sSamp' (layout( binding=0) uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.400000
|
||||
0:? 0.500000
|
||||
0:? 0.600000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? 1.300000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? 1.300000
|
||||
0:? Constant:
|
||||
0:? 1 (const int)
|
||||
0:? 1 (const int)
|
||||
0:? 1 (const int)
|
||||
0:40 Constant:
|
||||
0:40 0.400000
|
||||
0:40 0.500000
|
||||
0:40 0.600000
|
||||
0:40 Constant:
|
||||
0:40 1.100000
|
||||
0:40 1.200000
|
||||
0:40 1.300000
|
||||
0:40 Constant:
|
||||
0:40 1.100000
|
||||
0:40 1.200000
|
||||
0:40 1.300000
|
||||
0:40 Constant:
|
||||
0:40 1 (const int)
|
||||
0:40 1 (const int)
|
||||
0:40 1 (const int)
|
||||
0:41 Sequence
|
||||
0:41 move second child to first child ( temp 4-component vector of uint)
|
||||
0:41 'txval32' ( temp 4-component vector of uint)
|
||||
@@ -399,22 +399,22 @@ using depth_any
|
||||
0:41 Construct combined texture-sampler ( temp usampler3D)
|
||||
0:41 'g_tTex3du4' ( uniform utexture3D)
|
||||
0:41 'g_sSamp' (layout( binding=0) uniform sampler)
|
||||
0:? Constant:
|
||||
0:? 0.700000
|
||||
0:? 0.800000
|
||||
0:? 0.900000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? 1.300000
|
||||
0:? Constant:
|
||||
0:? 1.100000
|
||||
0:? 1.200000
|
||||
0:? 1.300000
|
||||
0:? Constant:
|
||||
0:? 1 (const int)
|
||||
0:? 0 (const int)
|
||||
0:? -1 (const int)
|
||||
0:41 Constant:
|
||||
0:41 0.700000
|
||||
0:41 0.800000
|
||||
0:41 0.900000
|
||||
0:41 Constant:
|
||||
0:41 1.100000
|
||||
0:41 1.200000
|
||||
0:41 1.300000
|
||||
0:41 Constant:
|
||||
0:41 1.100000
|
||||
0:41 1.200000
|
||||
0:41 1.300000
|
||||
0:41 Constant:
|
||||
0:41 1 (const int)
|
||||
0:41 0 (const int)
|
||||
0:41 -1 (const int)
|
||||
0:45 move second child to first child ( temp 4-component vector of float)
|
||||
0:45 Color: direct index for structure ( temp 4-component vector of float)
|
||||
0:45 'psout' ( temp structure{ temp 4-component vector of float Color, temp float Depth})
|
||||
|
||||
Reference in New Issue
Block a user