wined3d: Create a separate function for setting basic format info.