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
@@ -974,7 +974,7 @@ static void gl_runner_clear(struct shader_runner *r, struct resource *res, const
|
||||
}
|
||||
|
||||
static bool gl_runner_draw(struct shader_runner *r,
|
||||
D3D_PRIMITIVE_TOPOLOGY topology, unsigned int vertex_count)
|
||||
D3D_PRIMITIVE_TOPOLOGY topology, unsigned int vertex_count, unsigned int instance_count)
|
||||
{
|
||||
struct vkd3d_shader_signature vs_input_signature;
|
||||
unsigned int attribute_idx, rt_count, i, j;
|
||||
@@ -1159,7 +1159,7 @@ static bool gl_runner_draw(struct shader_runner *r,
|
||||
glDisableVertexAttribArray(attribute_idx);
|
||||
}
|
||||
|
||||
glDrawArrays(get_topology_gl(topology), 0, vertex_count);
|
||||
glDrawArraysInstanced(get_topology_gl(topology), 0, vertex_count, instance_count);
|
||||
|
||||
for (i = 0; i < runner->r.sampler_count; ++i)
|
||||
{
|
||||
|
Reference in New Issue
Block a user