[PATCH v2 4/6] wined3d: Introduce new wined3d_device_swap_state export.