wined3d: Introduce a separate function for initializing vs uniform locations.