[PATCH v2 2/4] wined3d: Factor out a swapchain_create_texture() helper.