mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
tests: Use % as the shader_test comment character.
So as to avoid clashing with the preprocessor. Signed-off-by: Zebediah Figura <zfigura@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Giovanni Mascellani <gmascellani@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
committed by
Alexandre Julliard
parent
12acfd9724
commit
5f8becada4
@ -1,4 +1,5 @@
|
|||||||
# Test what kinds of expressions are valid array dimensions.
|
% Test what kinds of expressions are valid array dimensions.
|
||||||
|
|
||||||
[pixel shader]
|
[pixel shader]
|
||||||
float4 main() : sv_target
|
float4 main() : sv_target
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Use a uniform to prevent the compiler from optimizing.
|
% Use a uniform to prevent the compiler from optimizing.
|
||||||
|
|
||||||
[pixel shader]
|
[pixel shader]
|
||||||
uniform int i;
|
uniform int i;
|
||||||
|
@ -452,12 +452,11 @@ START_TEST(shader_runner_d3d12)
|
|||||||
|
|
||||||
vkd3d_test_set_context("Section %.*s, line %u", strlen(line) - 1, line, line_number);
|
vkd3d_test_set_context("Section %.*s, line %u", strlen(line) - 1, line, line_number);
|
||||||
}
|
}
|
||||||
else if (line[0] != '\n')
|
else if (line[0] != '%' && line[0] != '\n')
|
||||||
{
|
{
|
||||||
switch (state)
|
switch (state)
|
||||||
{
|
{
|
||||||
case STATE_NONE:
|
case STATE_NONE:
|
||||||
if (line[0] != '#')
|
|
||||||
fprintf(stderr, "Ignoring line '%s' in %s.\n", line, argv[1]);
|
fprintf(stderr, "Ignoring line '%s' in %s.\n", line, argv[1]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -475,7 +474,6 @@ START_TEST(shader_runner_d3d12)
|
|||||||
}
|
}
|
||||||
|
|
||||||
case STATE_TEST:
|
case STATE_TEST:
|
||||||
if (line[0] != '#')
|
|
||||||
parse_test_directive(&context, line);
|
parse_test_directive(&context, line);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user