Henri Verbeet : d3d9: Introduce a helper to convert d3d9 primitive types to wined3d types.