├── .gitignore ├── 2DDrawing ├── Star │ ├── Star.xcodeproj │ │ └── project.pbxproj │ └── Star │ │ ├── AppDelegate.swift │ │ ├── Assets.xcassets │ │ └── AppIcon.appiconset │ │ │ └── Contents.json │ │ ├── Base.lproj │ │ ├── LaunchScreen.storyboard │ │ └── Main.storyboard │ │ ├── GameViewController.swift │ │ ├── Info.plist │ │ ├── Shaders.metal │ │ └── vertices.swift └── StarVertices.txt ├── HelloTriangle ├── HelloMetal.xcodeproj │ └── project.pbxproj └── HelloMetal │ ├── AppDelegate.swift │ ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json │ ├── Base.lproj │ ├── LaunchScreen.storyboard │ └── Main.storyboard │ ├── Info.plist │ ├── Shaders.metal │ └── ViewController.swift ├── README.md └── Shaders:ModelIO ├── TeapotLighting.xcodeproj └── project.pbxproj └── TeapotLighting ├── AppDelegate.swift ├── Assets.xcassets └── AppIcon.appiconset │ └── Contents.json ├── Base.lproj ├── LaunchScreen.storyboard └── Main.storyboard ├── GameViewController.swift ├── GeometricTypes.swift ├── Info.plist ├── Lighting.metal ├── Uniforms.swift └── wt_teapot.obj /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/.gitignore -------------------------------------------------------------------------------- /2DDrawing/Star/Star.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/2DDrawing/Star/Star.xcodeproj/project.pbxproj -------------------------------------------------------------------------------- /2DDrawing/Star/Star/AppDelegate.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/2DDrawing/Star/Star/AppDelegate.swift -------------------------------------------------------------------------------- /2DDrawing/Star/Star/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/2DDrawing/Star/Star/Assets.xcassets/AppIcon.appiconset/Contents.json -------------------------------------------------------------------------------- /2DDrawing/Star/Star/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/2DDrawing/Star/Star/Base.lproj/LaunchScreen.storyboard -------------------------------------------------------------------------------- /2DDrawing/Star/Star/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/2DDrawing/Star/Star/Base.lproj/Main.storyboard -------------------------------------------------------------------------------- /2DDrawing/Star/Star/GameViewController.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/2DDrawing/Star/Star/GameViewController.swift -------------------------------------------------------------------------------- /2DDrawing/Star/Star/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/2DDrawing/Star/Star/Info.plist -------------------------------------------------------------------------------- /2DDrawing/Star/Star/Shaders.metal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/2DDrawing/Star/Star/Shaders.metal -------------------------------------------------------------------------------- /2DDrawing/Star/Star/vertices.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/2DDrawing/Star/Star/vertices.swift -------------------------------------------------------------------------------- /2DDrawing/StarVertices.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/2DDrawing/StarVertices.txt -------------------------------------------------------------------------------- /HelloTriangle/HelloMetal.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/HelloTriangle/HelloMetal.xcodeproj/project.pbxproj -------------------------------------------------------------------------------- /HelloTriangle/HelloMetal/AppDelegate.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/HelloTriangle/HelloMetal/AppDelegate.swift -------------------------------------------------------------------------------- /HelloTriangle/HelloMetal/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/HelloTriangle/HelloMetal/Assets.xcassets/AppIcon.appiconset/Contents.json -------------------------------------------------------------------------------- /HelloTriangle/HelloMetal/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/HelloTriangle/HelloMetal/Base.lproj/LaunchScreen.storyboard -------------------------------------------------------------------------------- /HelloTriangle/HelloMetal/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/HelloTriangle/HelloMetal/Base.lproj/Main.storyboard -------------------------------------------------------------------------------- /HelloTriangle/HelloMetal/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/HelloTriangle/HelloMetal/Info.plist -------------------------------------------------------------------------------- /HelloTriangle/HelloMetal/Shaders.metal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/HelloTriangle/HelloMetal/Shaders.metal -------------------------------------------------------------------------------- /HelloTriangle/HelloMetal/ViewController.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/HelloTriangle/HelloMetal/ViewController.swift -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/README.md -------------------------------------------------------------------------------- /Shaders:ModelIO/TeapotLighting.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/Shaders:ModelIO/TeapotLighting.xcodeproj/project.pbxproj -------------------------------------------------------------------------------- /Shaders:ModelIO/TeapotLighting/AppDelegate.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/Shaders:ModelIO/TeapotLighting/AppDelegate.swift -------------------------------------------------------------------------------- /Shaders:ModelIO/TeapotLighting/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/Shaders:ModelIO/TeapotLighting/Assets.xcassets/AppIcon.appiconset/Contents.json -------------------------------------------------------------------------------- /Shaders:ModelIO/TeapotLighting/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/Shaders:ModelIO/TeapotLighting/Base.lproj/LaunchScreen.storyboard -------------------------------------------------------------------------------- /Shaders:ModelIO/TeapotLighting/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/Shaders:ModelIO/TeapotLighting/Base.lproj/Main.storyboard -------------------------------------------------------------------------------- /Shaders:ModelIO/TeapotLighting/GameViewController.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/Shaders:ModelIO/TeapotLighting/GameViewController.swift -------------------------------------------------------------------------------- /Shaders:ModelIO/TeapotLighting/GeometricTypes.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/Shaders:ModelIO/TeapotLighting/GeometricTypes.swift -------------------------------------------------------------------------------- /Shaders:ModelIO/TeapotLighting/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/Shaders:ModelIO/TeapotLighting/Info.plist -------------------------------------------------------------------------------- /Shaders:ModelIO/TeapotLighting/Lighting.metal: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/Shaders:ModelIO/TeapotLighting/Lighting.metal -------------------------------------------------------------------------------- /Shaders:ModelIO/TeapotLighting/Uniforms.swift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/Shaders:ModelIO/TeapotLighting/Uniforms.swift -------------------------------------------------------------------------------- /Shaders:ModelIO/TeapotLighting/wt_teapot.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RedQueenCoder/Metal-Programming-Guide/HEAD/Shaders:ModelIO/TeapotLighting/wt_teapot.obj --------------------------------------------------------------------------------