[PATCH 3/8] wined3d: Pass device to shader_set_function().