mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
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:
committed by
Alexandre Julliard
parent
c7623262cc
commit
24a27daf98
@@ -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};
|
||||
|
Reference in New Issue
Block a user