tests: Add a test for the "nointerpolation" modifier.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Zebediah Figura
2022-03-21 20:42:21 -05:00
committed by Alexandre Julliard
parent c7623262cc
commit 24a27daf98
3 changed files with 46 additions and 0 deletions

View File

@@ -336,6 +336,23 @@ static void parse_test_directive(struct shader_runner *runner, const char *line)
runner->ops->draw(runner, D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST, 3);
}
else if (match_string(line, "draw", &line))
{
D3D_PRIMITIVE_TOPOLOGY topology;
unsigned int vertex_count;
char *rest;
if (match_string(line, "triangle list", &line))
topology = D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST;
else
fatal_error("Unknown primitive topology '%s'.\n", line);
vertex_count = strtoul(line, &rest, 10);
if (line == rest)
fatal_error("Malformed vertex count '%s'.\n", line);
runner->ops->draw(runner, topology, vertex_count);
}
else if (match_string(line, "probe all rgba", &line))
{
static const RECT rect = {0, 0, RENDER_TARGET_WIDTH, RENDER_TARGET_HEIGHT};