[PATCH 3/5] wined3d: Introduce public API to set a wined3d_state object on a device.