[PATCH v2 9/9] d3dx11: Implement D3DX11CreateTextureFromMemory() using shared code.