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