-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b03c3e
commit c1191de
Showing
3 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# 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](https://developer.apple.com/documentation/metal/gpu_selection_in_macos/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](https://stackoverflow.com/users/988260/tyler) | ||
for his brilliant [help](https://stackoverflow.com/questions/61742070/macos-metal-app-works-in-obj-c-fails-to-draw-in-swift-translation). | ||
|
||
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. | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.