mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-09-12 18:50:22 -07:00
tests: Add a basic shader test for compute shaders.
This commit is contained in:
committed by
Alexandre Julliard
parent
6f1f14d97a
commit
75494a4ae6
Notes:
Alexandre Julliard
2022-10-19 22:07:47 +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/30
@@ -304,6 +304,11 @@ static D3DDECLUSAGE vertex_decl_usage_from_name(const char *name)
|
||||
fatal_error("Cannot translate usage \"%s\" to a d3d9 usage.\n", name);
|
||||
}
|
||||
|
||||
static bool d3d9_runner_dispatch(struct shader_runner *r, unsigned int x, unsigned int y, unsigned int z)
|
||||
{
|
||||
fatal_error("Compute shaders are not supported.\n");
|
||||
}
|
||||
|
||||
static bool d3d9_runner_draw(struct shader_runner *r,
|
||||
D3D_PRIMITIVE_TOPOLOGY primitive_topology, unsigned int vertex_count)
|
||||
{
|
||||
@@ -504,6 +509,7 @@ static const struct shader_runner_ops d3d9_runner_ops =
|
||||
.check_requirements = d3d9_runner_check_requirements,
|
||||
.create_resource = d3d9_runner_create_resource,
|
||||
.destroy_resource = d3d9_runner_destroy_resource,
|
||||
.dispatch = d3d9_runner_dispatch,
|
||||
.draw = d3d9_runner_draw,
|
||||
.get_resource_readback = d3d9_runner_get_resource_readback,
|
||||
.release_readback = d3d9_runner_release_readback,
|
||||
|
||||
Reference in New Issue
Block a user