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