mizt / Terrain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terrain

MetalBasicTessellation

$ 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

$ cd ./Terrain 
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

About


Languages

Language:Objective-C++ 67.3%Language:Objective-C 23.8%Language:Metal 8.8%Language:C 0.2%