Skip to content

Metal example code, translated to Swift from Apple's old Objective-C example

Notifications You must be signed in to change notification settings

SaganRitual/Foil

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Foil

Apple's Metal example code, hugely simplified and translated to Swift

In case it helps anyone, I translated this from Apple's Objective-C example Selecting Device Objects For Compute Processing. I pared it down quite a bit too, because I ran into trouble with it and decided to ask for help on StackOverflow. For which, many thanks to Tyler for his brilliant help.

I think it's more-or-less self-explanatory, or maybe I'm just too busy to write a nice, useful description of it, or maybe just too lazy. Anyway, build and run, it's fun to watch.