Józef Kucia : wined3d: Factor out acquire_shader_resources() function.