mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests/hlsl: Add an SV_InstanceId test.
This commit is contained in:
committed by
Alexandre Julliard
parent
fb730b11cf
commit
0bd6083785
Notes:
Alexandre Julliard
2024-04-30 23:14:55 +02:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/814
@@ -930,13 +930,13 @@ static void parse_test_directive(struct shader_runner *runner, const char *line)
|
||||
if (!runner->vs_source)
|
||||
runner->vs_source = strdup(vs_source);
|
||||
|
||||
runner->last_render_failed = !runner->ops->draw(runner, D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST, 3);
|
||||
runner->last_render_failed = !runner->ops->draw(runner, D3D_PRIMITIVE_TOPOLOGY_TRIANGLELIST, 3, 1);
|
||||
}
|
||||
else if (match_string(line, "draw", &line))
|
||||
{
|
||||
unsigned int vertex_count, instance_count;
|
||||
D3D_PRIMITIVE_TOPOLOGY topology;
|
||||
struct resource_params params;
|
||||
unsigned int vertex_count;
|
||||
|
||||
if (!runner->hs_source != !runner->ds_source)
|
||||
fatal_error("Have a domain or hull shader but not both.\n");
|
||||
@@ -975,8 +975,11 @@ static void parse_test_directive(struct shader_runner *runner, const char *line)
|
||||
vertex_count = strtoul(line, &rest, 10);
|
||||
if (line == rest)
|
||||
fatal_error("Malformed vertex count '%s'.\n", line);
|
||||
instance_count = strtoul(line = rest, &rest, 10);
|
||||
if (line == rest)
|
||||
instance_count = 1;
|
||||
|
||||
runner->last_render_failed = !runner->ops->draw(runner, topology, vertex_count);
|
||||
runner->last_render_failed = !runner->ops->draw(runner, topology, vertex_count, instance_count);
|
||||
}
|
||||
else if (match_string(line, "probe", &line))
|
||||
{
|
||||
|
Reference in New Issue
Block a user