Stefan Dösinger : wined3d: Add a function for allocating aligned resource memory.