shell32/tests: Make sure all created files can be removed.
[wine] / dlls / d3d10 / utils.c
1 /*
2  * Copyright 2008 Henri Verbeet for CodeWeavers
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2.1 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
17  *
18  */
19
20 #include "config.h"
21 #include "wine/port.h"
22
23 #include "d3d10_private.h"
24
25 WINE_DEFAULT_DEBUG_CHANNEL(d3d10);
26
27 #define WINE_D3D10_TO_STR(x) case x: return #x
28
29 const char *debug_d3d10_driver_type(D3D10_DRIVER_TYPE driver_type)
30 {
31     switch(driver_type)
32     {
33         WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_HARDWARE);
34         WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_REFERENCE);
35         WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_NULL);
36         WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_SOFTWARE);
37         default:
38             FIXME("Unrecognized D3D10_DRIVER_TYPE %#x\n", driver_type);
39             return "unrecognized";
40     }
41 }
42
43 #undef WINE_D3D10_TO_STR