This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// How to build: | |
// # compile the metal shaders | |
// xcrun -sdk macosx metal -c shaders.metal -o shaders.air | |
// xcrun -sdk macosx metallib shaders.air -o shaders.metallib | |
// # compile the c file | |
// clang app_metal.c -framework Cocoa -framework Metal -o metal_c.app | |
// | |
// | |
// Draw a triangle using metal | |
// Metal tutorial followed here: https://www.raywenderlich.com/7475-metal-tutorial-getting-started |