d3d10: Add D3D10_DRIVER_TYPE_WARP.

This commit is contained in:
Henri Verbeet 2014-01-27 10:07:53 +01:00 committed by Alexandre Julliard
parent 7c6ca2077f
commit 2d06703dc7
3 changed files with 7 additions and 0 deletions

View File

@ -121,6 +121,11 @@ HRESULT WINAPI D3D10CreateDevice(IDXGIAdapter *adapter, D3D10_DRIVER_TYPE driver
} }
break; break;
} }
default:
FIXME("Unhandled driver type %#x.\n", driver_type);
IDXGIFactory_Release(factory);
return E_FAIL;
} }
} }

View File

@ -34,6 +34,7 @@ const char *debug_d3d10_driver_type(D3D10_DRIVER_TYPE driver_type)
WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_REFERENCE); WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_REFERENCE);
WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_NULL); WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_NULL);
WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_SOFTWARE); WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_SOFTWARE);
WINE_D3D10_TO_STR(D3D10_DRIVER_TYPE_WARP);
default: default:
FIXME("Unrecognized D3D10_DRIVER_TYPE %#x\n", driver_type); FIXME("Unrecognized D3D10_DRIVER_TYPE %#x\n", driver_type);
return "unrecognized"; return "unrecognized";

View File

@ -30,6 +30,7 @@ typedef enum D3D10_DRIVER_TYPE {
D3D10_DRIVER_TYPE_REFERENCE = 1, D3D10_DRIVER_TYPE_REFERENCE = 1,
D3D10_DRIVER_TYPE_NULL = 2, D3D10_DRIVER_TYPE_NULL = 2,
D3D10_DRIVER_TYPE_SOFTWARE = 3, D3D10_DRIVER_TYPE_SOFTWARE = 3,
D3D10_DRIVER_TYPE_WARP = 5,
} D3D10_DRIVER_TYPE; } D3D10_DRIVER_TYPE;
HRESULT WINAPI D3D10CreateDevice(IDXGIAdapter *adapter, D3D10_DRIVER_TYPE driver_type, HRESULT WINAPI D3D10CreateDevice(IDXGIAdapter *adapter, D3D10_DRIVER_TYPE driver_type,