mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 04:39:45 +00:00
d3d10: Add a debug function for D3D10_PRIMITIVE_TOPOLOGY.
This commit is contained in:
parent
f4bc3fe7ff
commit
0271be18d9
@ -29,6 +29,7 @@
|
||||
|
||||
/* TRACE helper functions */
|
||||
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);
|
||||
|
||||
#endif /* __WINE_D3D10_PRIVATE_H */
|
||||
|
@ -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)
|
||||
{
|
||||
switch(format)
|
||||
|
Loading…
Reference in New Issue
Block a user