d3dx9: Implement the support for saving a surface to a DDS file.