/slug-swift-metal

Demo of the Metal graphics framework in Swift

Primary LanguageSwiftMIT LicenseMIT

Metal in Swift Demos

Demo of the Metal graphics framework in Swift, as presented to the Swift Language User Group (SF), 4 November 2014.

Usage

Set MBEDemoNumber to a number between 0 and 3 (inclusive) and deploy to a device running iOS 8+.

Demo index: 0. Clear screen to solid color

  1. Draw spinning triangle in 2D
  2. Draw spinning lit sphere
  3. Draw spinning textured globe