Improve support for D3DDevice::CreatePixelShader()