Henri Verbeet : wined3d: Introduce a helper function for translating blend operations.