I've drawn some inspiration from the various 100-days-of-CUDA challenges. Since all I have is a baseline M1 Mac, I'm going to try my own variant where I try to use the Apple Metal API to make 50 or so projects. 'Repousse' is a technique used to make art of out of metal (example). I know, I'm very smart.
These compilation flags must be passed:
-fobjc-arc
: to enable Automatic Reference Counting; needed to manage the memory of the underlying Obj-C objects used by Metalframework Foundation
: to link against Foundation framework (NS::AutoreleasePool
etc.)framework Metal
: to link against the Metal framework
Run this command inside any dir:
clang++ -std=c++23 -o bin main.cc -fobjc-arc -framework Foundation -framework Metal
Alternatively, every dir has a makefile
. Using either method will output a bin
executable.