Terrain
MetalBasicTessellation
![](https://raw.githubusercontent.com/mizt/Terrain/master/./assets/MetalBasicTessellation.png)
$ cd ./MetalBasicTessellation
Build MSL
$ xcrun -sdk macosx metal -c TessellationFunctions.metal -o TessellationFunctions.air; xcrun -sdk macosx metallib TessellationFunctions.air -o TessellationFunctions.metallib
Build Command Line Tool & Run
$ xcrun clang++ -ObjC++ -lc++ -fobjc-arc -O3 -std=c++17 -Wc++17-extensions -framework Cocoa -framework MetalKit -framework Metal ./MetalBasicTessellation.mm -o MetalBasicTessellation
$ ./MetalBasicTessellation
Terrain
![](https://raw.githubusercontent.com/mizt/Terrain/master/./assets/Terrain.jpg)
Build MSL
$ xcrun -sdk macosx metal -c Terrain.metal -o Terrain.air; xcrun -sdk macosx metallib Terrain.air -o Terrain.metallib
Build Command Line Tool & Run
$ xcrun clang++ -ObjC++ -lc++ -fobjc-arc -O3 -std=c++17 -Wc++17-extensions -framework Cocoa -framework MetalKit -framework Metal ./Terrain.mm -o Terrain
$ ./Terrain