Józef Kucia : wined3d: Pass device to shader_set_function().