Add 3d/m2mf initialization, and add helpers to clear using 3d engine and
copy from tiling to linear using m2mf. Doesn't quite work yet.