mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -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
@@ -330,7 +330,7 @@ static void d3d9_runner_clear(struct shader_runner *r, struct resource *resource
|
||||
}
|
||||
|
||||
static bool d3d9_runner_draw(struct shader_runner *r,
|
||||
D3D_PRIMITIVE_TOPOLOGY primitive_topology, unsigned int vertex_count)
|
||||
D3D_PRIMITIVE_TOPOLOGY primitive_topology, unsigned int vertex_count, unsigned int instance_count)
|
||||
{
|
||||
static const D3DVERTEXELEMENT9 decl_element_end = D3DDECL_END();
|
||||
struct d3d9_shader_runner *runner = d3d9_shader_runner(r);
|
||||
@@ -343,6 +343,9 @@ static bool d3d9_runner_draw(struct shader_runner *r,
|
||||
unsigned int i, j;
|
||||
HRESULT hr;
|
||||
|
||||
if (instance_count > 1)
|
||||
fatal_error("Unhandled instance count %u.\n", instance_count);
|
||||
|
||||
if (!(vs_code = compile_shader(runner, runner->r.vs_source, "vs")))
|
||||
return false;
|
||||
|
||||
|
Reference in New Issue
Block a user