Merge "Add API support for 3D allocations."