wined3d: Introduce shader_glsl_load_program_resources() helper function.