1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#import <Metal/Metal.h> #import <MetalKit/MetalKit.h> #import "Renderer.h" #if TARGET_OS_IPHONE #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end #else #import <Cocoa/Cocoa.h> @interface ViewController : NSViewController @end #endif