H. Verbeet : wined3d: Map vertex sampler numbers to the correct internal array indices for GetTexture and SetTexture .