Commit 0271be18 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3d10: Add a debug function for D3D10_PRIMITIVE_TOPOLOGY.

parent f4bc3fe7
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
/* TRACE helper functions */ /* TRACE helper functions */
const char *debug_d3d10_driver_type(D3D10_DRIVER_TYPE driver_type); const char *debug_d3d10_driver_type(D3D10_DRIVER_TYPE driver_type);
const char *debug_d3d10_primitive_topology(D3D10_PRIMITIVE_TOPOLOGY topology);
const char *debug_dxgi_format(DXGI_FORMAT format); const char *debug_dxgi_format(DXGI_FORMAT format);
#endif /* __WINE_D3D10_PRIVATE_H */ #endif /* __WINE_D3D10_PRIVATE_H */
...@@ -40,6 +40,26 @@ const char *debug_d3d10_driver_type(D3D10_DRIVER_TYPE driver_type) ...@@ -40,6 +40,26 @@ const char *debug_d3d10_driver_type(D3D10_DRIVER_TYPE driver_type)
} }
} }
const char *debug_d3d10_primitive_topology(D3D10_PRIMITIVE_TOPOLOGY topology)
{
switch (topology)
{
WINE_D3D10_TO_STR(D3D10_PRIMITIVE_TOPOLOGY_UNDEFINED);
WINE_D3D10_TO_STR(D3D10_PRIMITIVE_TOPOLOGY_POINTLIST);
WINE_D3D10_TO_STR(D3D10_PRIMITIVE_TOPOLOGY_LINELIST);
WINE_D3D10_TO_STR(D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP);
WINE_D3D10_TO_STR(D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST);
WINE_D3D10_TO_STR(D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP);
WINE_D3D10_TO_STR(D3D10_PRIMITIVE_TOPOLOGY_LINELIST_ADJ);
WINE_D3D10_TO_STR(D3D10_PRIMITIVE_TOPOLOGY_LINESTRIP_ADJ);
WINE_D3D10_TO_STR(D3D10_PRIMITIVE_TOPOLOGY_TRIANGLELIST_ADJ);
WINE_D3D10_TO_STR(D3D10_PRIMITIVE_TOPOLOGY_TRIANGLESTRIP_ADJ);
default:
FIXME("Unrecognized D3D10_PRIMITIVE_TOPOLOGY %#x\n", topology);
return "unrecognized";
}
}
const char *debug_dxgi_format(DXGI_FORMAT format) const char *debug_dxgi_format(DXGI_FORMAT format)
{ {
switch(format) switch(format)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment