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