wined3d: Move some code specific to the different shader backends into the respective...